]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pkg: use specific CONFSNAME_${file} for FreeBSD.conf
authorKyle Evans <kevans@FreeBSD.org>
Thu, 18 Feb 2021 04:10:46 +0000 (22:10 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 27 Aug 2021 01:10:58 +0000 (20:10 -0500)
commit96a692ed6ff41d4f20ce40f6e250b03c606fb986
treeb14d5d16db98eb7f4ac3e61076fa84d5e10ee169
parent6cd271fbc243b9b2c6e657cd7772e3bafa210be0
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)
usr.sbin/pkg/Makefile