From 33025205f596fbe185b7e0f6b5a7c292f2a24fbb Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 11 Dec 2007 21:22:28 +0000 Subject: Fix the creates bad mtree file when built as non-root that will ending up the gnomehier in /usr/local/* will have the incorrect owner/group permission. PR: ports/117976 Submitted by: Stefan Sperling --- misc/gnomehier/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc/gnomehier') diff --git a/misc/gnomehier/Makefile b/misc/gnomehier/Makefile index 2b96e5b7fd54..fa09914b9fd6 100644 --- a/misc/gnomehier/Makefile +++ b/misc/gnomehier/Makefile @@ -47,7 +47,9 @@ pre-su-install: ${CHGRP} games ${WRKSRC}/share/games ${CHMOD} g=rwXs ${WRKSRC}/share/games cd ${WRKSRC} && \ - ${MTREE_CMD} -U -d -n -i -c -k "uname, gname, mode" \ + ${MTREE_CMD} -U -d -n -i -c -k "uname, gname, mode" | \ + ${SED} -e 's|uname=[A-Za-z0-9_]*|uname=root|' \ + -e 's|gname=[A-Za-z0-9_]*|gname=wheel|' \ > ${WRKDIR}/${GNOME_MTREE} do-install: -- cgit