diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2014-10-13 06:17:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-13 06:17:23 +0700 |
commit | 46a410d0f6d63b6e29d27965c5cf7248f7b068a4 (patch) | |
tree | 250eb87ee7d7226359c5d3836c13bf0b51d76cc5 /audio/darkice/darkice.SlackBuild | |
parent | cd586e983ec05e5770519ccc640d26adb9bb2c72 (diff) |
audio/darkice: Added optional realtime capabilities.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/darkice/darkice.SlackBuild')
-rw-r--r-- | audio/darkice/darkice.SlackBuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/audio/darkice/darkice.SlackBuild b/audio/darkice/darkice.SlackBuild index 93c8dde45c30c..bdea42e86f3ab 100644 --- a/audio/darkice/darkice.SlackBuild +++ b/audio/darkice/darkice.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=darkice VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -96,5 +96,13 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +# Only add capability stuff if not disabled: +if [ "${SETCAP:-no}" = "yes" ]; then + cat $CWD/setcap.sh >> $PKG/install/doinst.sh + # Only allow execution by audio group + chown root:audio $PKG/usr/bin/darkice + chmod 0750 $PKG/usr/bin/darkice +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |