summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/linuxsampler/README11
-rw-r--r--audio/linuxsampler/gcc47.patch (renamed from multimedia/linuxsampler/gcc47.patch)0
-rw-r--r--audio/linuxsampler/linuxsampler.SlackBuild (renamed from multimedia/linuxsampler/linuxsampler.SlackBuild)44
-rw-r--r--audio/linuxsampler/linuxsampler.info10
-rw-r--r--audio/linuxsampler/slack-desc (renamed from multimedia/linuxsampler/slack-desc)0
-rw-r--r--multimedia/linuxsampler/README3
-rw-r--r--multimedia/linuxsampler/linuxsampler.info10
7 files changed, 56 insertions, 22 deletions
diff --git a/audio/linuxsampler/README b/audio/linuxsampler/README
new file mode 100644
index 0000000000..1169549054
--- /dev/null
+++ b/audio/linuxsampler/README
@@ -0,0 +1,11 @@
+The LinuxSampler project was founded with the goal to produce a free
+streaming-capable open source pure software audio sampler with professional
+grade features.
+
+Optional dependencies: jack-audio-connection-kit||jack2, lv2, dssi, ladspa_sdk
+
+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/multimedia/linuxsampler/gcc47.patch b/audio/linuxsampler/gcc47.patch
index d021a01e0c..d021a01e0c 100644
--- a/multimedia/linuxsampler/gcc47.patch
+++ b/audio/linuxsampler/gcc47.patch
diff --git a/multimedia/linuxsampler/linuxsampler.SlackBuild b/audio/linuxsampler/linuxsampler.SlackBuild
index 34992d27ab..9425f7cb16 100644
--- a/multimedia/linuxsampler/linuxsampler.SlackBuild
+++ b/audio/linuxsampler/linuxsampler.SlackBuild
@@ -1,16 +1,36 @@
#!/bin/sh
-# Slackware build script for <linuxsampler>
+# Slackware build script for linuxsampler
+
# Written by Michales Michaloudes korgie@gmail.com
+# Copyright 2019 Johannes Schoepfer, Germany
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=linuxsampler
-VERSION=${VERSION:-1.0.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1.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
@@ -21,8 +41,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"
@@ -50,9 +70,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Fix for gcc-4.7.x
-patch -p1 < $CWD/gcc47.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -83,5 +100,14 @@ 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
+ # set realtime capabilities
+ echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/linuxsampler" >> $PKG/install/doinst.sh
+ # Only allow execution by audio group
+ chown root:audio $PKG/usr/bin/*
+ chmod 0750 $PKG/usr/bin/*
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/linuxsampler/linuxsampler.info b/audio/linuxsampler/linuxsampler.info
new file mode 100644
index 0000000000..6aeadc06dc
--- /dev/null
+++ b/audio/linuxsampler/linuxsampler.info
@@ -0,0 +1,10 @@
+PRGNAM="linuxsampler"
+VERSION="2.1.1"
+HOMEPAGE="https://linuxsampler.org/"
+DOWNLOAD="https://download.linuxsampler.org/packages/linuxsampler-2.1.1.tar.bz2"
+MD5SUM="8fda14da0ccfc141d5af08daedccaae6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libgig"
+MAINTAINER="Johannes Schoepfer"
+EMAIL="slackbuilds@schoepfer.info"
diff --git a/multimedia/linuxsampler/slack-desc b/audio/linuxsampler/slack-desc
index 07ded6917b..07ded6917b 100644
--- a/multimedia/linuxsampler/slack-desc
+++ b/audio/linuxsampler/slack-desc
diff --git a/multimedia/linuxsampler/README b/multimedia/linuxsampler/README
deleted file mode 100644
index 727021f13d..0000000000
--- a/multimedia/linuxsampler/README
+++ /dev/null
@@ -1,3 +0,0 @@
-The LinuxSampler project was founded with the goal to produce a free
-streaming-capable open source pure software audio sampler with professional
-grade features.
diff --git a/multimedia/linuxsampler/linuxsampler.info b/multimedia/linuxsampler/linuxsampler.info
deleted file mode 100644
index 58c574edd2..0000000000
--- a/multimedia/linuxsampler/linuxsampler.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="linuxsampler"
-VERSION="1.0.0"
-HOMEPAGE="http://www.linuxsampler.org"
-DOWNLOAD="http://download.linuxsampler.org/packages/linuxsampler-1.0.0.tar.bz2"
-MD5SUM="a97136791a3228d840b006e5481fc39d"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="dssi libgig lv2"
-MAINTAINER="Michales Michaloudes"
-EMAIL="korgie@gmail.com"