changeset 812:1e62a914c127

ports.subr, common.subr: Move the PKG definition into common.subr
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 08 Nov 2024 12:02:21 +0100
parents 32e457ff872f
children 70e08ff3db45
files share/local-bsdtools/common.subr share/local-bsdtools/ports.subr
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/share/local-bsdtools/common.subr	Fri Nov 08 11:59:47 2024 +0100
+++ b/share/local-bsdtools/common.subr	Fri Nov 08 12:02:21 2024 +0100
@@ -18,6 +18,9 @@
 #: The path to the external jq executable (JSON parser)
 : "${JQ=/usr/local/bin/jq}"
 
+#: Use the system's :command:`pkg` implementation
+: "${PKG=/usr/sbin/pkg}"
+
 
 #
 # Some important definitions from :manpage:`sysexits(3)`
--- a/share/local-bsdtools/ports.subr	Fri Nov 08 11:59:47 2024 +0100
+++ b/share/local-bsdtools/ports.subr	Fri Nov 08 12:02:21 2024 +0100
@@ -23,10 +23,6 @@
 type fatal 1>/dev/null 2>/dev/null || { echo "ERROR: source \`common.subr' first"; exit 70; }
 
 
-#: Use the system's :command:`pkg` implementation
-PKG=/usr/sbin/pkg
-
-
 #:
 #: Determine whether a package `_package` is essentially the same as
 #: another package.