From 8165a32eaef574ec1b43851f60734d3f5a3e0cf5 Mon Sep 17 00:00:00 2001 From: minskim Date: Sat, 8 Jul 2006 00:30:26 +0000 Subject: If UNPRIVILEGED=yes, replace hardcoded root and wheel with ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}, respectively. --- audio/nas/Makefile | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/audio/nas/Makefile b/audio/nas/Makefile index 8c0562a3495..49d657da3f5 100644 --- a/audio/nas/Makefile +++ b/audio/nas/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.63 2006/07/07 23:20:20 minskim Exp $ +# $NetBSD: Makefile,v 1.64 2006/07/08 00:30:26 minskim Exp $ DISTNAME= nas-1.8.src PKGNAME= ${DISTNAME:S/.src//} @@ -39,6 +39,35 @@ SUBST_SED.mungeman= -e 's|^ *\#|\#|g' .include "../../mk/bsd.prefs.mk" +.if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) +SUBST_CLASSES+= owngrp +SUBST_MESSAGE.owngrp= Fixing hardcoded owner/group. +SUBST_STAGE.owngrp= post-configure +SUBST_FILES.owngrp= clients/audio/auconvert/makefile \ + clients/audio/auctl/makefile \ + clients/audio/audemo/makefile \ + clients/audio/audial/makefile \ + clients/audio/auedit/makefile \ + clients/audio/auinfo/makefile \ + clients/audio/aupanel/makefile \ + clients/audio/auphone/makefile \ + clients/audio/auplay/makefile \ + clients/audio/aurecord/makefile \ + clients/audio/auscope/Makefile \ + clients/audio/autool/makefile \ + clients/audio/auwave/makefile \ + clients/audio/examples/makefile \ + clients/audio/util/makefile \ + clients/audio/widgets/makefile \ + clients/audio/Makefile \ + clients/Makefile config/Makefile doc/Makefile \ + doc/man/lib/Makefile doc/man/Makefile \ + include/audio/Makefile include/Makefile \ + lib/Makefile lib/audio/makefile \ + Makefile server/Makefile +SUBST_SED.owngrp= -e 's/-c -o root -g wheel/-c -o ${UNPRIVILEGED_USER} -g ${UNPRIVILEGED_GROUP}/g' +.endif + .if ${OPSYS} == "SunOS" post-install: ${LN} -s ${PREFIX}/lib/libaudio.so.2.4 ${PREFIX}/lib/libaudio.so.2 -- cgit v1.2.3