summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-05-17 19:01:43 +0000
committermarino <marino@pkgsrc.org>2012-05-17 19:01:43 +0000
commit88b29a81b90fd702e5bd126652dc819985afb456 (patch)
tree648e9676dd1841e07bdddb328e5dc019f9f5473b /lang
parent03a0581bc3062fbd57a135ba5570d2e8f7ef7b5f (diff)
downloadpkgsrc-88b29a81b90fd702e5bd126652dc819985afb456.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}