Allow a user-overridable setting 'PKG_CMD' to control the command used
authormatthew <matthew@FreeBSD.org>
Wed, 30 Nov 2016 07:16:29 +0000 (07:16 +0000)
committermatthew <matthew@FreeBSD.org>
Wed, 30 Nov 2016 07:16:29 +0000 (07:16 +0000)
commitc8e340b4749d57d89808da7b02f943078c92dfd2
tree9608eee36673e00f296ccd92ba72b332702f6976
parent06bb1b5f322152c7ef213c3472a993f60e615e96
Allow a user-overridable setting 'PKG_CMD' to control the command used
to create a repo during 'make packages'

This would have been useful for a situation I found myself in where
pkg(8) had been upgraded to a version that wanted the FBSD_1.5 ABI
version but libc.so.7 had not been upgraded, and only provided
FBSD_1.4. I found I needed to update libc in order to run pkg, and I
also needed to use pkg to update libc... Which is why pkg-static
exists, but there's currently no way to tell the build system to use
pkg-static instead of pkg.

This creates a variable PKG_CMD, default value 'pkg', that can be
overridden from the command line.

Reviewed by: gjb
Approved by: gjb
Differential Revision: https://reviews.freebsd.org/D8120
Makefile.inc1
release/scripts/make-pkg-package.sh
share/mk/bsd.own.mk