Date: Sun, 21 Jul 2002 12:44:46 +0200 (CEST) From: Alex Dupre <sysadmin@alexdupre.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/40829: [Maintainer Update] www/php-templates Message-ID: <200207211044.g6LAik4C002361@vaio.alexdupre.com>
next in thread | raw e-mail | index | archive | help
>Number: 40829 >Category: ports >Synopsis: [Maintainer Update] www/php-templates >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jul 21 03:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alex Dupre >Release: FreeBSD 4.5-ALEXDUPRE i386 >Organization: >Environment: System: FreeBSD vaio.alexdupre.com 4.5-ALEXDUPRE FreeBSD 4.5-ALEXDUPRE #0: Fri Apr 12 14:12:57 CEST 2002 alex@vaio.alexdupre.com:/usr/obj/usr/src/sys/VAIO i386 >Description: Update from 0.2 to 1.1. Some sources created problems because of \r\n line termination, so I included the dosunix dependency. Maybe there is a better way to convert \r\n into \n. >How-To-Repeat: >Fix: --- php-templates.diff begins here --- diff -ruN php-templates.orig/Makefile php-templates/Makefile --- php-templates.orig/Makefile Sun Jul 21 11:22:07 2002 +++ php-templates/Makefile Sun Jul 21 12:32:57 2002 @@ -6,7 +6,7 @@ # PORTNAME= php-templates -PORTVERSION= 0.2 +PORTVERSION= 1.1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,29 +16,43 @@ BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ autoconf:${PORTSDIR}/devel/autoconf \ - phpize:${PORTSDIR}/www/mod_php4 + phpize:${PORTSDIR}/www/mod_php4 \ + dosunix:${PORTSDIR}/converters/dosunix RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \ ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 USE_LIBTOOL= yes -LIBTOOLFILES= aclocal.m4 WRKSRC= ${WRKDIR}/templates -CONFIGURE_ARGS+=--enable-templates=shared \ +CONFIGURE_ARGS= --enable-templates=shared \ --with-php-config=${PREFIX}/bin/php-config +PKGMESSAGE= ${WRKDIR}/pkg-message + post-extract: @${ECHO_MSG} "===> PHPizing for ${DISTNAME}" @cd ${WRKSRC} && ${LOCALBASE}/bin/phpize +post-patch: + @(cd ${WRKSRC}; \ + ${MV} php_templates.h php_templates.h.orig; \ + ${MV} templates.c templates.c.orig; \ + ${MV} tmpl_lib.c tmpl_lib.c.orig; \ + ${LOCALBASE}/bin/dosunix php_templates.h.orig php_templates.h; \ + ${LOCALBASE}/bin/dosunix templates.c.orig templates.c; \ + ${LOCALBASE}/bin/dosunix tmpl_lib.c.orig tmpl_lib.c) + +post-build: + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \ + ${.CURDIR}/pkg-message > ${PKGMESSAGE} + do-install: - @${MKDIR} ${PREFIX}/lib/php/20010901 + @${MKDIR} ${PREFIX}/lib/php/extensions @${INSTALL_DATA} ${WRKSRC}/modules/templates.so \ - ${PREFIX}/lib/php/20010901 + ${PREFIX}/lib/php/extensions post-install: - @${SED} "s!%%LOCALBASE%%!${LOCALBASE}!g;s!%%PREFIX%%!${PREFIX}!g" \ - ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff -ruN php-templates.orig/distinfo php-templates/distinfo --- php-templates.orig/distinfo Sun Jul 21 11:22:07 2002 +++ php-templates/distinfo Sun Jul 21 11:27:44 2002 @@ -1 +1 @@ -MD5 (php_templates-0.2.tar.gz) = 1f18df4b54e5f541afaad31f9c3225cc +MD5 (php_templates-1.1.tar.gz) = e7c30fd006f2a63862fdc40b76757f5f diff -ruN php-templates.orig/pkg-message php-templates/pkg-message --- php-templates.orig/pkg-message Sun Jul 21 11:22:07 2002 +++ php-templates/pkg-message Sun Jul 21 12:26:04 2002 @@ -4,6 +4,6 @@ Edit %%LOCALBASE%%/etc/php.ini and add: -extension="%%PREFIX%%/lib/php/20010901/templates.so" +extension="%%PREFIX%%/lib/php/extensions/templates.so" ***************************************************************************** diff -ruN php-templates.orig/pkg-plist php-templates/pkg-plist --- php-templates.orig/pkg-plist Sun Jul 21 11:22:07 2002 +++ php-templates/pkg-plist Sun Jul 21 11:27:37 2002 @@ -1,2 +1 @@ -lib/php/20010901/templates.so -@unexec rmdir %D/lib/php/20010901 2>/dev/null || true +lib/php/extensions/templates.so --- php-templates.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207211044.g6LAik4C002361>