summaryrefslogtreecommitdiff
path: root/www/php4/Makefile
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-11-27 14:00:08 +0000
committerjdolecek <jdolecek>2004-11-27 14:00:08 +0000
commit634fa8258271f67cec5ba8036a926ac105ebe008 (patch)
tree887cc495cc1a305c095cb1bbee14517d4558b504 /www/php4/Makefile
parent174e7a43d2ab1c2a46581d36e755f7249f05b8fe (diff)
downloadpkgsrc-634fa8258271f67cec5ba8036a926ac105ebe008.tar.gz
Upgrade bundled Net_Socket to 1.0.2 and Net_SMTP to 1.2.6 on installation.
These include some important bug fixes, and some other pear packages require the newer versions. Bump PKGREVISION, and BUILDLINK_RECOMMENDED.
Diffstat (limited to 'www/php4/Makefile')
-rw-r--r--www/php4/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile
index 8ad68a8ca50..fa298f1b3db 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2004/04/24 23:03:25 xtraeme Exp $
+# $NetBSD: Makefile,v 1.39 2004/11/27 14:00:08 jdolecek Exp $
PKGNAME= php-${PHP_BASE_VERS}
CATEGORIES+= lang
@@ -36,6 +36,11 @@ MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
+# some of the bundled Pear extensions have newer versions, which fix
+# some known bugs
+PEAR_CMD= ${PREFIX}/bin/pear
+UPGRADE_PKG= Net_SMTP-1.2.6 Net_Socket-1.0.2
+
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${PREFIX}/bin/php
${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 ${PREFIX}/man/man1/php.1
@@ -46,4 +51,8 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/php
${INSTALL_DATA} ${WRKSRC}/php.gif ${PREFIX}/share/php
+ for p in ${UPGRADE_PKG}; do \
+ ${PEAR_CMD} upgrade $$p; \
+ done
+
.include "../../mk/bsd.pkg.mk"