summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-06-27 11:20:08 +0000
committerbrian <brian@FreeBSD.org>2000-06-27 11:20:08 +0000
commit1400b2309b617c48957b6d4b35693e9b93137c3e (patch)
treebdb3713fccd030716ddbd59c08ce580d35f9e681 /etc
parentaf6a1c52dce623861e7b2152039745467281e5f7 (diff)
downloadFreeBSD-src-1400b2309b617c48957b6d4b35693e9b93137c3e.zip
FreeBSD-src-1400b2309b617c48957b6d4b35693e9b93137c3e.tar.gz
Add weekly_status_pkg_enable (defaults to NO)
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/periodic.conf3
-rwxr-xr-xetc/periodic/weekly/400.status-pkg20
2 files changed, 23 insertions, 0 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf
index ee72787..528f780 100644
--- a/etc/defaults/periodic.conf
+++ b/etc/defaults/periodic.conf
@@ -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
diff --git a/etc/periodic/weekly/400.status-pkg b/etc/periodic/weekly/400.status-pkg
new file mode 100755
index 0000000..aac228b
--- /dev/null
+++ b/etc/periodic/weekly/400.status-pkg
@@ -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
OpenPOWER on IntegriCloud