mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
Add a minimal version testing for the installed pkg to enforce people to go to the latest version
Set minimal version to 1.3.7 for now Differential Revision: D723 Reviewed by: bdrewery
This commit is contained in:
parent
2e59289758
commit
dd340e8b53
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368448
@ -1099,6 +1099,7 @@ CO_ENV+= STAGEDIR=${STAGEDIR} \
|
||||
PLIST_SUB_SED="${PLIST_SUB_SED}" \
|
||||
PORT_OPTIONS="${PORT_OPTIONS}" \
|
||||
PORTSDIR="${PORTSDIR}"
|
||||
MINIMAL_PKG_VERSION= 1.3.7
|
||||
|
||||
# make sure bmake treats -V as expected
|
||||
.MAKE.EXPAND_VARIABLES= yes
|
||||
@ -1218,6 +1219,16 @@ WITH_NEW_XORG?= yes
|
||||
# Only define tools here (for transition period with between pkg tools)
|
||||
.include "${PORTSDIR}/Mk/bsd.commands.mk"
|
||||
|
||||
.if exists(${PKG_BIN})
|
||||
.if !defined(_PKG_VERSION)
|
||||
_PKG_VERSION!= ${PKG_BIN} -v
|
||||
.endif
|
||||
_PKG_STATUS!= ${PKG_BIN} version -t ${_PKG_VERSION:S/-/\./g} ${MINIMAL_PKG_VERSION}
|
||||
.if ${_PKG_STATUS} == "<"
|
||||
IGNORE= You need pkg(8) at least version ${MINIMAL_PKG_VERSION} and you have ${_PKG_VERSION} please consider upgrading pkg(8) first
|
||||
.endif
|
||||
.endif
|
||||
|
||||
MASTERDIR?= ${.CURDIR}
|
||||
|
||||
.if ${MASTERDIR} != ${.CURDIR}
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= pkg
|
||||
DISTVERSION= 1.3.7
|
||||
_PKG_VERSION= ${DISTVERSION}
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= \
|
||||
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
|
||||
|
Loading…
Reference in New Issue
Block a user