blob: 6ee3e0433e46381401ecd1e562039d54ae282696 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/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
|