summaryrefslogtreecommitdiff
path: root/audio/ngjackspa/setcap.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-02-18 18:20:50 +0700
committerErik Hanson <erik@slackbuilds.org>2014-02-18 14:59:56 -0600
commit8f537fb3ee92c9703fe4afb5822edf7b384904bb (patch)
treea10460893693c245cb7af6c379a4f9b6eab2c7e3 /audio/ngjackspa/setcap.sh
parent9da5bc0dffe7973e2a406fb1dd3554e62969ce2a (diff)
downloadslackbuilds-8f537fb3ee92c9703fe4afb5822edf7b384904bb.tar.gz
audio/ngjackspa: Added (JACK host for LADSPA plugins).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/ngjackspa/setcap.sh')
-rw-r--r--audio/ngjackspa/setcap.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/ngjackspa/setcap.sh b/audio/ngjackspa/setcap.sh
new file mode 100644
index 0000000000..5c2dff80ab
--- /dev/null
+++ b/audio/ngjackspa/setcap.sh
@@ -0,0 +1,5 @@
+if [ -x /sbin/setcap ]; then
+ for setcapfile in gjackspa jackspa-cli njackspa qjackspa; do
+ [ -e usr/bin/$setcapfile ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$setcapfile
+ done
+fi