diff options
author | Glen Barber <gjb@FreeBSD.org> | 2019-09-19 16:43:12 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2019-09-19 16:43:12 +0000 |
commit | 5f6bb72e7fdcdd50d18d98cb8ad6bd00fc240a5f (patch) | |
tree | 6e98976fa9322abcbd59f677a064eacf620fa9c2 /usr.sbin/pkg/Makefile | |
parent | 1e8687d261192910099cf9002c5db651e79b29d7 (diff) |
Apply r346792 (cperciva) from stable/12 to head. The original commit
message:
On non-x86 systems, use "quarterly" packages.
x86 architectures have "latest" package builds on stable/*, so keep using
those (they'll get switched over to "quarterly" during releases).
The original commit was a direct commit to stable/12, as at the time it
was presumed it would not be necessary for head. However, when it is time
to create a releng branch or switch from PRERELEASE/STABLE to BETA/RC, the
pkg(7) Makefile needs further adjusting. This commit includes those
further adjustments, evaluating the BRANCH variable from release/Makefile
to determine the pkg(7) repository to use.
MFC after: immediate (if possible)
Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes:
svn path=/head/; revision=352520
Diffstat (limited to 'usr.sbin/pkg/Makefile')
-rw-r--r-- | usr.sbin/pkg/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/pkg/Makefile b/usr.sbin/pkg/Makefile index 2d5f9c9fbb82..98b6cb8afdf9 100644 --- a/usr.sbin/pkg/Makefile +++ b/usr.sbin/pkg/Makefile @@ -1,6 +1,16 @@ # $FreeBSD$ +.if ${MACHINE} != "amd64" && ${MACHINE} != "i386" +PKGCONFBRANCH?= quarterly +.else +_BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH +BRANCH?= ${_BRANCH} +. if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*} +PKGCONFBRANCH?= quarterly +. else PKGCONFBRANCH?= latest +. endif +.endif CONFS= FreeBSD.conf.${PKGCONFBRANCH} CONFSNAME= FreeBSD.conf CONFSDIR= /etc/pkg |