summaryrefslogtreecommitdiff
path: root/www/php4/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp>2006-07-18 21:21:19 +0000
committeradrianp <adrianp>2006-07-18 21:21:19 +0000
commitdebfd8a03de0b4ad39184f53010a893568c9faa6 (patch)
tree14b3e74dfc4e1f5ae3a0891b3cd5fdea2442e913 /www/php4/Makefile
parentf4755a28e4ce47d6dea38ffc48226f35646091a4 (diff)
downloadpkgsrc-debfd8a03de0b4ad39184f53010a893568c9faa6.tar.gz
Fix for CVE-2006-1990
Fix for CVE-2006-3011 Include our own pear.sh from the tarball but slightly hacked to get around memory isses on installation.
Diffstat (limited to 'www/php4/Makefile')
-rw-r--r--www/php4/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile
index 7dd0bce46e7..4ae829dabe2 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.67 2006/07/07 15:49:34 jlam Exp $
+# $NetBSD: Makefile,v 1.68 2006/07/18 21:21:19 adrianp Exp $
PKGNAME= php-${PHP_BASE_VERS}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES+= lang
COMMENT= HTML-embedded scripting language
@@ -50,6 +50,16 @@ OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
USE_TOOLS+= gzcat
+SUBST_CLASSES= pear
+SUBST_STAGE.pear= pre-install
+SUBST_FILES.pear= ${WRKDIR}/pear.sh
+SUBST_SED.pear= -e "s|@php_bin@|${PREFIX}/bin/php|g"
+SUBST_SED.pear+= -e "s|@php_dir@|${PREFIX}/lib/php|g"
+SUBST_MESSAGE.pear= Fixing pear installation script.
+
+post-extract:
+ ${CP} ${FILESDIR}/pear.sh ${WRKDIR}
+
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${PREFIX}/bin/php
${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 ${PREFIX}/man/man1/php.1
@@ -59,5 +69,6 @@ post-install:
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-dist php.ini-recommended ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/php
${INSTALL_DATA} ${WRKSRC}/php.gif ${PREFIX}/share/php
+ ${INSTALL_SCRIPT} ${WRKDIR}/pear.sh ${PREFIX}/bin/pear
.include "../../mk/bsd.pkg.mk"