diff options
author | pav <pav@FreeBSD.org> | 2005-12-30 01:51:04 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-12-30 01:51:04 +0800 |
commit | 162c23e93bbf31e9d77a632c6c3fba35e976806a (patch) | |
tree | 5b9d1bc872ac84f1ed3e1de1664e912ac1c534c8 /www/drupal7 | |
parent | 217a1bdf6bb34ac16f92e6f3854027846e104b4d (diff) | |
download | freebsd-ports-gnome-162c23e93bbf31e9d77a632c6c3fba35e976806a.tar.gz freebsd-ports-gnome-162c23e93bbf31e9d77a632c6c3fba35e976806a.tar.zst freebsd-ports-gnome-162c23e93bbf31e9d77a632c6c3fba35e976806a.zip |
- Do the conffile helluva around settings.php
PR: ports/88388
Requested by: Aristedes Maniatis <ari@ish.com.au>
Diffstat (limited to 'www/drupal7')
-rw-r--r-- | www/drupal7/Makefile | 5 | ||||
-rw-r--r-- | www/drupal7/pkg-plist | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/www/drupal7/Makefile b/www/drupal7/Makefile index e98d32e4b344..e4dfc911df9d 100644 --- a/www/drupal7/Makefile +++ b/www/drupal7/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/drupal7/pkg-plist b/www/drupal7/pkg-plist index eced86429aa2..4810a1475d9f 100644 --- a/www/drupal7/pkg-plist +++ b/www/drupal7/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 |