mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
- Remove pecl-APC-devel since pecl-APC was updated to 3.1.3p1.
This commit is contained in:
parent
b2e8ed26de
commit
864f795491
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=253028
@ -1,85 +0,0 @@
|
||||
# Ports collection makefile for: pear-APC
|
||||
# Date created: 31 August 2003
|
||||
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= APC
|
||||
DISTVERSION= 3.0.19
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://pecl.php.net/get/
|
||||
PKGNAMEPREFIX= pecl-
|
||||
EXTRACT_SUFX= .tgz
|
||||
DIST_SUBDIR= PECL
|
||||
|
||||
MAINTAINER= mnag@FreeBSD.org
|
||||
COMMENT= Alternative PHP Cache
|
||||
|
||||
USE_PHP= yes
|
||||
USE_PHPEXT= yes
|
||||
PHP_MODNAME= apc
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
CONFIGURE_ARGS= --enable-apc
|
||||
|
||||
OPTIONS= MMAP "Enable mmap memory support (default: IPC shm)" off \
|
||||
SEMAPHORES "Enable sysv IPC semaphores (default: fcntl())" off \
|
||||
SPINLOCKS "Enable spinlocks (experimental)" off \
|
||||
FILEHITS "Enable per request cache info" off \
|
||||
PHP4_OPT "Little optimization to PHP4" off
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_MMAP)
|
||||
CONFIGURE_ARGS+= --enable-apc-mmap
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SEMAPHORES)
|
||||
CONFIGURE_ARGS+= --enable-apc-sem
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SPINLOCKS)
|
||||
CONFIGURE_ARGS+= --enable-apc-spinlocks
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FILEHITS)
|
||||
CONFIGURE_ARGS+= --enable-apc-filehits
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PHP4_OPT)
|
||||
.if ${PHP_VER} == 4
|
||||
.if exists(${LOCALBASE}/include/apache/httpd.h)
|
||||
CFLAGS+= -I${LOCALBASE}/include/apache -DAPC_PHP4_STAT
|
||||
.elif exists(${LOCALBASE}/include/apache2/httpd.h)
|
||||
CFLAGS+= -I${LOCALBASE}/include/apache2 -DAPC_PHP4_STAT
|
||||
.elif exists(${LOCALBASE}/include/apache21/httpd.h)
|
||||
CFLAGS+= -I${LOCALBASE}/include/apache21 -DAPC_PHP4_STAT
|
||||
.elif exists(${LOCALBASE}/include/apache22/httpd.h)
|
||||
CFLAGS+= -I${LOCALBASE}/include/apache22 -DAPC_PHP4_STAT
|
||||
.endif
|
||||
.else
|
||||
pre-configure:
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} "*** WARNING ***"
|
||||
@${ECHO_CMD} "This optimization is only for PHP4. PHP5 or newer does not need it"
|
||||
@${ECHO_CMD} "I will continue instalation..."
|
||||
@${ECHO_CMD}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/apc.php ${DOCSDIR}
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,3 +0,0 @@
|
||||
MD5 (PECL/APC-3.0.19.tgz) = 951f43d2873e3572f5d5ae71a9b66f90
|
||||
SHA256 (PECL/APC-3.0.19.tgz) = a02677a7884361d64fbf3745c402f2a6ff313e817b0d0a2010acb64cd05247b0
|
||||
SIZE (PECL/APC-3.0.19.tgz) = 115735
|
@ -1,35 +0,0 @@
|
||||
#
|
||||
# Fix http://pecl.php.net/bugs/bug.php?id=5280
|
||||
#
|
||||
--- apc_sem.c.orig 2008-01-25 00:32:24.000000000 -0200
|
||||
+++ apc_sem.c 2008-01-25 00:35:28.000000000 -0200
|
||||
@@ -82,12 +82,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if ((semid = semget(key, 1, IPC_CREAT | IPC_EXCL | perms)) >= 0) {
|
||||
+ if ((semid = semget(key, 2, IPC_CREAT | IPC_EXCL | perms)) >= 0) {
|
||||
/* sempahore created for the first time, initialize now */
|
||||
arg.val = initval;
|
||||
if (semctl(semid, 0, SETVAL, arg) < 0) {
|
||||
apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid);
|
||||
}
|
||||
+ arg.val = getpid();
|
||||
+ if (semctl(semid, 1, SETVAL, arg) < 0) {
|
||||
+ apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid);
|
||||
+ }
|
||||
}
|
||||
else if (errno == EEXIST) {
|
||||
/* sempahore already exists, don't initialize */
|
||||
@@ -107,7 +111,10 @@
|
||||
{
|
||||
/* we expect this call to fail often, so we do not check */
|
||||
union semun arg;
|
||||
- semctl(semid, 0, IPC_RMID, arg);
|
||||
+ int semPid = semctl(semid, 1, GETVAL, 0);
|
||||
+ if (semPid == getpid()) {
|
||||
+ semctl(semid, 0, IPC_RMID, arg);
|
||||
+ }
|
||||
}
|
||||
|
||||
void apc_sem_lock(int semid)
|
@ -1,10 +0,0 @@
|
||||
--- ./php_apc.c.orig 2010-04-12 16:41:50.000000000 -0400
|
||||
+++ ./php_apc.c 2010-04-12 16:41:56.000000000 -0400
|
||||
@@ -955,7 +955,6 @@
|
||||
|
||||
#ifdef ZEND_ENGINE_2
|
||||
/* {{{ arginfo */
|
||||
-static
|
||||
ZEND_BEGIN_ARG_INFO(php_apc_fetch_arginfo, 0)
|
||||
ZEND_ARG_INFO(0, "key")
|
||||
ZEND_ARG_INFO(1, "success")
|
@ -1,15 +0,0 @@
|
||||
************************************************************************
|
||||
You may edit %%LOCALBASE%%/etc/php.ini to change this variables:
|
||||
|
||||
apc.enabled="1"
|
||||
^^^ -> Default value
|
||||
|
||||
apc.shm_size="30"
|
||||
^^^^ -> Default value
|
||||
|
||||
* More information on %%DOCSDIR%%/INSTALL
|
||||
|
||||
Then restart your web server and consult the output of phpinfo().
|
||||
If there is an informational section for APC, the installation was
|
||||
successful.
|
||||
************************************************************************
|
@ -1,6 +0,0 @@
|
||||
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://pecl.php.net/package/APC
|
Loading…
Reference in New Issue
Block a user