pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Delay running of id until it is needed. Fixes PR 30...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/569f1e44c744
branches:  trunk
changeset: 495425:569f1e44c744
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jun 09 10:09:58 2005 +0000

description:
Delay running of id until it is needed. Fixes PR 30477 by Neil Hoggarth.

diffstat:

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

diffs (23 lines):

diff -r c3936dbd9ebe -r 569f1e44c744 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Jun 09 08:14:08 2005 +0000
+++ b/mk/bsd.pkg.mk     Thu Jun 09 10:09:58 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1688 2005/06/08 22:44:08 wiz Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1689 2005/06/09 10:09:58 wiz Exp $
 #
 # This file is in the public domain.
 #
@@ -4857,11 +4857,9 @@
 .endif
 _PKGPATH=      ${.CURDIR:S/${_PKGSRCDIR}\///}
 # override in /etc/mk.conf with your NetBSD login if different
-.if !defined(NETBSD_LOGIN_NAME)
-NETBSD_LOGIN_NAME!=    id -nu
-.endif
+NETBSD_LOGIN_NAME?=    `id -nu`
 CDATE!=                date -u +%Y-%m-%d
 .PHONY: changes-entry
 changes-entry:
-       @${ECHO} "      "${CTYPE:Q}" "${_PKGPATH:Q}${_CTYPE2}" ["${NETBSD_LOGIN_NAME:Q}" "${CDATE:Q}"]"\
+       @${ECHO} "      "${CTYPE:Q}" "${_PKGPATH:Q}${_CTYPE2}" [${NETBSD_LOGIN_NAME} "${CDATE:Q}"]"\
                >> ${_PKGSRCDIR}/doc/CHANGES



Home | Main Index | Thread Index | Old Index