pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk ROOT_USER is parameterized, so use it in human-read...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/073924777fcd
branches:  trunk
changeset: 474169:073924777fcd
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Apr 26 03:07:46 2004 +0000

description:
ROOT_USER is parameterized, so use it in human-readable printed messages
as well.

diffstat:

 mk/bsd.pkg.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 520660499398 -r 073924777fcd mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Apr 26 02:44:47 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Apr 26 03:07:46 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1450 2004/04/25 22:42:51 tv Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1451 2004/04/26 03:07:46 tv Exp $
 #
 # This file is in the public domain.
 #
@@ -2708,7 +2708,7 @@
                fi;                                                     \
        else                                                            \
                ${ECHO_MSG} "Warning: not superuser, can't run mtree."; \
-               ${ECHO_MSG} "Become root and try again to ensure correct permissions."; \
+               ${ECHO_MSG} "Become ${ROOT_USER} and try again to ensure correct permissions."; \
        fi
 .else
        ${_PKG_SILENT}${_PKG_DEBUG}[ -d ${PREFIX} ] || ${MKDIR} ${PREFIX}
@@ -3342,7 +3342,7 @@
                ${MAKE} ${MAKEFLAGS} $$realtarget;                      \
        elif [ "X${BATCH}" != X"" ]; then                               \
                ${ECHO_MSG} "Warning: Batch mode, not superuser, can't run $$action for ${PKGNAME}."; \
-               ${ECHO_MSG} "Become root and try again to ensure correct permissions."; \
+               ${ECHO_MSG} "Become ${ROOT_USER} and try again to ensure correct permissions."; \
        else                                                            \
                args="";                                                \
                if [ "X${FORCE_PKG_REGISTER}" != X"" ]; then            \
@@ -3355,7 +3355,7 @@
                        ${ECHO} "*** WARNING *** Running: ${PRE_ROOT_CMD}"; \
                        ${PRE_ROOT_CMD};                                \
                fi;                                                     \
-               ${ECHO_MSG} "${_PKGSRC_IN}> Becoming root@`${HOSTNAME_CMD}` to $$action ${PKGBASE}."; \
+               ${ECHO_MSG} "${_PKGSRC_IN}> Becoming ${ROOT_USER}@`${HOSTNAME_CMD}` to $$action ${PKGBASE}."; \
                ${ECHO_N} "`${ECHO} ${SU_CMD} | ${AWK} '{ print $$1 }'` ";\
                ${SU_CMD} "cd ${.CURDIR}; ${SETENV} PATH=$${PATH}:${SU_CMD_PATH_APPEND} ${MAKE} $$args ${MAKEFLAGS} $$realtarget $$realflags"; \
        fi



Home | Main Index | Thread Index | Old Index