diff options
author | agc <agc> | 2003-10-18 12:29:26 +0000 |
---|---|---|
committer | agc <agc> | 2003-10-18 12:29:26 +0000 |
commit | 63e22f093fbebb9f364370287dc13fcbb5bb2442 (patch) | |
tree | a323e1d0ce0a32476cc949fe48521c8f04a9f208 /mk | |
parent | b478764c47c25945c15f61536fc27aa7843a58d8 (diff) | |
download | pkgsrc-63e22f093fbebb9f364370287dc13fcbb5bb2442.tar.gz |
Fix PR 17883 by adding code to perform just-in-time su(1) functionality
for the bin-install target.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 22ef473d4e2..7e3f92ab2ee 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1296 2003/10/18 05:23:48 grant Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1297 2003/10/18 12:29:26 agc Exp $ # # This file is in the public domain. # @@ -3845,8 +3845,8 @@ _BIN_INSTALL_FLAGS= ${BIN_INSTALL_FLAGS} _BIN_INSTALL_FLAGS+= ${PKG_ARGS_ADD} # Install binary pkg, without strict uptodate-check first -.PHONY: bin-install -bin-install: +.PHONY: real-su-bin-install +real-su-bin-install: @found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \ if [ "$$found" != "" ]; then \ ${ECHO_MSG} "${_PKGSRC_IN}> $$found is already installed - perhaps an older version?"; \ @@ -3878,6 +3878,15 @@ bin-install: fi ; \ fi +.PHONY: bin-install +bin-install: + @${ECHO_MSG} "${_PKGSRC_IN}> Binary install for ${PKGNAME}" + ${_PKG_SILENT}${_PKG_DEBUG} \ + realtarget="real-su-bin-install"; \ + action="binary install"; \ + ${_SU_TARGET} + + ################################################################ # The special package-building targets |