1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

install-package: Use WRKDIR/PKGNAME.PKG_SUFX if available

With hat:	portmgr
This commit is contained in:
Bryan Drewery 2014-03-23 15:09:50 +00:00
parent 66324646c2
commit 294bff9f94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348859

View File

@ -3835,13 +3835,17 @@ delete-package-list: delete-package-links-list
@${ECHO_CMD} "[ -f ${PKGFILE} ] && (${ECHO_CMD} deleting ${PKGFILE}; ${RM} -f ${PKGFILE})"
.endif
# Only used if !defined(NO_STAGE)
# Used if !defined(NO_STAGE) during install, or manually to install package
# from local repository.
.if !target(install-package)
install-package:
.if defined(FORCE_PKG_REGISTER)
@${PKG_ADD} -f ${WRKDIR}/${PKGNAME}${PKG_SUFX}
_INSTALL_PKG_ARGS= -f
.endif
install-package:
.if exists(${WRKDIR}/${PKGNAME}${PKG_SUFX})
@${PKG_ADD} ${_INSTALL_PKG_ARGS} ${WRKDIR}/${PKGNAME}${PKG_SUFX}
.else
@${PKG_ADD} ${WRKDIR}/${PKGNAME}${PKG_SUFX}
@${PKG_ADD} ${_INSTALL_PKG_ARGS} ${PKGFILE}
.endif
.endif