f4077c0034
'quarterly' package sets do not exist for head, so explicitly install the 'latest' configuration file there. Otherwise, fall back to the original conditional evaluation to determine if the 'latest' or 'quarterly' configuration file should be installed. Reported by: manu Reviewed by: manu MFC after: 3 days Sponsored by: Rubicon Communications, LLC (Netgate)
31 lines
669 B
Makefile
31 lines
669 B
Makefile
# $FreeBSD$
|
|
|
|
_BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH
|
|
BRANCH?= ${_BRANCH}
|
|
.if ${BRANCH:MCURRENT} != ""
|
|
PKGCONFBRANCH?= latest
|
|
.else
|
|
. if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*}
|
|
PKGCONFBRANCH?= quarterly
|
|
. else
|
|
. if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
|
|
PKGCONFBRANCH?= quarterly
|
|
. else
|
|
PKGCONFBRANCH?= latest
|
|
. endif
|
|
. endif
|
|
.endif
|
|
CONFS= FreeBSD.conf.${PKGCONFBRANCH}
|
|
CONFSNAME= FreeBSD.conf
|
|
CONFSDIR= /etc/pkg
|
|
CONFSMODE= 644
|
|
PROG= pkg
|
|
SRCS= pkg.c dns_utils.c config.c
|
|
MAN= pkg.7
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
|
LIBADD= archive fetch ucl sbuf crypto ssl
|
|
|
|
.include <bsd.prog.mk>
|