summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-12-28 08:55:31 +0000
committerminskim <minskim@pkgsrc.org>2004-12-28 08:55:31 +0000
commit54f55b798897625f5e08ea6d5fd410b4524d3adb (patch)
tree27d05975e26bf94a2ee6c708c583450d8376735c /sysutils
parentaf0815cad22fd2bbd07ada708b644e9e6e8e8ea7 (diff)
downloadpkgsrc-54f55b798897625f5e08ea6d5fd410b4524d3adb.tar.gz
Use ROOT_USER instead of hardcoding root.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/amanda-common/Makefile.common4
-rw-r--r--sysutils/coreutils/Makefile8
2 files changed, 9 insertions, 3 deletions
diff --git a/sysutils/amanda-common/Makefile.common b/sysutils/amanda-common/Makefile.common
index 643cfc22f97..96d6e071342 100644
--- a/sysutils/amanda-common/Makefile.common
+++ b/sysutils/amanda-common/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.14 2004/11/20 23:10:32 kim Exp $
+# $NetBSD: Makefile.common,v 1.15 2004/12/28 09:06:42 minskim Exp $
#
# common make file fragment shared by all amanda-* pkgs.
#
@@ -31,7 +31,7 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-user=${AMANDA_USER}
CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP}
-CONFIGURE_ARGS+= --with-owner=root
+CONFIGURE_ARGS+= --with-owner=${ROOT_USER}
CONFIGURE_ARGS+= --with-mmap
CONFIGURE_ARGS+= --with-amandahosts
CONFIGURE_ARGS+= --with-tmpdir=${AMANDA_TMP}
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}