diff options
author | marino <marino@FreeBSD.org> | 2014-08-14 06:45:45 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-08-14 06:45:45 +0800 |
commit | cd71e4aa88c0a9555ff808d2aa1b060571067d52 (patch) | |
tree | eafbad6629ff15ed2267de2b49e4cc3d138166a0 /www/phpbb3 | |
parent | 9dff62e6f8ac2ac439acc2d8a638929ce25b5e25 (diff) | |
download | freebsd-ports-gnome-cd71e4aa88c0a9555ff808d2aa1b060571067d52.tar.gz freebsd-ports-gnome-cd71e4aa88c0a9555ff808d2aa1b060571067d52.tar.zst freebsd-ports-gnome-cd71e4aa88c0a9555ff808d2aa1b060571067d52.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
Diffstat (limited to 'www/phpbb3')
-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 |