summaryrefslogtreecommitdiff
path: root/www/drupal5
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-12-29 17:51:04 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-12-29 17:51:04 +0000
commit3e1bdc306cade5cf703b297edb462cb85049329a (patch)
treef220edd2eae15fd7cbb586916bc195512fffc840 /www/drupal5
parent- Add SHA256 checksum (diff)
- Do the conffile helluva around settings.php
PR: ports/88388 Requested by: Aristedes Maniatis <ari@ish.com.au>
Notes
Notes: svn path=/head/; revision=152366
Diffstat (limited to 'www/drupal5')
-rw-r--r--www/drupal5/Makefile5
-rw-r--r--www/drupal5/pkg-plist4
2 files changed, 8 insertions, 1 deletions
diff --git a/www/drupal5/Makefile b/www/drupal5/Makefile
index e98d32e4b344..e4dfc911df9d 100644
--- a/www/drupal5/Makefile
+++ b/www/drupal5/Makefile
@@ -48,6 +48,11 @@ do-install:
${CP} -R ${WRKSRC}/misc ${PREFIX}/${DRUPDIR}
${CP} -R ${WRKSRC}/modules ${PREFIX}/${DRUPDIR}
${CP} -R ${WRKSRC}/scripts ${PREFIX}/${DRUPDIR}
+ ${MKDIR} ${PREFIX}/${DRUPDIR}/sites/default
+ ${CP} ${WRKSRC}/sites/default/settings.php ${PREFIX}/${DRUPDIR}/sites/default/settings.php-dist
+ @if [ ! -f ${PREFIX}/${DRUPDIR}/sites/default/settings.php ]; then \
+ ${CP} -p ${PREFIX}/${DRUPDIR}/sites/default/settings.php-dist ${PREFIX}/${DRUPDIR}/sites/default/settings.php ; \
+ fi
${CP} -R ${WRKSRC}/sites ${PREFIX}/${DRUPDIR}
${CP} -R ${WRKSRC}/themes ${PREFIX}/${DRUPDIR}
${CP} ${WRKSRC}/update.php ${PREFIX}/${DRUPDIR}
diff --git a/www/drupal5/pkg-plist b/www/drupal5/pkg-plist
index eced86429aa2..4810a1475d9f 100644
--- a/www/drupal5/pkg-plist
+++ b/www/drupal5/pkg-plist
@@ -84,7 +84,9 @@
%%DRUPDIR%%/scripts/cron-curl.sh
%%DRUPDIR%%/scripts/cron-lynx.sh
%%DRUPDIR%%/scripts/prefix.sh
-%%DRUPDIR%%/sites/default/settings.php
+@unexec if cmp -s %D/%%DRUPDIR%%/sites/default/settings.php-dist %D/%%DRUPDIR%%/sites/default/settings.php; then rm -f %D/%%DRUPDIR%%/sites/default/settings.php; fi
+%%DRUPDIR%%/sites/default/settings.php-dist
+@exec if [ ! -f %D/%%DRUPDIR%%/sites/default/settings.php ] ; then cp -p %D/%F %B/settings.php; fi
%%DRUPDIR%%/themes/bluemarine/logo.png
%%DRUPDIR%%/themes/bluemarine/screenshot.png
%%DRUPDIR%%/themes/bluemarine/style.css