pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Fix PR 17883 by adding code to perform just-in-time...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/100816597f69
branches:  trunk
changeset: 462899:100816597f69
user:      agc <agc%pkgsrc.org@localhost>
date:      Sat Oct 18 12:29:26 2003 +0000

description:
Fix PR 17883 by adding code to perform just-in-time su(1) functionality
for the bin-install target.

diffstat:

 mk/bsd.pkg.mk |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 55959f1fd1c6 -r 100816597f69 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Oct 18 12:25:36 2003 +0000
+++ b/mk/bsd.pkg.mk     Sat Oct 18 12:29:26 2003 +0000
@@ -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+=   ${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 @@
                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



Home | Main Index | Thread Index | Old Index