freebsd-ports/security/portaudit/pkg-install
Oliver Eikemeier 2e23771c68 - update to version 0.5
*** NOTE ***

The preferences file format has changed, as have the periodic.conf(5) names.
Normally the default settings should be adequate, except when you need to
configure a proxy. Use $PREFIX/etc/portaudit.conf.sample as an example.

- moved portaudit to sbin
- clean up, merging stuff into the portaudit script
- better return codes and errors to stderr
- -f can check stdin now
- dropped ports tree auditing
- merged the periodic(8) scripts into one
- run daily auditing as `nobody'
2004-07-01 10:59:48 +00:00

37 lines
778 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PREFIX="${PREFIX:-%%PREFIX%%}"
case $2 in
PRE-INSTALL)
if egrep -qs "^(FETCH|MASTER_SITE)_" "$PREFIX/etc/portaudit.conf" ;then
echo
echo "*** WARNING ***"
echo
echo "The preference file format has changed. Please edit"
echo " $PREFIX/etc/portaudit.conf"
echo
fi
if egrep -qs "^daily_status_portaudit_" "/etc/periodic.conf" ;then
echo
echo "*** WARNING ***"
echo
echo "The periodic(8) names have changed. Please edit"
echo " /etc/periodic.conf"
echo
fi
;;
POST-INSTALL)
if [ ! -f "%%DATABASEDIR%%/auditfile.tbz" ]; then
echo
echo "===> To check your installed ports for known vulnerabilities now, do:"
echo
echo " $PREFIX/sbin/portaudit -Fda"
echo
fi
;;
esac