freebsd-ports/security/bro/files/pkg-install.in
Edwin Groothuis 13b2aeec3d security/bro, port upgrade to version 1.2.1, take over maintainership
This is an upgrade of the security/bro port to the current
	stable version.  The port is very complex, so it needs to
	be tested carefully to make sure that I'm not screwing
	anything up or using wrong conventions. Also, I'm willing
	to take over maintainership of the port if it's accepted
	into the tree.

	Please note, there are several files that need to be removed
	from the port and quite a few that need to be added. All
	these files are in FILESDIR.  I have provided blank patches
	for the files that need to be removed, so the patches will
	create blank files.

Added IS_INTERACTIVE to the port
Left original freebsd header comments in it.
Next time please use one big patch-file instead of lots of little ones :-)

PR:		ports/114999
Submitted by:	Paul Schmehl <pauls@utdallas.edu>
2007-09-10 13:28:12 +00:00

25 lines
606 B
Bash

#!/bin/sh
# Call the bro_config script to configure bro and, when complete,
# copy the newly created cfg file to %%PREFIX%%/etc.
echo "****************************************"
echo "* RUNNING THE BRO CONFIGURATION SCRIPT *"
echo "****************************************"
echo
if [ -f %%BROHOME%%/scripts/bro_config ]; then
/bin/sh %%BROHOME%%/scripts/bro_config
fi
if [ -f %%WRKSRC%%/../../bro.cfg ]; then
cp bro.cfg %%PREFIX%%/etc/bro.cfg
fi
if [ -f %%WRKSRC%%/../../bro.cfg ]; then
rm %%WRKSRC%%/../../bro.cfg*
fi
if [ -f %%WRKSRC%%/../../bro_user_id ]; then
rm %%WRKSRC%%/../../bro_user*
fi