2000-06-27 11:20:08 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# If there is a global system configuration file, suck it in.
|
|
|
|
#
|
|
|
|
if [ -r /etc/defaults/periodic.conf ]
|
|
|
|
then
|
|
|
|
. /etc/defaults/periodic.conf
|
|
|
|
source_periodic_confs
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$weekly_status_pkg_enable" in
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
echo ""
|
|
|
|
echo "Check for out of date packages:"
|
|
|
|
|
2002-09-25 03:01:42 +00:00
|
|
|
rc=$(${pkg_version:-pkg_version} -v |
|
2001-01-02 13:28:47 +00:00
|
|
|
sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \
|
2001-01-02 15:17:59 +00:00
|
|
|
-e '/^[^ ]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
|
2001-03-25 11:35:22 +00:00
|
|
|
-e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' \
|
2001-04-28 16:15:50 +00:00
|
|
|
-e 's/^\(bsdpan-[^ ]*\) *? *unknown in index/ \1 may be outdated - check CPAN version manually/p' \
|
2001-06-11 21:31:50 +00:00
|
|
|
-e 's/^\([^ ]*-[^ ]*\) *? *unknown in index/ \1 is obsolete/p' \
|
|
|
|
-e 's/^\([^ ]*-[^ ]*\) *? *\(orphaned:.*\)$/ \1 was \2/p' |
|
2000-09-14 17:19:15 +00:00
|
|
|
tee /dev/stderr |
|
|
|
|
wc -l)
|
|
|
|
[ $rc -gt 1 ] && rc=1;;
|
|
|
|
|
|
|
|
*) rc=0;;
|
2000-06-27 11:20:08 +00:00
|
|
|
esac
|
2000-09-14 17:19:15 +00:00
|
|
|
|
|
|
|
exit $rc
|