summaryrefslogtreecommitdiff
path: root/audio/setBfree/setBfree.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/setBfree/setBfree.SlackBuild')
-rw-r--r--audio/setBfree/setBfree.SlackBuild17
1 files changed, 8 insertions, 9 deletions
diff --git a/audio/setBfree/setBfree.SlackBuild b/audio/setBfree/setBfree.SlackBuild
index 7ef2d960c9..6e2ea8c4ba 100644
--- a/audio/setBfree/setBfree.SlackBuild
+++ b/audio/setBfree/setBfree.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=setBfree
-VERSION=${VERSION:-0.8.10}
+VERSION=${VERSION:-0.8.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -103,15 +103,14 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Only add capability stuff if not disabled:
if [ "${SETCAP:-yes}" = "yes" ]; then
- # set realtime capabilities
- echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$PRGNAM" >> $PKG/install/doinst.sh
- echo "[ -x usr/bin/${PRGNAM}UI ] && \
- /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/${PRGNAM}UI" >> $PKG/install/doinst.sh
- # Only allow execution by audio group
- chown root:audio $PKG/usr/bin/*
- chmod 0750 $PKG/usr/bin/*
+ for bin in $(ls $PKG/usr/bin/); do
+ if [ $(readelf -d $PKG/usr/bin/$bin | grep libjack.so &> /dev/null) ]; then
+ echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$bin" >> $PKG/install/doinst.sh
+ chown root:audio $PKG/usr/bin/$bin
+ chmod 0750 $PKG/usr/bin/$bin
+ fi
+ done
fi
cd $PKG