Bug 134656

Summary: Create www/pecl-APC-dev
Product: Ports & Packages Reporter: Till Klampaeckel <till>
Component: Individual Port(s)Assignee: Marcus Alves Grando <mnag>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Till Klampaeckel 2009-05-18 17:40:00 UTC
APC "recently" released beta versions that break compat with PHP4 but add other features and improvements. They are still beta versions, but I was wondering if they could be rolled into their own port.

Fix: Obviously, make makesum in the new port dir.

Here's the diff between old and new:
Files pecl-APC/Makefile and pecl-APC-devel/Makefile differ
Files pecl-APC/distinfo and pecl-APC-devel/distinfo differ
Only in pecl-APC/files: patch-apc_sem.c

Here's the patch to the Makefile:


PORTNAME=      APC
-DISTVERSION=   3.0.19
+DISTVERSION=   3.1.2
 CATEGORIES=    www
 MASTER_SITES=  http://pecl.php.net/get/
 PKGNAMEPREFIX= pecl-
@@ -26,10 +26,9 @@ 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 \
+               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=      *

@@ -51,26 +50,7 @@ CONFIGURE_ARGS+=     --enable-apc-spinlocks
 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
+CONFLICTS=     pecl-APC-3.0.*

 post-install:
 .if !defined(NOPORTDOCS)--VkePv4lGPoZhvKLHw1yH1boWD1bPbUcigFk840GLw8L45TiT
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- pecl-APC/Makefile   2009-03-24 23:18:42.000000000 -0500
+++ pecl-APC-devel/Makefile     2009-05-18 11:31:24.000000000 -0500
@@ -6,7 +6,7 @@
 #
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-05-18 19:24:55 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-05-30 19:42:22 UTC
State Changed
From-To: open->closed

empty pr.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2009-05-31 14:19:53 UTC
State Changed
From-To: closed->open

reopen,
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2009-07-04 22:30:44 UTC
Responsible Changed
From-To: miwi->mnag

Over to maintainer.
Comment 5 Marcus Alves Grando freebsd_committer freebsd_triage 2010-04-22 01:16:33 UTC
State Changed
From-To: open->closed

pecl-APC was updated to 3.1.3p1. Thanks