summaryrefslogtreecommitdiff
path: root/sysutils/coreutils/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2004-12-28 08:55:31 +0000
committerminskim <minskim>2004-12-28 08:55:31 +0000
commita56d67559b7227d8c1c39ed4386e1c91b0d17432 (patch)
tree27d05975e26bf94a2ee6c708c583450d8376735c /sysutils/coreutils/Makefile
parent0de2133782553777f0a30f6376d629def7140cab (diff)
downloadpkgsrc-a56d67559b7227d8c1c39ed4386e1c91b0d17432.tar.gz
Use ROOT_USER instead of hardcoding root.
Diffstat (limited to 'sysutils/coreutils/Makefile')
-rw-r--r--sysutils/coreutils/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index 81551ad9e80..59720961c3c 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2004/12/06 16:00:57 adam Exp $
+# $NetBSD: Makefile,v 1.23 2004/12/28 08:55:31 minskim Exp $
DISTNAME= coreutils-5.2.1
PKGREVISION= 1
@@ -23,6 +23,12 @@ INFO_FILES= coreutils.info
TEST_TARGET= check
+SUBST_CLASSES+= root
+SUBST_MESSAGE.root= "Fixing hardcoded root."
+SUBST_STAGE.root= post-patch
+SUBST_FILES.root= src/Makefile.in
+SUBST_SED.root= -e 's, root , ${ROOT_USER} ,g'
+
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS= --program-prefix=${GNU_PROGRAM_PREFIX}