From 0bf54548870a32719dfe261c5c7957090506b8b9 Mon Sep 17 00:00:00 2001 From: marino Date: Sat, 19 May 2012 09:51:34 +0000 Subject: lang/php53: Fix unwanted directory removal Replace OWN_DIRS with @pkgdir to avoid unwanted deletion of PHP extension directory when the only extension is deinstalled. --- lang/php53/Makefile | 6 +++--- lang/php53/PLIST | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'lang/php53') diff --git a/lang/php53/Makefile b/lang/php53/Makefile index 9fd27ffa305..69eae16c3a5 100644 --- a/lang/php53/Makefile +++ b/lang/php53/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2012/05/09 06:52:51 taca Exp $ +# $NetBSD: Makefile,v 1.28 2012/05/19 09:51:34 marino Exp $ # # We can't omit PKGNAME here to handle PKG_OPTIONS. @@ -26,7 +26,7 @@ CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q} MAKE_ENV+= INSTALL_ROOT=${DESTDIR} CONF_FILES= ${EGDIR}/php.ini-production ${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. @@ -36,7 +36,7 @@ SUBST_FILES.path+= php.ini-development php.ini-production run-tests.php SUBST_SED.path= -e 's,@CGIDIR@,${CGIDIR},g' SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g' -INSTALLATION_DIRS+= ${CGIDIR} ${EGDIR} share/php +INSTALLATION_DIRS+= ${CGIDIR} ${EGDIR} share/php ${PHP_EXTENSION_DIR} # Make sure modules can link correctly .if ${OPSYS} == "Darwin" diff --git a/lang/php53/PLIST b/lang/php53/PLIST index dd133925901..0973f391e71 100644 --- a/lang/php53/PLIST +++ b/lang/php53/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2011/08/20 13:55:09 taca Exp $ +@comment $NetBSD: PLIST,v 1.3 2012/05/19 09:51:34 marino Exp $ bin/phar bin/phar.phar bin/php @@ -236,3 +236,4 @@ share/examples/php/php.ini-development share/examples/php/php.ini-production share/php/php.gif @pkgdir include/php/include +@pkgdir ${PHPEXTDIR} -- cgit v1.2.3