summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-10-29 16:50:16 +0000
committerjlam <jlam@pkgsrc.org>2001-10-29 16:50:16 +0000
commit5265c36a984aaa1f4e0fe95253dca53b48d91ce5 (patch)
treef96259062d7b16de65ee389907eba0d34fa14683 /www
parentc5f1eacc366e3d0be90012c52000fd00d0f4054f (diff)
downloadpkgsrc-5265c36a984aaa1f4e0fe95253dca53b48d91ce5.tar.gz
www/php-apc - Alternative PHP Cache for PHP4
APC is the Alternative PHP Cache, which provides a way of boosting the performance of PHP on heavily-loaded sites by allowing scripts to be cached in a compiled state, so that the overhead of parsing and compiling can be almost completely eliminated. This is an open source product that does the same job as the commercial product Zend Cache.
Diffstat (limited to 'www')
-rw-r--r--www/php4-apc/Makefile33
-rw-r--r--www/php4-apc/distinfo7
-rw-r--r--www/php4-apc/patches/patch-aa13
-rw-r--r--www/php4-apc/patches/patch-ab14
-rw-r--r--www/php4-apc/patches/patch-ac13
-rw-r--r--www/php4-apc/pkg/DESCR4
-rw-r--r--www/php4-apc/pkg/PLIST.extras8
7 files changed, 92 insertions, 0 deletions
diff --git a/www/php4-apc/Makefile b/www/php4-apc/Makefile
new file mode 100644
index 00000000000..a2d8bb7c18c
--- /dev/null
+++ b/www/php4-apc/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+
+.include "../../www/php4/Makefile.module"
+
+DISTNAME= apc-1.1.0pl1
+PKGNAME= php-apc-1.1.0.1
+MODNAME= ${DISTNAME:C/-[^-]*$//}
+CATEGORIES+= www
+MASTER_SITES= http://apc.communityconnect.com/sources/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://apc.communityconnect.com/
+COMMENT= Alternative PHP Cache for PHP4
+
+EXTRACT_ELEMENTS= # empty
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USE_BUILDLINK_ONLY= YES
+CONFIGURE_ARGS+= --enable-${MODNAME}
+
+PLIST_SRC+= ${PKGDIR}/PLIST.extras
+PLIST_SUBST+= PKGBASE="${PKGBASE}"
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} \
+ GORY_DETAILS INSTALL LICENSE README.compiler ${DOCDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} extras/apcinfo.php ${EGDIR}
+
+.include "../../www/php4/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/php4-apc/distinfo b/www/php4-apc/distinfo
new file mode 100644
index 00000000000..5a0483bd415
--- /dev/null
+++ b/www/php4-apc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+
+SHA1 (apc-1.1.0pl1.tar.gz) = 7deac1c4c1989ab4cf9e2b9f16b7823d3731b6b4
+Size (apc-1.1.0pl1.tar.gz) = 240886 bytes
+SHA1 (patch-aa) = 20cf6cc1568979a1a3d103c40f62463ae2354e3e
+SHA1 (patch-ab) = a3794f8bf99e603ea8b0c9849475450c22c78b9e
+SHA1 (patch-ac) = 309224a4b0bc7a20a1748708785ee7df1d10ad42
diff --git a/www/php4-apc/patches/patch-aa b/www/php4-apc/patches/patch-aa
new file mode 100644
index 00000000000..6dd34000cb6
--- /dev/null
+++ b/www/php4-apc/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+
+--- Makefile.in.orig Thu Jan 11 15:31:49 2001
++++ Makefile.in
+@@ -9,7 +9,7 @@
+
+ LTLIBRARY_NAME = libapc.la
+ LTLIBRARY_SOURCES = php_apc.c apc_iface.c apc_cache.c apc_serialize.c apc_rwlock.c apc_smm.c apc_shm.c apc_sem.c apc_lib.c apc_crc32.c apc_fcntl.c apc_cache_mm.c apc_nametable.c apc_util.c
+-LTLIBRARY_SHARED_NAME = php_apc.la
++LTLIBRARY_SHARED_NAME = apc.la
+ LTLIBRARY_SHARED_LIBADD = $(APC_SHARED_LIBADD)
+
+ include $(top_srcdir)/build/dynlib.mk
diff --git a/www/php4-apc/patches/patch-ab b/www/php4-apc/patches/patch-ab
new file mode 100644
index 00000000000..a37fc187a61
--- /dev/null
+++ b/www/php4-apc/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+
+--- apc_sem.c.orig Fri Jun 15 10:38:34 2001
++++ apc_sem.c
+@@ -17,7 +17,9 @@
+ #include "apc_lib.h"
+ #include "apc_phpdeps.h"
+ #include <unistd.h>
++#ifdef HAVE_SEMAPHORE_H
+ #include <semaphore.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/ipc.h>
+ #include <sys/sem.h>
diff --git a/www/php4-apc/patches/patch-ac b/www/php4-apc/patches/patch-ac
new file mode 100644
index 00000000000..bd511b559af
--- /dev/null
+++ b/www/php4-apc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+
+--- config.m4.orig Fri Jun 15 10:38:34 2001
++++ config.m4
+@@ -27,6 +27,8 @@
+ PHP_EXTENSION(apc, $ext_shared)
+ fi
+
++AC_CHECK_HEADERS(semaphore.h)
++
+ AC_CACHE_CHECK(for union semun,php_cv_semun,
+ AC_TRY_COMPILE([
+ #include <sys/types.h>
diff --git a/www/php4-apc/pkg/DESCR b/www/php4-apc/pkg/DESCR
new file mode 100644
index 00000000000..4f41fe309c3
--- /dev/null
+++ b/www/php4-apc/pkg/DESCR
@@ -0,0 +1,4 @@
+APC is the Alternative PHP Cache, which provides a way of boosting the
+performance of PHP on heavily-loaded sites by allowing scripts to be cached
+in a compiled state, so that the overhead of parsing and compiling can be
+almost completely eliminated.
diff --git a/www/php4-apc/pkg/PLIST.extras b/www/php4-apc/pkg/PLIST.extras
new file mode 100644
index 00000000000..f40194b68d3
--- /dev/null
+++ b/www/php4-apc/pkg/PLIST.extras
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST.extras,v 1.1.1.1 2001/10/29 16:50:16 jlam Exp $
+share/doc/${PKGBASE}/INSTALL
+share/doc/${PKGBASE}/GORY_DETAILS
+share/doc/${PKGBASE}/LICENSE
+share/doc/${PKGBASE}/README.compiler
+share/examples/${PKGBASE}/apcinfo.php
+@dirrm share/examples/${PKGBASE}
+@dirrm share/doc/${PKGBASE}