diff options
author | B. Watson <yalhcru@gmail.com> | 2020-04-16 01:55:11 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-19 10:52:26 +0700 |
commit | 1809d53b31e84cd6a5d3d495588bd415d5406d87 (patch) | |
tree | 6df475f0a41e64fba2596b5186d2c30100ded083 /audio/muse | |
parent | 135a3a72c7a8d6203abafc90f27365609b2ccd6c (diff) | |
download | slackbuilds-1809d53b31e84cd6a5d3d495588bd415d5406d87.tar.gz |
audio/muse: Updated for version 3.1.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/muse')
-rw-r--r-- | audio/muse/README | 6 | ||||
-rw-r--r-- | audio/muse/doinst.sh | 2 | ||||
-rw-r--r-- | audio/muse/muse.SlackBuild | 28 | ||||
-rw-r--r-- | audio/muse/muse.info | 6 | ||||
-rw-r--r-- | audio/muse/setcap.sh | 1 |
5 files changed, 30 insertions, 13 deletions
diff --git a/audio/muse/README b/audio/muse/README index 232eb66968..83befba3bd 100644 --- a/audio/muse/README +++ b/audio/muse/README @@ -7,3 +7,9 @@ License. Optional dependencies are fluidsynth, dssi and lash. To start MusE, the user has to be in the "audio" group. + +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/muse/doinst.sh b/audio/muse/doinst.sh index 6ad1d419f4..aea0f894eb 100644 --- a/audio/muse/doinst.sh +++ b/audio/muse/doinst.sh @@ -1,5 +1,3 @@ -setcap cap_ipc_lock,cap_sys_nice=ep /usr/bin/muse3 2>/dev/null - if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi diff --git a/audio/muse/muse.SlackBuild b/audio/muse/muse.SlackBuild index a8c4d3193e..2b5fb12ac7 100644 --- a/audio/muse/muse.SlackBuild +++ b/audio/muse/muse.SlackBuild @@ -4,14 +4,19 @@ # Written by Felix Pfeifer pfeifer[dot]felix[at]googlemail[dot]com +# 20200416 bkw: Modified by the SlackBuilds.org project +# - updated for v3.1 +# - don't install docs in /usr/share/doc +# - add realtime capability support + PRGNAM=muse -VERSION=${VERSION:-3.0.2} +VERSION=${VERSION:-3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +27,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -71,15 +76,22 @@ mv $PKG/usr/share/man $PKG/usr/man find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING ChangeLog NEWS README* SECURITY \ - $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION +rmdir $PKG/usr/share/doc cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# 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/muse3 + chmod 0750 $PKG/usr/bin/muse3 +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/muse/muse.info b/audio/muse/muse.info index 5694390b40..b66465f167 100644 --- a/audio/muse/muse.info +++ b/audio/muse/muse.info @@ -1,8 +1,8 @@ PRGNAM="muse" -VERSION="3.0.2" +VERSION="3.1" HOMEPAGE="http://muse-sequencer.org/" -DOWNLOAD="https://sourceforge.net/projects/lmuse/files/muse-3.0/muse-3.0.2.tar.gz" -MD5SUM="6e992f0f9d58adc3a2e2444dece37dfe" +DOWNLOAD="https://sourceforge.net/projects/lmuse/files/muse-3.1/muse-3.1.tar.gz" +MD5SUM="45557bf2f0932daedd057678b3faf913" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jack ladspa_sdk liblo qt5" diff --git a/audio/muse/setcap.sh b/audio/muse/setcap.sh new file mode 100644 index 0000000000..c0ad261d06 --- /dev/null +++ b/audio/muse/setcap.sh @@ -0,0 +1 @@ +[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/muse3 |