summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorminskim <minskim>2006-07-08 00:30:26 +0000
committerminskim <minskim>2006-07-08 00:30:26 +0000
commit8165a32eaef574ec1b43851f60734d3f5a3e0cf5 (patch)
treefc0cc3bac5af12f9e8c430bee23cf8e7733dcb8e /audio
parent23d076f18c21ad4724cbda81fadb994cf05b8e80 (diff)
downloadpkgsrc-8165a32eaef574ec1b43851f60734d3f5a3e0cf5.tar.gz
If UNPRIVILEGED=yes, replace hardcoded root and wheel with
${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}, respectively.
Diffstat (limited to 'audio')
-rw-r--r--audio/nas/Makefile31
1 files changed, 30 insertions, 1 deletions
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