aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-15 08:05:17 +0800
committermarino <marino@FreeBSD.org>2014-08-15 08:05:17 +0800
commitb5a86a0d813f074794445dd1037191276063a41e (patch)
treeacc72ec5f98d19b6f85e376ae86af07448a58150 /security
parent3cfb779dbd3f551602ed1dab1cbb3041242ee5cf (diff)
downloadfreebsd-ports-gnome-b5a86a0d813f074794445dd1037191276063a41e.tar.gz
freebsd-ports-gnome-b5a86a0d813f074794445dd1037191276063a41e.tar.zst
freebsd-ports-gnome-b5a86a0d813f074794445dd1037191276063a41e.zip
security/bro: Add su flags so pkg initialization works
PR: 192646 Submitted by: maintainer (Craig Leres)
Diffstat (limited to 'security')
-rw-r--r--security/bro/Makefile12
-rw-r--r--security/bro/pkg-plist6
2 files changed, 6 insertions, 12 deletions
diff --git a/security/bro/Makefile b/security/bro/Makefile
index d8154f1a8124..df3a9573443e 100644
--- a/security/bro/Makefile
+++ b/security/bro/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bro
PORTVERSION= 2.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.bro.org/downloads/release/
@@ -18,8 +18,7 @@ LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}"
-USES= cmake:outsource perl5
-USE_PYTHON= yes
+USES= cmake:outsource perl5 python
SUB_FILES= pkg-message
NO_MTREE= yes
@@ -140,11 +139,8 @@ post-install:
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/spool/installed-scripts-do-not-touch/auto
@${MKDIR} ${STAGEDIR}${PREFIX}/spool/installed-scripts-do-not-touch/site
-.for F in broctl.cfg
- @${INSTALL_DATA} ${INSTALL_WRKSRC}/aux/broctl/etc/${F} ${STAGEDIR}${PREFIX}/etc/${F}.example
-.endfor
-.for F in networks.cfg node.cfg
- @${MV} ${WRKSRC}/aux/broctl/etc/${F} ${STAGEDIR}${PREFIX}/etc/${F}.example
+.for F in broctl.cfg networks.cfg node.cfg
+ @${MV} ${STAGEDIR}${PREFIX}/etc/${F} ${STAGEDIR}${PREFIX}/etc/${F}.example
.endfor
.endif
diff --git a/security/bro/pkg-plist b/security/bro/pkg-plist
index f4b0bd60d8b1..fbbdf987b1bd 100644
--- a/security/bro/pkg-plist
+++ b/security/bro/pkg-plist
@@ -4,6 +4,7 @@
%%BROCTL%%@exec mkdir -p %D/spool/tmp
%%BROCTL%%@exec chown %%BROUSER%%:%%BROGROUP%% %D/spool
%%BROCTL%%@exec chown %%BROUSER%%:%%BROGROUP%% %D/spool/tmp
+%%BROCTL%%@exec chown -R %%BROUSER%%:%%BROGROUP%% %D/spool/installed-scripts-do-not-touch
bin/bro
bin/bro-cut
%%BROCTL%%bin/broctl
@@ -454,11 +455,8 @@ bin/bro-cut
%%BROCTL%%@unexec rm -f %D/spool/installed-scripts-do-not-touch/site/local.bro
%%BROCTL%%@dirrmtry spool/tmp
%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch/site
-%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch/site
-%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch/auto
%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch/auto
%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch
-%%BROCTL%%@dirrmtry spool/installed-scripts-do-not-touch
%%BROCTL%%@dirrmtry spool
%%BROCTL%%@dirrm %%DATADIR%%ctl/scripts/postprocessors
%%BROCTL%%@dirrm %%DATADIR%%ctl/scripts/helpers
@@ -560,4 +558,4 @@ bin/bro-cut
%%CLEANUP_PREFIX%%@dirrmtry etc
%%CLEANUP_PREFIX%%@dirrmtry bin
%%CLEANUP_PREFIX%%@dirrmtry %D
-%%BROCTL%%@exec su %%BROUSER%% -c '%D/bin/broctl install'
+%%BROCTL%%@exec su -fm %%BROUSER%% -c '%D/bin/broctl install'