diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-03 01:04:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-03 01:04:11 +0000 |
commit | 3177b7ec466c3e2a040f139350b44d04d09808f1 (patch) | |
tree | c9ad95ae00864b041f5e23c11310e05002c9e3a2 /www/pecl-APC-devel | |
parent | Update MASTER_SITES for arj-3.10g (diff) |
New port: www/pear-APC - Alternative PHP Cache.
This port does not build out of the box, and has been
requested on the PEAR-DEV mailing list.
See <http://marc.theaimsgroup.com/?t=106235180900001&;r=1&w=2>.
PR: ports/56294
Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes:
svn path=/head/; revision=88389
Diffstat (limited to 'www/pecl-APC-devel')
-rw-r--r-- | www/pecl-APC-devel/Makefile | 53 | ||||
-rw-r--r-- | www/pecl-APC-devel/distinfo | 1 | ||||
-rw-r--r-- | www/pecl-APC-devel/pkg-descr | 6 | ||||
-rw-r--r-- | www/pecl-APC-devel/pkg-message | 13 | ||||
-rw-r--r-- | www/pecl-APC-devel/pkg-plist | 7 |
5 files changed, 80 insertions, 0 deletions
diff --git a/www/pecl-APC-devel/Makefile b/www/pecl-APC-devel/Makefile new file mode 100644 index 000000000000..3a791785ef47 --- /dev/null +++ b/www/pecl-APC-devel/Makefile @@ -0,0 +1,53 @@ +# Ports collection makefile for: pear-APC +# Date created: 31 August 2003 +# Whom: Thierry Thomas (<thierry@pompo.net>) +# +# $FreeBSD$ +# + +PORTNAME= APC +PORTVERSION= 2.0 +CATEGORIES= www + +MAINTAINER= ports@FreeBSD.org +COMMENT= Alternative PHP Cache + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PHPIZE= yes + +CONFIGURE_ARGS= --enable-apc + +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" +.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common" + +.if exists(${LOCALBASE}/bin/php-config) +EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \ + "s:${PHP_BASE}/::" +.endif +PHP_DIR?= ${LOCALBASE}/etc +PHP_INI= ${PHP_DIR}/php.ini +PLIST_SUB+= EXTDIR=${EXT_DIR} +DOCS= CHANGELOG INSTALL NOTICE + +post-install-script: + @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/apc.so + @if [ ! -f ${PHP_INI} ]; then \ + ${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \ + ${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \ + fi +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for FILE in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." +.endif + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} | \ + ${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:" + @${ECHO_MSG} + +.include <bsd.port.post.mk> diff --git a/www/pecl-APC-devel/distinfo b/www/pecl-APC-devel/distinfo new file mode 100644 index 000000000000..1d06208dfbe0 --- /dev/null +++ b/www/pecl-APC-devel/distinfo @@ -0,0 +1 @@ +MD5 (PEAR/APC-2.0.tgz) = dfbbe831eeedacc495d3adec26d6f784 diff --git a/www/pecl-APC-devel/pkg-descr b/www/pecl-APC-devel/pkg-descr new file mode 100644 index 000000000000..9a49a282355b --- /dev/null +++ b/www/pecl-APC-devel/pkg-descr @@ -0,0 +1,6 @@ +APC is the Alternative PHP Cache. + +It was conceived of to provide a free, open, and robust framework for +caching and optimizing PHP intermediate code. + +WWW: http://pear.php.net/package/APC diff --git a/www/pecl-APC-devel/pkg-message b/www/pecl-APC-devel/pkg-message new file mode 100644 index 000000000000..0de322a03cfd --- /dev/null +++ b/www/pecl-APC-devel/pkg-message @@ -0,0 +1,13 @@ +************************************************************************ +Do not forget to configure your /usr/local/etc/php.ini file: +add the line: + +extension="apc.so" + +in the section "Dynamic Extensions". + +Then restart your web server and consult the output of phpinfo(). +If there is an informational section for APC, the installation was +successful. +************************************************************************ + diff --git a/www/pecl-APC-devel/pkg-plist b/www/pecl-APC-devel/pkg-plist new file mode 100644 index 000000000000..5dbea02fc4c3 --- /dev/null +++ b/www/pecl-APC-devel/pkg-plist @@ -0,0 +1,7 @@ +%%EXTDIR%%/apc.so +%%PKGREGDIR%%/package.xml +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NOTICE +@dirrm %%PKGREGDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |