From cd71e4aa88c0a9555ff808d2aa1b060571067d52 Mon Sep 17 00:00:00 2001 From: marino Date: Wed, 13 Aug 2014 22:45:45 +0000 Subject: www/phpbb3: Replace @sample keyword The @sample keyword got used here but it didn't work because the extension was php.sample instead of conf.sample. Fix it with @unexec and @exec tricks. By the way, the previous commit to this port and the one that should have provided this @sample fix is: PR: 191456 --- www/phpbb3/Makefile | 1 + www/phpbb3/pkg-plist | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'www/phpbb3') diff --git a/www/phpbb3/Makefile b/www/phpbb3/Makefile index 3a4d594bfce9..10783e2e7366 100644 --- a/www/phpbb3/Makefile +++ b/www/phpbb3/Makefile @@ -3,6 +3,7 @@ PORTNAME= phpbb PORTVERSION= 3.0.12 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://www.phpbb.com/files/release/ PKGNAMESUFFIX= 3 diff --git a/www/phpbb3/pkg-plist b/www/phpbb3/pkg-plist index f459b23bd14e..9334955da49e 100644 --- a/www/phpbb3/pkg-plist +++ b/www/phpbb3/pkg-plist @@ -131,7 +131,9 @@ %%PHPBBDIR%%/cache/.htaccess %%PHPBBDIR%%/cache/index.htm %%PHPBBDIR%%/common.php -@sample %%PHPBBDIR%%/config.php.sample +@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 %%PHPBBDIR%%/cron.php %%PHPBBDIR%%/docs/AUTHORS %%PHPBBDIR%%/docs/CHANGELOG.html -- cgit