summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc>1999-04-06 09:39:30 +0000
committeragc <agc>1999-04-06 09:39:30 +0000
commit6b956d17014f7c864e843813bb954ce92c6fd967 (patch)
tree776d98eb28f4d5963de5b22aebb1443452be02bf
parentc264d840eb5e494fcab523a7a1d6d4c92695b89c (diff)
downloadpkgsrc-6b956d17014f7c864e843813bb954ce92c6fd967.tar.gz
Make it obvious, when invoking ${SU_CMD}, on which machine this
installation is taking place. Also echo the command which will be invoked in ${SU_CMD}, so that the Principle of Least Surprise applies.
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 84fd1277dca..bfd26cb0c72 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.245 1999/04/05 02:25:59 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.246 1999/04/06 09:39:30 agc Exp $
#
# This file is in the public domain.
#
@@ -1493,7 +1493,8 @@ pkg-su-install:
${ECHO} "*** WARNING *** Running: ${PRE_ROOT_CMD}"; \
${PRE_ROOT_CMD}; \
fi; \
- ${ECHO_MSG} "Becoming root to install ${PKGNAME}.";\
+ ${ECHO_MSG} "===> Becoming root@`/bin/hostname` to install ${PKGNAME}."; \
+ ${ECHO_MSG} -n "`${ECHO} ${SU_CMD} | ${AWK} '{ print $$1 }'` ";\
${SU_CMD} "cd ${.CURDIR}; $$make $$force ${.MAKEFLAGS} root-install"; \
fi; \
fi