aboutsummaryrefslogtreecommitdiff
path: root/audio/DPF-Plugins
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds@schoepfer.info>2020-01-25 08:43:08 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-25 08:43:08 +0700
commit9f4e71c86931e84b22c899b8893c54aca14c40eb (patch)
tree1f09db94aebab220ad7855be18ebfbecdd0e9d7f /audio/DPF-Plugins
parent87ecf502eaeb4bf0beea7071aa9cd8e06e1ad91f (diff)
audio/DPF-Plugins: Add setcap.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/DPF-Plugins')
-rw-r--r--audio/DPF-Plugins/DPF-Plugins.SlackBuild11
-rw-r--r--audio/DPF-Plugins/README6
2 files changed, 16 insertions, 1 deletions
diff --git a/audio/DPF-Plugins/DPF-Plugins.SlackBuild b/audio/DPF-Plugins/DPF-Plugins.SlackBuild
index 0bbfcc68c4fa..c22199d17377 100644
--- a/audio/DPF-Plugins/DPF-Plugins.SlackBuild
+++ b/audio/DPF-Plugins/DPF-Plugins.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for DPF-Plugins
-# Copyright 2019 Johannes Schoepfer, Germany
+# Copyright 2020 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -105,4 +105,13 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
+if [ "${SETCAP:-yes}" = "yes" ]; then
+ for bin in $(find . -type f -exec file '{}' + | grep " ELF .* executable, " | cut -f 1 -d : ); do
+ if [ -n "$(readelf -d $bin | grep libjack.so)" ]; then
+ echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep $bin" >> $PKG/install/doinst.sh
+ chown root:audio $PKG/$bin
+ chmod 0750 $PKG/$bin
+ fi
+ done
+fi
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/DPF-Plugins/README b/audio/DPF-Plugins/README
index 3f1131660b64..3c84fc186dc6 100644
--- a/audio/DPF-Plugins/README
+++ b/audio/DPF-Plugins/README
@@ -14,5 +14,11 @@ LV2_ONLY=yes may be set to ommit building ladspa, dssi and vst plugins.
Optional dependencies: jack,dssi,projectM
+If compiled against jack, this package uses POSIX filesystem
+capabilities to execute with elevated privileges (required for
+realtime audio processing). This may be considered a security/stability
+risk. Please read http://www.slackbuilds.org/caps/ for more information.
+To disable capabilities, pass SETCAP=no to the script.
+
This build conflicts with "distrho-mini-series" from SBo, as that build
is a subset of DPF-Plugins.