aboutsummaryrefslogtreecommitdiff
path: root/security/portaudit/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'security/portaudit/pkg-install')
-rw-r--r--security/portaudit/pkg-install24
1 files changed, 22 insertions, 2 deletions
diff --git a/security/portaudit/pkg-install b/security/portaudit/pkg-install
index 158f0e25ee15..6ee3e0433e46 100644
--- a/security/portaudit/pkg-install
+++ b/security/portaudit/pkg-install
@@ -3,13 +3,33 @@
# $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 "===> To check your installed ports for known vulnerabilities now, do:"
echo
- echo " %%PREFIX%%/bin/portaudit -Fda"
+ echo " $PREFIX/sbin/portaudit -Fda"
echo
fi
;;