diff options
author | minskim <minskim@pkgsrc.org> | 2006-07-08 00:30:26 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-07-08 00:30:26 +0000 |
commit | 007d7a258df151138f98192b21b9d0f0661fdf60 (patch) | |
tree | fc0cc3bac5af12f9e8c430bee23cf8e7733dcb8e /audio | |
parent | 6d120881c19cc8ba3574fed0158f052750fa12f0 (diff) | |
download | pkgsrc-007d7a258df151138f98192b21b9d0f0661fdf60.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/Makefile | 31 |
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 |