Date: Tue, 25 Mar 2003 07:47:59 +0100 (CET) From: Alex Dupre <sysadmin@alexdupre.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50265: [Maintainer Update] Port: www/php-dyn Message-ID: <200303250647.h2P6lxTm095550@vaio.alexdupre.com>
next in thread | raw e-mail | index | archive | help
>Number: 50265 >Category: ports >Synopsis: [Maintainer Update] Port: www/php-dyn >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 22:50:08 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alex Dupre >Release: FreeBSD 4.8-ALEXDUPRE i386 >Organization: >Environment: System: FreeBSD 4.8-ALEXDUPRE i386 >Description: Update from 1.2 to 1.2.1 release. Use WANT_ variables. Work with Apache 2. >How-To-Repeat: >Fix: --- php-dyn.diff begins here --- diff -ruN php-dyn.orig/Makefile php-dyn/Makefile --- php-dyn.orig/Makefile Tue Mar 25 07:10:13 2003 +++ php-dyn/Makefile Tue Mar 25 07:37:46 2003 @@ -6,7 +6,7 @@ # PORTNAME= php-dyn -PORTVERSION= 1.2 +PORTVERSION= 1.2.1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,30 +16,42 @@ MAINTAINER= sysadmin@alexdupre.com COMMENT= A PHP Extension to help debugging a PHP script -BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ - autoconf:${PORTSDIR}/devel/autoconf \ - phpize:${PORTSDIR}/www/mod_php4 -RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \ - ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +BUILD_DEPENDS= phpize:${PORTSDIR}/www/mod_php4 +RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${APACHE_PORT} \ + ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4 USE_LIBTOOL= yes +WANT_AUTOMAKE_VER= 15 +WANT_AUTOCONF_VER= 253 + CONFIGURE_ARGS= --enable-php_dyn=shared \ --with-php-config=${LOCALBASE}/bin/php-config +EXT_DIR= 20020429 +PLIST_SUB= EXT_DIR=${EXT_DIR} + PKGMESSAGE= ${WRKDIR}/pkg-message +.include <bsd.port.pre.mk> + +.if defined(WITH_APACHE2) || exists(${LOCALBASE}/include/apache2/apr.h) +APACHE_PORT?= ${PORTSDIR}/www/apache2 +.else +APACHE_PORT?= ${PORTSDIR}/www/apache13 +.endif + post-extract: @${ECHO_MSG} "===> PHPizing for ${PORTNAME}-${PORTVERSION}" @(cd ${WRKSRC}; ${LOCALBASE}/bin/phpize) post-build: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \ + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \ ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} do-install: - @${MKDIR} ${PREFIX}/lib/php/extensions + @${MKDIR} ${PREFIX}/lib/php/${EXT_DIR} @${INSTALL_DATA} ${WRKSRC}/modules/php_dyn.so \ - ${PREFIX}/lib/php/extensions + ${PREFIX}/lib/php/${EXT_DIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README.en ${DOCSDIR}/README @@ -48,4 +60,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN php-dyn.orig/distinfo php-dyn/distinfo --- php-dyn.orig/distinfo Tue Mar 25 07:10:13 2003 +++ php-dyn/distinfo Tue Mar 25 07:17:22 2003 @@ -1 +1 @@ -MD5 (php_dyn-1.2.tgz) = 75a90c4731ad4b1ee4887dc24a118b67 +MD5 (php_dyn-1.2.1.tgz) = cad66289a4d2fb6aa3165b4e9a0d3c5c diff -ruN php-dyn.orig/files/pkg-message.in php-dyn/files/pkg-message.in --- php-dyn.orig/files/pkg-message.in Tue Mar 25 07:10:13 2003 +++ php-dyn/files/pkg-message.in Tue Mar 25 07:38:40 2003 @@ -4,6 +4,6 @@ Edit %%LOCALBASE%%/etc/php.ini and add: -zend_extension="%%PREFIX%%/lib/php/extensions/php_dyn.so" +zend_extension="%%PREFIX%%/lib/php/%%EXT_DIR%%/php_dyn.so" ***************************************************************************** diff -ruN php-dyn.orig/pkg-plist php-dyn/pkg-plist --- php-dyn.orig/pkg-plist Tue Mar 25 07:10:13 2003 +++ php-dyn/pkg-plist Tue Mar 25 07:25:31 2003 @@ -1,3 +1,4 @@ -lib/php/extensions/php_dyn.so +lib/php/%%EXT_DIR%%/php_dyn.so %%PORTDOCS%%share/doc/php-dyn/README +@unexec rmdir %D/lib/php/%%EXT_DIR%% 2> /dev/null || true %%PORTDOCS%%@dirrm share/doc/php-dyn --- php-dyn.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303250647.h2P6lxTm095550>