summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authormarino <marino>2012-05-17 19:01:43 +0000
committermarino <marino>2012-05-17 19:01:43 +0000
commit0725e1efcbbd6f117322e35970f75ded4fc4e3bc (patch)
tree648e9676dd1841e07bdddb328e5dc019f9f5473b /lang
parentcc43bcf6f0d4fb4b53ab0eb0cbccd7f2e4063342 (diff)
downloadpkgsrc-0725e1efcbbd6f117322e35970f75ded4fc4e3bc.tar.gz
lang/php5: Fix unwanted directory removal
Replace OWN_DIRS with @pkgdir to avoid unwanted deletion of PHP extension directory when the only extension is deinstalled.
Diffstat (limited to 'lang')
-rw-r--r--lang/php5/Makefile6
-rw-r--r--lang/php5/PLIST3
2 files changed, 5 insertions, 4 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index ae9554d7978..eab774b2d50 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2012/05/13 16:09:52 taca Exp $
+# $NetBSD: Makefile,v 1.89 2012/05/17 19:01:43 marino Exp $
PKGNAME= php-${PHP_BASE_VERS}
PKGREVISION= 5
@@ -37,7 +37,7 @@ CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
MAKE_ENV+= INSTALL_ROOT=${DESTDIR:Q}
CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
-OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
+PLIST_SUBST+= PHPEXTDIR="${PHP_EXTENSION_DIR}"
SUBST_CLASSES+= path
SUBST_MESSAGE.path= Fixing common paths.
@@ -46,7 +46,7 @@ SUBST_FILES.path= configure php.ini-dist php.ini-recommended
SUBST_SED.path= -e 's,@CGIDIR@,${CGIDIR},g'
SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
-INSTALLATION_DIRS+= ${CGIDIR}
+INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR}
# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
diff --git a/lang/php5/PLIST b/lang/php5/PLIST
index 03f67ea8a9d..b1bc84f233e 100644
--- a/lang/php5/PLIST
+++ b/lang/php5/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2009/12/23 07:07:34 taca Exp $
+@comment $NetBSD: PLIST,v 1.26 2012/05/17 19:01:43 marino Exp $
bin/php
bin/php-config
bin/phpize
@@ -226,3 +226,4 @@ share/examples/php/php.ini-dist
share/examples/php/php.ini-recommended
share/php/php.gif
@pkgdir include/php/include
+@pkgdir ${PHPEXTDIR}