diff options
-rw-r--r-- | etc/defaults/periodic.conf | 1 | ||||
-rwxr-xr-x | etc/periodic/weekly/400.status-pkg | 2 | ||||
-rw-r--r-- | share/man/man5/periodic.conf.5 | 14 |
3 files changed, 16 insertions, 1 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf index 7fc4728..6ae7fe6 100644 --- a/etc/defaults/periodic.conf +++ b/etc/defaults/periodic.conf @@ -201,6 +201,7 @@ weekly_noid_dirs="/" # Look here # 400.status-pkg weekly_status_pkg_enable="NO" # Find out-of-date pkgs +pkg_version=pkg_version # Use this program # 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 index aac1d6a..2fb4aa6 100755 --- a/etc/periodic/weekly/400.status-pkg +++ b/etc/periodic/weekly/400.status-pkg @@ -16,7 +16,7 @@ case "$weekly_status_pkg_enable" in echo "" echo "Check for out of date packages:" - rc=$(pkg_version -v | + rc=$(${pkg_version:-pkg_version} -v | sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \ -e '/^[^ ]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \ -e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' \ diff --git a/share/man/man5/periodic.conf.5 b/share/man/man5/periodic.conf.5 index 96b3b2a..3b3d762 100644 --- a/share/man/man5/periodic.conf.5 +++ b/share/man/man5/periodic.conf.5 @@ -636,6 +636,20 @@ Set to if you want to use .Xr pkg_version 1 to list installed packages which are out of date. +.It Va pkg_version +.Pq Vt string +When +.Va weekly_status_pkg_enable +is set to +.Dq YES , +this variable specifies the program that is used to determine the out of +date packages. +If unset, the +.Xr pkg_version 1 +program is used. +As an example, this variable might be set to +.Dq portversion +if the portupgrade port has been installed. .It Va weekly_local .Pq Vt str Set to a list of extra scripts that should be run after all other |