aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-02-18 04:10:46 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-08-26 17:28:38 +0000
commit55eea57aba3091ceb668aed4f25e763f10ea5748 (patch)
treed798564617a7b50793474b84796668f79e01817b /usr.sbin/pkg
parent48ac2697742ed4e0beed3f074af41b7a9e21b662 (diff)
pkg: use specific CONFSNAME_${file} for FreeBSD.conf
Setting CONFSNAME directly is a little more complicated for downstream consumers, as any additional CONFS that are added here will inherit the group name by default. This is perhaps arguably a design flaw in CONFS because inheriting NAME will never give a good result when additional files are added, but this is a low-effort change. While we're here, pull FreeBSD.conf.${branch} out into a PKGCONF variable so one can just drop a new repo config in entirely with a new naming scheme. CONFSNAME gets set based on chopping anything off after ".conf", so that, e.g.: - FooBSD.conf => FooBSD.conf - FooBSD.conf.internal => FooBSD.conf (cherry picked from commit d35164539b14a6d14fb587e58a0c7a1668d7643a)
Diffstat (limited to 'usr.sbin/pkg')
-rw-r--r--usr.sbin/pkg/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg/Makefile b/usr.sbin/pkg/Makefile
index a71f0b2acb86..dd3db00885b1 100644
--- a/usr.sbin/pkg/Makefile
+++ b/usr.sbin/pkg/Makefile
@@ -15,8 +15,9 @@ PKGCONFBRANCH?= latest
. endif
. endif
.endif
-CONFS= FreeBSD.conf.${PKGCONFBRANCH}
-CONFSNAME= FreeBSD.conf
+PKGCONF?= FreeBSD.conf.${PKGCONFBRANCH}
+CONFS= ${PKGCONF}
+CONFSNAME_${PKGCONF}= ${PKGCONF:C/\.conf.+$/.conf/}
CONFSDIR= /etc/pkg
CONFSMODE= 644
PROG= pkg