From 7d5a0a6b9e0bb79d4fb88e6c48dd546df939d2fc Mon Sep 17 00:00:00 2001 From: jolan Date: Sun, 16 Aug 2009 06:39:51 +0000 Subject: [PATCH] pecl-zip-1.10.2, PHP support for zip archives --- archivers/pecl-zip/Makefile | 49 ++++++++++++++++++++++++++++++++ archivers/pecl-zip/distinfo | 5 ++++ archivers/pecl-zip/pkg/DESCR | 5 ++++ archivers/pecl-zip/pkg/MESSAGE | 10 +++++++ archivers/pecl-zip/pkg/PLIST | 11 +++++++ archivers/pecl-zip/pkg/UNMESSAGE | 9 ++++++ 6 files changed, 89 insertions(+) create mode 100644 archivers/pecl-zip/Makefile create mode 100644 archivers/pecl-zip/distinfo create mode 100644 archivers/pecl-zip/pkg/DESCR create mode 100644 archivers/pecl-zip/pkg/MESSAGE create mode 100644 archivers/pecl-zip/pkg/PLIST create mode 100644 archivers/pecl-zip/pkg/UNMESSAGE diff --git a/archivers/pecl-zip/Makefile b/archivers/pecl-zip/Makefile new file mode 100644 index 00000000000..8a743d5c809 --- /dev/null +++ b/archivers/pecl-zip/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/08/16 06:39:51 jolan Exp $ + +SHARED_ONLY= Yes + +COMMENT= PHP support for zip archives +DISTNAME= zip-1.10.2 +PKGNAME= pecl-${DISTNAME} +EXTRACT_SUFX= .tgz +MASTER_SITES= http://pecl.php.net/get/ +CATEGORIES= archivers www + +HOMEPAGE= http://pecl.php.net/package/zip/ + +# PHP License +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +AUTOCONF_VERSION= 2.62 +AUTOMAKE_VERSION= 1.9 + +BUILD_DEPENDS= :pear-*:www/pear \ + ${MODGNU_AUTOCONF_DEPENDS} \ + ${MODGNU_AUTOMAKE_DEPENDS} +RUN_DEPENDS= :php5-core-*:www/php5/core +WANTLIB= z + +CONFIGURE_STYLE=gnu +CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \ + AUTOCONF_VERSION=${AUTOCONF_VERSION} + +PREFIX= /var/www +DESTDIRNAME= INSTALL_ROOT + +NO_REGRESS= Yes + +USE_LIBTOOL= Yes +LIBTOOL_FLAGS+= --tag=disable-static + +pre-configure: + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample + @echo "extension=zip.so" > \ + ${PREFIX}/conf/php5.sample/zip.ini + +.include diff --git a/archivers/pecl-zip/distinfo b/archivers/pecl-zip/distinfo new file mode 100644 index 00000000000..aa32b603612 --- /dev/null +++ b/archivers/pecl-zip/distinfo @@ -0,0 +1,5 @@ +MD5 (zip-1.10.2.tgz) = CneSVTiPp8nqSz/OrVXMaQ== +RMD160 (zip-1.10.2.tgz) = hnbs1N7TCCuNIs9zgQGa07eXhPs= +SHA1 (zip-1.10.2.tgz) = GVl1H23sTqHkPxAjDD/KDPIGlrU= +SHA256 (zip-1.10.2.tgz) = 1L1VrhmADr4gjivSM63NSr9RbUwFMCA92Le+hL4i35g= +SIZE (zip-1.10.2.tgz) = 236912 diff --git a/archivers/pecl-zip/pkg/DESCR b/archivers/pecl-zip/pkg/DESCR new file mode 100644 index 00000000000..81486c4003d --- /dev/null +++ b/archivers/pecl-zip/pkg/DESCR @@ -0,0 +1,5 @@ +pecl-zip is a PHP extension for reading zip archives. + +Documentation is available online at: + +http://php.net/zip/ diff --git a/archivers/pecl-zip/pkg/MESSAGE b/archivers/pecl-zip/pkg/MESSAGE new file mode 100644 index 00000000000..2b3e7a8bfd2 --- /dev/null +++ b/archivers/pecl-zip/pkg/MESSAGE @@ -0,0 +1,10 @@ +You can enable this module by creating a symbolic +link from ${PREFIX}/conf/php5.sample/zip.ini to +${PREFIX}/conf/php5/zip.ini. + +ln -fs ${PREFIX}/conf/php5.sample/zip.ini \ + ${PREFIX}/conf/php5/zip.ini + +If you already have Apache running on your machine, +you should not use "apachectl restart" - instead, +you should fully stop and then restart the server. diff --git a/archivers/pecl-zip/pkg/PLIST b/archivers/pecl-zip/pkg/PLIST new file mode 100644 index 00000000000..dce23c208c8 --- /dev/null +++ b/archivers/pecl-zip/pkg/PLIST @@ -0,0 +1,11 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/16 06:39:51 jolan Exp $ +@comment conf/php5.sample/ +@group bin +conf/php5.sample/zip.ini +@comment lib/ +@comment lib/php/ +@comment lib/php/modules/ +@owner root +lib/php/modules/zip.so +@owner +@group diff --git a/archivers/pecl-zip/pkg/UNMESSAGE b/archivers/pecl-zip/pkg/UNMESSAGE new file mode 100644 index 00000000000..9a4b424d048 --- /dev/null +++ b/archivers/pecl-zip/pkg/UNMESSAGE @@ -0,0 +1,9 @@ +You can disable this module by removing the +${PREFIX}/conf/php5/zip.ini symbolic link by +issuing the following command: + +rm -f ${PREFIX}/conf/php5/zip.ini + +If you already have Apache running on your machine, +you should not use "apachectl restart" - instead, +you should fully stop and then restart the server.