changeset 15:532757223c28

Handle a "FreeBSDPorts" repository also. This repo is for installation from ports with unchanged (default) OPTIONS.
author Franz Glasner <hg@dom66.de>
date Thu, 26 Oct 2017 23:04:22 +0200
parents c0e2eb5613fe
children 08fc189baf67
files bin/check-ports
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/check-ports	Thu Oct 26 22:45:08 2017 +0200
+++ b/bin/check-ports	Thu Oct 26 23:04:22 2017 +0200
@@ -7,6 +7,12 @@
 #
 : ${LOCAL_REPO:=LocalRepo}
 #
+# Local repository with ports with default OPTIONS (i.e. unchanged)
+# but newer than the packages in the "FreeBSD" repository.
+# Some sort of a fast-track repository.
+#
+: ${FREEBSDPORTS_REPO:=FreeBSDPorts}
+#
 # The official FreeBSD binary repository
 #
 : ${FREEBSD_REPO:=FreeBSD}
@@ -88,6 +94,7 @@
 }
 
 alldata_flag=""
+alldata_FreeBSDPorts_flag=""
 alldata_LocalRepo_flag=""
 verbose_flag=""
 
@@ -95,6 +102,7 @@
     case ${_opt} in
 	A)
 	    alldata_flag=1
+	    alldata_FreeBSDPorts_flag=1
 	    alldata_LocalRepo_flag=1
 	    ;;
 	a)
@@ -117,6 +125,7 @@
 installed_data="$(pkg query '%n %v %R' $installed_packages)"
 
 get_remote_repo_versions ${LOCAL_REPO}
+get_remote_repo_versions ${FREEBSDPORTS_REPO}
 get_remote_repo_versions ${FREEBSD_REPO}
 get_local_index_versions
 
@@ -133,14 +142,18 @@
 	exit 1
     fi
     get_remote_repo_data ${LOCAL_REPO} ${_installed_name}
+    get_remote_repo_data ${FREEBSDPORTS_REPO} ${_installed_name}
     get_remote_repo_data ${FREEBSD_REPO} ${_installed_name}
     get_repo_for_package ${_installed_name}
-    if [ \( -n "${alldata_flag}" \) -o \( ${llabel} != '?' -a ${llabel} != '=' \) -o \( ${remote_FreeBSD_label} != '?' -a ${remote_FreeBSD_label} != '=' \) -o \( ${remote_LocalRepo_label} != '?' -a ${remote_LocalRepo_label} != '=' \) ] ; then
+    if [ \( -n "${alldata_flag}" \) -o \( ${llabel} != '?' -a ${llabel} != '=' \) -o \( ${remote_FreeBSD_label} != '?' -a ${remote_FreeBSD_label} != '=' \) -o \( ${remote_FreeBSDPorts_label} != '?' -a ${remote_FreeBSDPorts_label} != '=' \) -o \( ${remote_LocalRepo_label} != '?' -a ${remote_LocalRepo_label} != '=' \) ] ; then
 	if [ -z "${_title_printed}" ] ; then
 	    echo "${lfqp}    (${repository})"
 	fi
 	echo "   INDEX: ${llabel} ${ldescr}"
 	echo "   FreeBSD: ${remote_FreeBSD_label} ${remote_FreeBSD_descr}"
+	if [ \( -n "${alldata_FreeBSDPorts_flag}" \) -o \( ${remote_FreeBSDPorts_label} != '?' \) ] ; then
+	    echo "   FreeBSDPorts: ${remote_FreeBSDPorts_label} ${remote_FreeBSDPorts_descr}"
+	fi
 	if [ \( -n "${alldata_LocalRepo_flag}" \) -o \( ${remote_LocalRepo_label} != '?' \) ] ; then
 	    echo "   LocalRepo: ${remote_LocalRepo_label} ${remote_LocalRepo_descr}"
 	fi