summaryrefslogtreecommitdiff
path: root/www/php4/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-14 14:12:27 +0000
committerjlam <jlam@pkgsrc.org>2001-05-14 14:12:27 +0000
commita457d71ef9bd77577e911b0ab306069620f63f2c (patch)
treed20c2899fec4797c956fe6dba72e890e43a75af3 /www/php4/Makefile
parent31e2a71447e466e681672bed48fbb2ba3ec4f4f1 (diff)
downloadpkgsrc-a457d71ef9bd77577e911b0ab306069620f63f2c.tar.gz
Update php4 and modules to 4.0.5. Changes from version 4.0.4.1nb1 include
many general bugfixes, important fixes to the pgsql module to support PostgreSQL transactions correctly, speedups, and a zlib output compressor.
Diffstat (limited to 'www/php4/Makefile')
-rw-r--r--www/php4/Makefile24
1 files changed, 21 insertions, 3 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile
index 10346289c5a..b3ecc9ddc00 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2001/04/30 03:25:15 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2001/05/14 14:12:28 jlam Exp $
.include "../../www/php4/Makefile.common"
@@ -9,15 +9,33 @@ COMMENT= PHP4: Hypertext Preprocessor
CONFLICTS+= ap-php-4.0.3pl1
+CGIDIR= ${PREFIX}/libexec/cgi-bin
EGDIR= ${PREFIX}/share/examples/php
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/thttpd
+ ${SED} -e "s|@PHP_CONFDIR@|${PHP_CONFDIR}|g" \
+ -e "s|@CAT@|${CAT}|g" \
+ -e "s|@RM@|${RM}|g" \
+ ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
+ ${SED} -e "s|@PHP_CONFDIR@|${PHP_CONFDIR}|g" \
+ -e "s|@CAT@|${CAT}|g" \
+ -e "s|@CHMOD@|${CHMOD}|g" \
+ -e "s|@CP@|${CP}|g" \
+ ${PKGDIR}/INSTALL > ${INSTALL_FILE}
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/libexec/cgi-bin
- ${LN} -sf ../../bin/php ${PREFIX}/libexec/cgi-bin/php
+ ${INSTALL_DATA_DIR} ${CGIDIR}
+ ${LN} -sf ../../bin/php ${CGIDIR}/php
${TOUCH} ${PREFIX}/${PHP_EXTENSION_DIR}/.directory
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-dist php.ini-optimized ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/php
${INSTALL_DATA} ${WRKSRC}/php4.gif ${PREFIX}/share/php
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"