Import pecl-APC 3.0.12p2

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.

Joint work with William Yodlowsky <bsd@openbsd.rutgers.edu>
This commit is contained in:
alek 2006-10-13 14:58:42 +00:00
parent 804e5e8161
commit 80b1e03997
6 changed files with 101 additions and 0 deletions

63
www/pecl-APC/Makefile Normal file
View File

@ -0,0 +1,63 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/13 14:58:42 alek Exp $
SHARED_ONLY= Yes
COMMENT= "Alternative PHP Cache"
DISTNAME= APC-3.0.12p2
PKGNAME= pecl-${DISTNAME}
CATEGORIES= www
HOMEPAGE= http://pecl.php.net/package/APC
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
# PHP License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://pecl.php.net/get/
EXTRACT_SUFX= .tgz
AUTOCONF_VER= 2.59
AUTOMAKE_VER= 1.4
BUILD_DEPENDS= :php5-pear-*:www/php5/core,-pear \
::devel/autoconf/${AUTOCONF_VER} \
::devel/automake/${AUTOMAKE_VER} \
::devel/libtool
RUN_DEPENDS= :php5-core-*:www/php5/core
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --enable-apc \
--enable-apc-mmap \
--with-apxs \
--with-php-config=$(LOCALBASE)/bin/php-config
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VER} \
AUTOCONF_VERSION=${AUTOCONF_VER}
PREFIX= /var/www
FAKE_FLAGS= INSTALL_ROOT=${WRKINST}
SUBST_VARS= LOCALBASE
NO_REGRESS= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
post-configure:
@perl -pi -e "s,-rpath \\$$\\(phplibdir\\),-rpath ${LOCALBASE}/lib,g" \
${WRKSRC}/Makefile
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/pecl-APC
@${INSTALL_DATA} ${WRKSRC}/apc.php ${WRKSRC}/INSTALL \
${PREFIX}/pecl-APC
.include <bsd.port.mk>

4
www/pecl-APC/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (APC-3.0.12p2.tgz) = e7f1762ee95cdaaf90cf16345c6228a3
RMD160 (APC-3.0.12p2.tgz) = d88c75a348a51b0f0e379704dee5e1edc9fbf8ae
SHA1 (APC-3.0.12p2.tgz) = 79476e6071ff5eead2d1e7cc92ed614ef2fd7f67
SIZE (APC-3.0.12p2.tgz) = 94809

3
www/pecl-APC/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
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.

12
www/pecl-APC/pkg/MESSAGE Normal file
View File

@ -0,0 +1,12 @@
To finish the install of pecl-APC, you need
to enable the module by using the following command
# ${LOCALBASE}/sbin/phpxs -a apc
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.
You'll also need to configure APC using various
settings in php.ini. See ${PREFIX}/pecl-APC/INSTALL
for details.

8
www/pecl-APC/pkg/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/13 14:58:42 alek Exp $
lib/
lib/php/
lib/php/modules/
lib/php/modules/apc.so
pecl-APC/
pecl-APC/INSTALL
pecl-APC/apc.php

View File

@ -0,0 +1,11 @@
To completely deinstall the pecl-APC, you need
to disable the module by using the following command
# ${LOCALBASE}/sbin/phpxs -r apc
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.
You'll also need to remove the associated lines from
your php.ini file.