diff options
author | abs <abs@pkgsrc.org> | 2009-05-18 21:14:50 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-05-18 21:14:50 +0000 |
commit | eefda6555fe2461d3a63bd4447ae9e912533c336 (patch) | |
tree | fef802eb13da3f1c8d6ba354cee8e4cbfb552fd9 | |
parent | 3c430b35465b5b076e535a5770180f490228df76 (diff) | |
download | pkgsrc-eefda6555fe2461d3a63bd4447ae9e912533c336.tar.gz |
+PKG_DESTDIR_SUPPORT
-rw-r--r-- | www/mediawiki/Makefile | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/www/mediawiki/Makefile b/www/mediawiki/Makefile index f3fdf1724d0..48c7f99303c 100644 --- a/www/mediawiki/Makefile +++ b/www/mediawiki/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2009/05/12 12:27:20 martti Exp $ +# $NetBSD: Makefile,v 1.7 2009/05/18 21:14:50 abs Exp $ DISTNAME= mediawiki-${VER}.${PVER} CATEGORIES= www @@ -11,6 +11,12 @@ LICENSE= gnu-gpl-v2 DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql +EGDIR= share/examples/mediawiki +MEDIAWIKI= ${PREFIX}/share/mediawiki + +PKG_DESTDIR_SUPPORT= user-destdir +INSTALLATION_DIRS= ${EGDIR} share/mediawiki + .include "../../mk/bsd.prefs.mk" PKG_INSTALLATION_TYPES= overwrite pkgviews @@ -24,10 +30,7 @@ BUILD_DEFS+= APACHE_USER APACHE_GROUP PKG_SYSCONFSUBDIR?= httpd MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} -EGDIR= ${PREFIX}/share/examples/mediawiki -MEDIAWIKI= ${PREFIX}/share/mediawiki - -CONF_FILES= ${EGDIR}/mediawiki.conf \ +CONF_FILES= ${PREFIX}/${EGDIR}/mediawiki.conf \ ${PKG_SYSCONFDIR}/mediawiki.conf NO_CONFIGURE= YES @@ -50,15 +53,14 @@ post-extract: ${CP} ${FILESDIR}/mediawiki.conf ${WRKDIR}/mediawiki.conf do-install: - ${INSTALL_DATA_DIR} ${MEDIAWIKI} - ${INSTALL_DATA_DIR} ${EGDIR} cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \ - ${MEDIAWIKI}/{} \; -exec ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} \ - ${MEDIAWIKI}/{} \; + ${DESTDIR}${MEDIAWIKI}/{} \; -exec ${CHOWN} \ + ${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MEDIAWIKI}/{} \; cd ${WRKSRC} && ${FIND} . \! -type d -exec ${INSTALL_DATA} {} \ - ${MEDIAWIKI}/{} \; -exec ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} \ - ${MEDIAWIKI}/{} \; - ${INSTALL_DATA} ${WRKDIR}/mediawiki.conf ${EGDIR}/mediawiki.conf + ${DESTDIR}${MEDIAWIKI}/{} \; -exec ${CHOWN} \ + ${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MEDIAWIKI}/{} \; + ${INSTALL_DATA} ${WRKDIR}/mediawiki.conf \ + ${DESTDIR}${PREFIX}/${EGDIR}/mediawiki.conf .include "../../lang/php/phpversion.mk" .include "../../mk/apache.mk" |