ports/78019: REPOCOPY: www/pear-APC -> www/pecl-APC
Marcus Grando
marcus at corp.grupos.com.br
Thu Feb 24 14:00:44 UTC 2005
>Number: 78019
>Category: ports
>Synopsis: REPOCOPY: www/pear-APC -> www/pecl-APC
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 24 14:00:42 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Marcus Grando
>Release: FreeBSD 4.11-STABLE i386
>Organization:
Grupos Internet S/A
>Environment:
System: FreeBSD corp.grupos.com.br 4.11-STABLE FreeBSD 4.11-STABLE #41: Sun Feb 13 17:30:27 BRST 2005 root at corp.grupos.com.br:/usr/obj/usr/src/sys/CORP i386
>Description:
REPOCOPY: www/pear-APC -> www/pecl-APC
Now is pecl package. http://pecl.php.net/package/APC
After repocopy, apply patch below
+ Update port
+ Take MAINTAINER
+ Add files/pkg-message.in
- Remove pkg-message and pkg-plist
>How-To-Repeat:
>Fix:
--- pecl-APC.patch begins here ---
diff -ruN pecl-APC.old/Makefile pecl-APC/Makefile
--- pecl-APC.old/Makefile Thu Jul 22 01:10:35 2004
+++ pecl-APC/Makefile Thu Feb 24 10:46:13 2005
@@ -7,47 +7,41 @@
PORTNAME= APC
PORTVERSION= 2.0.4
-CATEGORIES= www pear
+CATEGORIES= www
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PECL
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= marcus at corp.grupos.com.br
COMMENT= Alternative PHP Cache
-BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
USE_PHP= yes
USE_PHPIZE= yes
+USE_PHPEXT= yes
+PHP_MODNAME= apc
CONFIGURE_ARGS= --enable-apc
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
+OPTIONS= MMAP "Enable mmap" off
-.if exists(${LOCALBASE}/bin/php-config)
-EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
- "s:${PHP_BASE}/::"
+.if !defined(WITHOUT_MMAP)
+CONFIGURE_ARGS+= --enable-mmap
.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)
+PORTDOCS= *
+.endif
+
+post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for FILE in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ @${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR}
.endif
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE} | \
- ${SED} -e "s:/usr/local/etc/php.ini:${PHP_INI}:"
- @${ECHO_MSG}
+ @${SED} -e "s,%%LOCALBASE%%,${LOCALBASE},g;s,%%DOCSDIR%%,${DOCSDIR},g" \
+ ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN pecl-APC.old/distinfo pecl-APC/distinfo
--- pecl-APC.old/distinfo Thu Jul 22 01:10:35 2004
+++ pecl-APC/distinfo Thu Feb 24 09:39:32 2005
@@ -1,2 +1,2 @@
-MD5 (PEAR/APC-2.0.4.tgz) = 4962f05bc752e3cfa1f662bbdfa33605
-SIZE (PEAR/APC-2.0.4.tgz) = 44606
+MD5 (PECL/APC-2.0.4.tgz) = 4962f05bc752e3cfa1f662bbdfa33605
+SIZE (PECL/APC-2.0.4.tgz) = 44606
diff -ruN pecl-APC.old/files/pkg-message.in pecl-APC/files/pkg-message.in
--- pecl-APC.old/files/pkg-message.in Wed Dec 31 21:00:00 1969
+++ pecl-APC/files/pkg-message.in Thu Feb 24 10:46:23 2005
@@ -0,0 +1,15 @@
+************************************************************************
+You may edit %%LOCALBASE%%/etc/php.ini to change this variables:
+
+apc.enabled="1"
+ ^^^ -> Dafault 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.
+************************************************************************
diff -ruN pecl-APC.old/pkg-descr pecl-APC/pkg-descr
--- pecl-APC.old/pkg-descr Tue Sep 2 22:04:11 2003
+++ pecl-APC/pkg-descr Thu Feb 24 09:44:36 2005
@@ -3,4 +3,4 @@
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
+WWW: http://pecl.php.net/package/APC
diff -ruN pecl-APC.old/pkg-message pecl-APC/pkg-message
--- pecl-APC.old/pkg-message Tue Sep 2 22:04:11 2003
+++ pecl-APC/pkg-message Wed Dec 31 21:00:00 1969
@@ -1,13 +0,0 @@
-************************************************************************
-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 -ruN pecl-APC.old/pkg-plist pecl-APC/pkg-plist
--- pecl-APC.old/pkg-plist Tue Sep 2 22:04:11 2003
+++ pecl-APC/pkg-plist Wed Dec 31 21:00:00 1969
@@ -1,7 +0,0 @@
-%%EXTDIR%%/apc.so
-%%PKGREGDIR%%/package.xml
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/NOTICE
- at dirrm %%PKGREGDIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- pecl-APC.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list