pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/mediawiki +PKG_DESTDIR_SUPPORT
details: https://anonhg.NetBSD.org/pkgsrc/rev/249b8f3b287f
branches: trunk
changeset: 393247:249b8f3b287f
user: abs <abs%pkgsrc.org@localhost>
date: Mon May 18 21:14:50 2009 +0000
description:
+PKG_DESTDIR_SUPPORT
diffstat:
www/mediawiki/Makefile | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diffs (56 lines):
diff -r 3e9533a817b4 -r 249b8f3b287f www/mediawiki/Makefile
--- a/www/mediawiki/Makefile Mon May 18 19:11:32 2009 +0000
+++ b/www/mediawiki/Makefile Mon May 18 21:14:50 2009 +0000
@@ -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 @@
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 @@
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 @@
${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"
Home |
Main Index |
Thread Index |
Old Index