diff options
author | abs <abs@pkgsrc.org> | 2009-12-17 21:15:06 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-12-17 21:15:06 +0000 |
commit | 3d913cb9768dc4a8ef962479bc761f083cf4c5a6 (patch) | |
tree | 54c6303741fe0d262bd5dcee78767c4de7e6d526 /www | |
parent | fc879bd824d52defe5ab50fb7a10857338514cec (diff) | |
download | pkgsrc-3d913cb9768dc4a8ef962479bc761f083cf4c5a6.tar.gz |
PKG_DESTDIR_SUPPORT
Diffstat (limited to 'www')
-rw-r--r-- | www/drupal/Makefile | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/www/drupal/Makefile b/www/drupal/Makefile index 4f2f49a13cd..9e36ed0214e 100644 --- a/www/drupal/Makefile +++ b/www/drupal/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2009/09/29 13:39:58 taca Exp $ +# $NetBSD: Makefile,v 1.42 2009/12/17 21:15:06 abs Exp $ DISTNAME= drupal-5.20 CATEGORIES= www @@ -23,6 +23,7 @@ PKG_USERS_VARS+= APACHE_USER BUILD_DEFS+= APACHE_USER APACHE_GROUP USE_TOOLS+= perl:run pax +USE_LANGUAGES= c REPLACE_PERL= scripts/code-style.pl OWN_DIRS+= ${DRUPAL}/sites/default @@ -43,6 +44,8 @@ SUBST_FILES.conf= drupal.conf SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g" SUBST_MESSAGE.conf= Fixing configuration files. +PKG_DESTDIR_SUPPORT=destdir + .include "../../mk/apachever.mk" .include "../../lang/php/phpversion.mk" @@ -59,37 +62,34 @@ DEPENDS+= php>=5.2.4:../../lang/php5 post-extract: ${CP} ${FILESDIR}/drupal.conf ${WRKSRC} +INSTALLATION_DIRS+= share/doc/drupal share/examples/drupal +INSTALLATION_DIRS+= share/drupal share/drupal/files +INSTALLATION_DIRS+= share/drupal/profiles share/drupal/profiles/default +INSTALLATION_DIRS+= share/drupal/sites share/drupal/sites/all +INSTALLATION_DIRS+= share/drupal/sites/default + do-install: - ${INSTALL_DATA_DIR} ${DRUPAL} - ${INSTALL_DATA_DIR} ${DRUPAL}/files - ${INSTALL_DATA_DIR} ${DRUPAL}/profiles - ${INSTALL_DATA_DIR} ${DRUPAL}/profiles/default - ${INSTALL_DATA_DIR} ${DRUPAL}/sites - ${INSTALL_DATA_DIR} ${DRUPAL}/sites/all - ${INSTALL_DATA_DIR} ${DRUPAL}/sites/default - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drupal - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/drupal - ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/drupal - ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DRUPAL} + ${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/drupal + ${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${DRUPAL} ${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \ - ${DRUPAL}/sites/all + ${DESTDIR}${DRUPAL}/sites/all ${INSTALL_DATA} ${WRKSRC}/drupal.conf \ - ${PREFIX}/share/examples/drupal/drupal.conf + ${DESTDIR}${PREFIX}/share/examples/drupal/drupal.conf ${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \ - ${PREFIX}/share/examples/drupal/settings.php + ${DESTDIR}${PREFIX}/share/examples/drupal/settings.php ${INSTALL_DATA} ${WRKSRC}/profiles/default/default.profile \ - ${PREFIX}/share/examples/drupal/default.profile - ${INSTALL_DATA} ${WRKSRC}/*.php ${DRUPAL} + ${DESTDIR}${PREFIX}/share/examples/drupal/default.profile + ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${DRUPAL} . for i in ${PAX_DIRS} - cd ${WRKSRC}/${i} && pax -rw . ${DRUPAL}/${i} + cd ${WRKSRC}/${i} && pax -rw . ${DESTDIR}${DRUPAL}/${i} . endfor - ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DRUPAL}/files - ${CHMOD} 0770 ${DRUPAL}/files + ${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${DRUPAL}/files + ${CHMOD} 0770 ${DESTDIR}${DRUPAL}/files post-install: - ${FIND} ${DRUPAL} -name \*.jpg | ${XARGS} ${CHMOD} 0644 - ${FIND} ${DRUPAL} -name \*.png | ${XARGS} ${CHMOD} 0644 + ${FIND} ${DESTDIR}${DRUPAL} -name \*.jpg | ${XARGS} ${CHMOD} 0644 + ${FIND} ${DESTDIR}${DRUPAL} -name \*.png | ${XARGS} ${CHMOD} 0644 .include "../../mk/bsd.pkg.mk" |