diff options
author | John Marino <marino@FreeBSD.org> | 2014-08-13 22:45:45 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-08-13 22:45:45 +0000 |
commit | ac7f76f9060e9baca770b98ac5b750d10d7a5da7 (patch) | |
tree | eafbad6629ff15ed2267de2b49e4cc3d138166a0 | |
parent | 953ad021f1ed9bd2dfe5eaa6f143cd2acf372fea (diff) | |
download | ports-ac7f76f9060e9baca770b98ac5b750d10d7a5da7.tar.gz ports-ac7f76f9060e9baca770b98ac5b750d10d7a5da7.zip |
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
Notes
Notes:
svn path=/head/; revision=364819
-rw-r--r-- | www/phpbb3/Makefile | 1 | ||||
-rw-r--r-- | www/phpbb3/pkg-plist | 4 |
2 files changed, 4 insertions, 1 deletions
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 |