diff options
author | Johannes Schoepfer <slackbuilds@schoepfer.info> | 2020-01-25 08:43:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-25 08:43:08 +0700 |
commit | 9f4e71c86931e84b22c899b8893c54aca14c40eb (patch) | |
tree | 1f09db94aebab220ad7855be18ebfbecdd0e9d7f /audio/DPF-Plugins/DPF-Plugins.SlackBuild | |
parent | 87ecf502eaeb4bf0beea7071aa9cd8e06e1ad91f (diff) |
audio/DPF-Plugins: Add setcap.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/DPF-Plugins/DPF-Plugins.SlackBuild')
-rw-r--r-- | audio/DPF-Plugins/DPF-Plugins.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/DPF-Plugins/DPF-Plugins.SlackBuild b/audio/DPF-Plugins/DPF-Plugins.SlackBuild index 0bbfcc68c4fa5..c22199d173770 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} |