aboutsummaryrefslogtreecommitdiff
path: root/www/pecl-APC
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-03 01:04:11 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-03 01:04:11 +0000
commit3177b7ec466c3e2a040f139350b44d04d09808f1 (patch)
treec9ad95ae00864b041f5e23c11310e05002c9e3a2 /www/pecl-APC
parente743b009aa60dbad33e769a467977bc94a2def24 (diff)
downloadports-3177b7ec466c3e2a040f139350b44d04d09808f1.tar.gz
ports-3177b7ec466c3e2a040f139350b44d04d09808f1.zip
Notes
Diffstat (limited to 'www/pecl-APC')
-rw-r--r--www/pecl-APC/Makefile53
-rw-r--r--www/pecl-APC/distinfo1
-rw-r--r--www/pecl-APC/pkg-descr6
-rw-r--r--www/pecl-APC/pkg-message13
-rw-r--r--www/pecl-APC/pkg-plist7
5 files changed, 80 insertions, 0 deletions
diff --git a/www/pecl-APC/Makefile b/www/pecl-APC/Makefile
new file mode 100644
index 000000000000..3a791785ef47
--- /dev/null
+++ b/www/pecl-APC/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/distinfo b/www/pecl-APC/distinfo
new file mode 100644
index 000000000000..1d06208dfbe0
--- /dev/null
+++ b/www/pecl-APC/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/APC-2.0.tgz) = dfbbe831eeedacc495d3adec26d6f784
diff --git a/www/pecl-APC/pkg-descr b/www/pecl-APC/pkg-descr
new file mode 100644
index 000000000000..9a49a282355b
--- /dev/null
+++ b/www/pecl-APC/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/pkg-message b/www/pecl-APC/pkg-message
new file mode 100644
index 000000000000..0de322a03cfd
--- /dev/null
+++ b/www/pecl-APC/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/pkg-plist b/www/pecl-APC/pkg-plist
new file mode 100644
index 000000000000..5dbea02fc4c3
--- /dev/null
+++ b/www/pecl-APC/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%%