1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

security/bro: Add su flags so pkg initialization works

PR:		192646
Submitted by:	maintainer (Craig Leres)
This commit is contained in:
John Marino 2014-08-15 00:05:17 +00:00
parent c4b62c6b39
commit adcddca1ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364876
2 changed files with 6 additions and 12 deletions

View File

@ -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

View File

@ -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,10 +455,7 @@ 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
@ -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'