freebsd-ports/security/snortsam/files/pkg-install.in
Martin Wilke b09f7cb232 - Update to 2.69
Changelog:
	http://snortsam.net/news.html

PR:		140881
Submitted by:	olli hauer <ohauer@gmx.de>
Approved by:	maintainer timeout
2009-12-31 20:18:29 +00:00

17 lines
402 B
Bash

#!/bin/sh
#
# $FreeBSD$
ETCDIR=${ETCDIR:=%%ETCDIR%%}
# snortsam config file contain sensitive data like
# passwords needed to block IP's on the firewalls.
# Set permission of the config dir to 700 so only
# root:wheel can access this directory.
if [ "$2" = "POST-INSTALL" ]; then
if [ -d ${ETCDIR} ]; then
/usr/sbin/chown root:wheel ${ETCDIR}
/bin/chmod 700 ${ETCDIR}
fi
fi