From 7d62c60e0f0ad2252cb774af03494986380fc535 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 12 May 2015 21:12:38 -0400 Subject: audio/ecasound: Updated for version 2.9.1. --- audio/ecasound/README | 10 ++++++++++ audio/ecasound/ecasound.SlackBuild | 10 +++++++++- audio/ecasound/ecasound.info | 6 +++--- audio/ecasound/setcap.sh | 1 + 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 audio/ecasound/setcap.sh (limited to 'audio/ecasound') diff --git a/audio/ecasound/README b/audio/ecasound/README index eb2cbe1fb7..5cace111e1 100644 --- a/audio/ecasound/README +++ b/audio/ecasound/README @@ -7,9 +7,19 @@ can be combined in various ways, and their parameters can be controlled by operator objects like oscillators and MIDI-CCs. A versatile console mode user-interface is included in the package. +Optional compile-time dependency: + +- lilv - used for LV2 plugin support. + Optional runtime dependencies: - lame - required for mp3 output. - TiMidity++ - required for MIDI .mid file input. - libmikmod - required for tracker file support (such as .mod files). - set_rlimits - used to run ecasound with realtime priority (but see the jack-audio-connection-kit README for an alternative) + +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. diff --git a/audio/ecasound/ecasound.SlackBuild b/audio/ecasound/ecasound.SlackBuild index 793b1c95e7..e055db8b98 100644 --- a/audio/ecasound/ecasound.SlackBuild +++ b/audio/ecasound/ecasound.SlackBuild @@ -7,7 +7,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. PRGNAM=ecasound -VERSION=${VERSION:-2.9.0} +VERSION=${VERSION:-2.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -108,5 +108,13 @@ 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 + cat $CWD/setcap.sh >> $PKG/install/doinst.sh + # Only allow execution by audio group + chown root:audio $PKG/usr/bin/$PRGNAM + chmod 0750 $PKG/usr/bin/$PRGNAM +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/ecasound/ecasound.info b/audio/ecasound/ecasound.info index 3dca855f96..91845801f5 100644 --- a/audio/ecasound/ecasound.info +++ b/audio/ecasound/ecasound.info @@ -1,8 +1,8 @@ PRGNAM="ecasound" -VERSION="2.9.0" +VERSION="2.9.1" HOMEPAGE="http://eca.cx/ecasound/" -DOWNLOAD="http://ecasound.seul.org/download/ecasound-2.9.0.tar.gz" -MD5SUM="05e7d4664cdf4c7a138c098e9506a551" +DOWNLOAD="http://ecasound.seul.org/download/ecasound-2.9.1.tar.gz" +MD5SUM="13c7be1e4eddc0bbf3792dc17777e465" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jack-audio-connection-kit liblo" diff --git a/audio/ecasound/setcap.sh b/audio/ecasound/setcap.sh new file mode 100644 index 0000000000..0774508220 --- /dev/null +++ b/audio/ecasound/setcap.sh @@ -0,0 +1 @@ +[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/ecasound -- cgit v1.2.3