aboutsummaryrefslogtreecommitdiffstats
path: root/www/drupal7
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-02-19 09:20:57 +0800
committermiwi <miwi@FreeBSD.org>2014-02-19 09:20:57 +0800
commitef45cdc157c84bd779746896940e767e874f062e (patch)
treec1eb128452cceca14c83e949649fcdc19d6afa00 /www/drupal7
parent0b01cfd7742be644df147e0b3fa806d0000edc34 (diff)
downloadfreebsd-ports-gnome-ef45cdc157c84bd779746896940e767e874f062e.tar.gz
freebsd-ports-gnome-ef45cdc157c84bd779746896940e767e874f062e.tar.zst
freebsd-ports-gnome-ef45cdc157c84bd779746896940e767e874f062e.zip
- Stage support
Diffstat (limited to 'www/drupal7')
-rw-r--r--www/drupal7/Makefile62
1 files changed, 28 insertions, 34 deletions
diff --git a/www/drupal7/Makefile b/www/drupal7/Makefile
index 1f3d19bfd861..1b828a6fad42 100644
--- a/www/drupal7/Makefile
+++ b/www/drupal7/Makefile
@@ -32,7 +32,6 @@ DOCS= CHANGELOG.txt INSTALL.mysql.txt INSTALL.sqlite.txt \
SUB_FILES+= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSQLITE3}
@@ -48,39 +47,34 @@ USE_PHP+= pdo_pgsql
.endif
do-install:
- ${MKDIR} ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/.htaccess ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/cron.php ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/authorize.php ${DRUPAL_DIR}
- ${CP} -R ${WRKSRC}/includes ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/index.php ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/install.php ${DRUPAL_DIR}
- ${CP} -R ${WRKSRC}/misc ${DRUPAL_DIR}
- ${CP} -R ${WRKSRC}/modules ${DRUPAL_DIR}
- ${CP} -R ${WRKSRC}/profiles ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/robots.txt ${DRUPAL_DIR}
- ${CP} -R ${WRKSRC}/scripts ${DRUPAL_DIR}
- ${MKDIR} ${DRUPAL_DIR}/sites/all
- ${MKDIR} ${DRUPAL_DIR}/sites/all/libraries
- ${CP} ${WRKSRC}/sites/example.sites.php ${DRUPAL_DIR}/sites/
- ${CP} -R ${WRKSRC}/sites/all ${DRUPAL_DIR}/sites/
- ${MKDIR} ${DRUPAL_DIR}/sites/default
- ${MKDIR} ${DRUPAL_DIR}/sites/default/files
- ${CP} ${WRKSRC}/sites/default/default.settings.php ${DRUPAL_DIR}/sites/default/default.settings.php-dist
- @if [ ! -f ${DRUPAL_DIR}/sites/default/default.settings.php ]; then \
- ${CP} -p ${DRUPAL_DIR}/sites/default/default.settings.php-dist ${DRUPAL_DIR}/sites/default/default.settings.php ; \
+ ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/.htaccess ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/cron.php ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/authorize.php ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} -R ${WRKSRC}/includes ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/index.php ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/install.php ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} -R ${WRKSRC}/misc ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} -R ${WRKSRC}/modules ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} -R ${WRKSRC}/profiles ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/robots.txt ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} -R ${WRKSRC}/scripts ${STAGEDIR}${DRUPAL_DIR}
+ ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all
+ ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/libraries
+ ${CP} ${WRKSRC}/sites/example.sites.php ${STAGEDIR}${DRUPAL_DIR}/sites/
+ ${CP} -R ${WRKSRC}/sites/all ${STAGEDIR}${DRUPAL_DIR}/sites/
+ ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default
+ ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default/files
+ ${CP} ${WRKSRC}/sites/default/default.settings.php ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php-dist
+ @if [ ! -f ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php ]; then \
+ ${CP} -p ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php-dist ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php ; \
fi
- ${CP} -R ${WRKSRC}/themes ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/update.php ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/web.config ${DRUPAL_DIR}
- ${CP} ${WRKSRC}/xmlrpc.php ${DRUPAL_DIR}
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${CP} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
- ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DRUPAL_DIR}
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ ${CP} -R ${WRKSRC}/themes ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/update.php ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/web.config ${STAGEDIR}${DRUPAL_DIR}
+ ${CP} ${WRKSRC}/xmlrpc.php ${STAGEDIR}${DRUPAL_DIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${CP} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${DRUPAL_DIR}
.include <bsd.port.mk>