aboutsummaryrefslogtreecommitdiff
path: root/mail/policyd2
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-05-14 20:17:20 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-05-14 20:17:20 +0000
commit37bd5f022b2273510f28640ddae20ea2b9853bd4 (patch)
tree7acf2c747ac2a5a7a8c27d94e4dcd5ef6e372539 /mail/policyd2
parent7ba5e8225fe2afa82f49e4cabce3eaecbaea73f9 (diff)
downloadports-37bd5f022b2273510f28640ddae20ea2b9853bd4.tar.gz
ports-37bd5f022b2273510f28640ddae20ea2b9853bd4.zip
Don't overwrite the webui config file.
PR: 200205 Submitted by: Danilo G. Baio (dbaio) Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=386358
Diffstat (limited to 'mail/policyd2')
-rw-r--r--mail/policyd2/Makefile4
-rw-r--r--mail/policyd2/pkg-plist2
2 files changed, 4 insertions, 2 deletions
diff --git a/mail/policyd2/Makefile b/mail/policyd2/Makefile
index f62f64972e7b..df5932a35af5 100644
--- a/mail/policyd2/Makefile
+++ b/mail/policyd2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= policyd2
PORTVERSION= 2.0.14
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://download.policyd.org/v${PORTVERSION}/
DISTNAME= cluebringer-v${PORTVERSION}
@@ -70,6 +70,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/cluebringer.conf \
${STAGEDIR}${PREFIX}/etc/cluebringer.conf.sample
(cd ${WRKSRC}/webui && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
+ ${MV} ${STAGEDIR}${WWWDIR}/includes/config.php \
+ ${STAGEDIR}${WWWDIR}/includes/config.php.sample
(cd ${WRKSRC}/cbp && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/cbp)
(cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} database ${STAGEDIR}${DATADIR})
diff --git a/mail/policyd2/pkg-plist b/mail/policyd2/pkg-plist
index 4a23225a312e..ca1b7bc43506 100644
--- a/mail/policyd2/pkg-plist
+++ b/mail/policyd2/pkg-plist
@@ -91,7 +91,7 @@ bin/cbpolicyd
%%WWWDIR%%/images/valid-css2.png
%%WWWDIR%%/images/valid-xhtml10.png
%%WWWDIR%%/images/wcag1AAA.png
-%%WWWDIR%%/includes/config.php
+@sample %%WWWDIR%%/includes/config.php.sample
%%WWWDIR%%/includes/db.php
%%WWWDIR%%/includes/footer.php
%%WWWDIR%%/includes/header.php