aboutsummaryrefslogtreecommitdiff
path: root/www/drupal7
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-06-18 12:17:26 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-06-18 12:17:26 +0000
commit97b074dddd05c769ab00e22be3bb7f108633ee27 (patch)
tree3043db14e178e9d6dc38783703496a1602d68fb8 /www/drupal7
parenta8e29575e40409db906cc184e64a56683fc93e65 (diff)
downloadports-97b074dddd05c769ab00e22be3bb7f108633ee27.tar.gz
ports-97b074dddd05c769ab00e22be3bb7f108633ee27.zip
Notes
Diffstat (limited to 'www/drupal7')
-rw-r--r--www/drupal7/Makefile11
-rw-r--r--www/drupal7/pkg-plist8
2 files changed, 8 insertions, 11 deletions
diff --git a/www/drupal7/Makefile b/www/drupal7/Makefile
index 121d7467c5e6..cf6c63d55c3d 100644
--- a/www/drupal7/Makefile
+++ b/www/drupal7/Makefile
@@ -3,6 +3,7 @@
PORTNAME= drupal7
PORTVERSION= 7.28
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://ftp.drupal.org/files/projects/
DISTNAME= drupal-${PORTVERSION}
@@ -14,9 +15,7 @@ COMMENT= Database driven web content management system (CMS)
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_DRUPAL= yes
-DRUPAL_PORT= yes
-DRUPAL_VERSION= 7
+USES= drupal:7
USE_PHP= dom filter gd hash json mbstring pcre pdo session simplexml xml
WANT_PHP_WEB= yes
@@ -65,16 +64,12 @@ do-install:
${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} ${WRKSRC}/sites/default/default.settings.php ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php.sample
${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>
diff --git a/www/drupal7/pkg-plist b/www/drupal7/pkg-plist
index 5ef031a85654..3c58d1df95f8 100644
--- a/www/drupal7/pkg-plist
+++ b/www/drupal7/pkg-plist
@@ -1,3 +1,5 @@
+@owner www
+@group www
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.txt
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.mysql.txt
@@ -959,8 +961,7 @@
%%DRUPAL_BASE%%/scripts/test.script
%%DRUPAL_BASE%%/sites/all/modules/README.txt
%%DRUPAL_BASE%%/sites/all/themes/README.txt
-%%DRUPAL_BASE%%/sites/default/default.settings.php
-%%DRUPAL_BASE%%/sites/default/default.settings.php-dist
+@sample %%DRUPAL_BASE%%/sites/default/default.settings.php.sample
%%DRUPAL_BASE%%/sites/example.sites.php
%%DRUPAL_BASE%%/themes/README.txt
%%DRUPAL_BASE%%/themes/bartik/bartik.info
@@ -1210,4 +1211,5 @@
@dirrm %%DRUPAL_BASE%%/includes
@dirrmtry %%DRUPAL_BASE%%/
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec (test -d %D/%%DRUPAL_BASE%% && (echo "Configuration information saved. If you will *NOT* use this package anymore," && echo "please remove %D/%%DRUPAL_BASE%% and its contents manually.")) || true
+@owner root
+@group wheel