Add weekly_status_pkg_enable (defaults to NO)

This commit is contained in:
Brian Somers 2000-06-27 11:20:08 +00:00
parent c66a7bdea9
commit 0ae3b944b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62155
3 changed files with 29 additions and 0 deletions

View File

@ -132,6 +132,9 @@ weekly_catman_enable="NO" # Preformat man pages
weekly_noid_enable="NO" # Find unowned files
weekly_noid_dirs="/" # Look here
# 340.status-pkg
weekly_status_pkg_enable="NO" # Find out-of-date pkgs
# 999.local
weekly_local="/etc/weekly.local" # Local scripts

View File

@ -0,0 +1,20 @@
#!/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:"
pkg_version -v | sed -n 's/^\([^ ]*\) *< */ \1 /p';;
esac

View File

@ -364,6 +364,11 @@ An orphaned file is one with an invalid owner or group.
(str) A list of directories under which orphaned files are searched for.
This would usually be set to
.Pa / .
.It Ar weekly_status_pkg_dirs
(bool) Set to
.Dq YES
if you want to report out-of-date packages installed using
.Xr pkg_version 1 .
.It Ar weekly_local
(str) Set to a list of extra scripts that should be run after all other
weekly scripts.
@ -406,6 +411,7 @@ is shared or distributed.
.Xr msgs 1 ,
.Xr netstat 1 ,
.Xr nice 1 ,
.Xr pkg_version 1 ,
.Xr rdist 1 ,
.Xr rc.conf 5 ,
.Xr ac 8 ,