mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Mk/bsd.port.mk: fix NO_PKG_REGISTER
Since we switched to pkg, NO_PKG_REGISTER was not working anymore. Since pkg 1.17.2 the pkg register command do support -N option which allows to bring back NO_PKG_REGISTER. PR: 191461
This commit is contained in:
parent
5094187e53
commit
aedc18359a
@ -4747,19 +4747,24 @@ flavors-package-names: .PHONY
|
||||
# Fake installation of package so that user can pkg delete it later.
|
||||
.if !target(fake-pkg)
|
||||
STAGE_ARGS= -i ${STAGEDIR}
|
||||
.if defined(NO_PKG_REGISTER)
|
||||
STAGE_ARGS= -N
|
||||
.endif
|
||||
|
||||
.if !defined(NO_PKG_REGISTER)
|
||||
fake-pkg:
|
||||
.if defined(INSTALLS_DEPENDS)
|
||||
.if !defined(NO_PKG_REGISTER)
|
||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME} as automatic"
|
||||
.endif
|
||||
@${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_REGISTER} -d ${STAGE_ARGS} -m ${METADIR} -f ${TMPPLIST}
|
||||
.else
|
||||
.if !defined(NO_PKG_REGISTER)
|
||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME}"
|
||||
.endif
|
||||
@${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_REGISTER} ${STAGE_ARGS} -m ${METADIR} -f ${TMPPLIST}
|
||||
.endif
|
||||
@${RM} -r ${METADIR}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Depend is generally meaningless for arbitrary ports, but if someone wants
|
||||
# one they can override this. This is just to catch people who've gotten into
|
||||
|
Loading…
Reference in New Issue
Block a user