aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-14 23:20:29 +0800
committermarino <marino@FreeBSD.org>2014-08-14 23:20:29 +0800
commite982a492ce05dfdbb9c69236fb4d2eb1b2a9218c (patch)
tree34d5a1fd442aa0c9d825e6fe07c0a6fd00e1739d /www
parent37c9911d4d5f39ed2733d4918209d53d9af24bfe (diff)
downloadfreebsd-ports-gnome-e982a492ce05dfdbb9c69236fb4d2eb1b2a9218c.tar.gz
freebsd-ports-gnome-e982a492ce05dfdbb9c69236fb4d2eb1b2a9218c.tar.zst
freebsd-ports-gnome-e982a492ce05dfdbb9c69236fb4d2eb1b2a9218c.zip
Use @sample keyword on two ports I thought couldn't use it
Possible due to extreme sleep deprivation, I was confused about the limitations of the @sample keyword. The two www ports I modified last night, phpbb3 and autoindex2, both could use @sample with config.php, so go back and clean up my own mess. No revbump necessary as this is functionally equivalent to what is there now.
Diffstat (limited to 'www')
-rw-r--r--www/autoindex2/pkg-plist4
-rw-r--r--www/phpbb3/pkg-plist4
2 files changed, 2 insertions, 6 deletions
diff --git a/www/autoindex2/pkg-plist b/www/autoindex2/pkg-plist
index c6f6c1245a48..90493fc43168 100644
--- a/www/autoindex2/pkg-plist
+++ b/www/autoindex2/pkg-plist
@@ -3,9 +3,7 @@
@mode 644
%%INSTALLDIR%%/.htpasswd.autoindex.sample
@mode 664
-@unexec if cmp -s %D/%%INSTALLDIR%%/config.php.sample %D/%%INSTALLDIR%%/config.php; then rm -f %D/%%INSTALLDIR%%/config.php; fi
-%%INSTALLDIR%%/config.php.sample
-@exec if [ ! -f %D/%%INSTALLDIR%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
+@sample %%INSTALLDIR%%/config.php.sample
@mode
%%INSTALLDIR%%/hidden_files
%%INSTALLDIR%%/change_log.html
diff --git a/www/phpbb3/pkg-plist b/www/phpbb3/pkg-plist
index 9334955da49e..f459b23bd14e 100644
--- a/www/phpbb3/pkg-plist
+++ b/www/phpbb3/pkg-plist
@@ -131,9 +131,7 @@
%%PHPBBDIR%%/cache/.htaccess
%%PHPBBDIR%%/cache/index.htm
%%PHPBBDIR%%/common.php
-@unexec if cmp -s %D/%%PHPBBDIR%%/config.php.sample %D/%%PHPBBDIR%%/config.php; then rm -f %D/%%PHPBBDIR%%/config.php; fi
-%%PHPBBDIR%%/config.php.sample
-@exec if [ ! -f %D/%%PHPBBDIR%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
+@sample %%PHPBBDIR%%/config.php.sample
%%PHPBBDIR%%/cron.php
%%PHPBBDIR%%/docs/AUTHORS
%%PHPBBDIR%%/docs/CHANGELOG.html