summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2015-09-24 09:29:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-24 09:31:31 +0700
commit22403584390bfdeee45fc3b917f20b6659ae9e29 (patch)
tree017f30ceb86d13fa0b7838e2591b0214dd6bdfac /multimedia
parentb6c8ec6ee74063d3d784bae873b7e029f708e637 (diff)
downloadslackbuilds-22403584390bfdeee45fc3b917f20b6659ae9e29.tar.gz
multimedia/plexmediaserver: Updated for version 0.9.12.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/plexmediaserver/plexmediaserver.SlackBuild61
-rw-r--r--multimedia/plexmediaserver/plexmediaserver.info14
2 files changed, 47 insertions, 28 deletions
diff --git a/multimedia/plexmediaserver/plexmediaserver.SlackBuild b/multimedia/plexmediaserver/plexmediaserver.SlackBuild
index 837372488f..f01ca04dc7 100644
--- a/multimedia/plexmediaserver/plexmediaserver.SlackBuild
+++ b/multimedia/plexmediaserver/plexmediaserver.SlackBuild
@@ -1,12 +1,32 @@
#!/bin/sh
-# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
-# Copyright 2009, 2010, 2011, 2012, 2013 Eric Hameleers, Eindhoven, Netherlands
-# Slackware build script for plexmediaserver
-# Written by Lionel Young <lionelyoung@gmail.com>
-# Based on http://slackbuilds.org/template.SlackBuild
+
+# Slackware build script for "plexmediaserver".
+
+# Copyright 2014-2015 Lionel Young <lionelyoung@gmail.com>
+# Copyright 2015 Marcel Saegebarth <marc@mos6581.de>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "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 COPYRIGHT
+# OWNER OR CONTRIBUTORS 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=plexmediaserver
-VERSION=${VERSION:-0.9.11.4.739_a4e710f}
+VERSION=${VERSION:-0.9.12.12.1459_49fe448}
PKG_VERSION=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -19,6 +39,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
if [ "$ARCH" = "i486" ]; then
DEBARCH="i386"
LIBDIRSUFFIX=""
@@ -36,11 +61,6 @@ else
exit 1
fi
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
PLEX_USER=${PLEX_USER:-279}
PLEX_GROUP=${PLEX_GROUP:-279}
@@ -48,8 +68,7 @@ set -e
# Bail if user or group isn't valid on your system
if ! getent passwd plex 1>/dev/null 2>/dev/null; then
-
-cat << EOF
+ cat << EOF
You must have a plex user to run this script
@@ -58,34 +77,35 @@ cat << EOF
EOF
- exit
+ exit 1
elif ! getent group plex 1>/dev/null 2>/dev/null; then
-
-cat << EOF
+ cat << EOF
You must have a plex group to run this script
# groupadd -g $PLEX_GROUP plex
EOF
- exit
+ exit 1
fi
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
rm -rf $PRGNAM-$PKG_VERSION
ar xv $CWD/${PRGNAM}_${PKG_VERSION}_${DEBARCH}.deb
tar xvf data.tar.gz
-# Remove debian files
rm -f debian-binary control.tar.gz data.tar.gz
rm -rf $PKG/etc/apt/ $PKG/etc/init $PKG/etc/init.d
chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/opt/$PRGNAM/bin/
mv $PKG/usr/lib/plexmediaserver $PKG/opt/$PRGNAM/lib
-# Fix binary paths
mv usr/sbin/start_pms $PKG/opt/$PRGNAM/bin/
sed -i -e "s#/usr/lib/plexmediaserver#/opt/$PRGNAM/lib#" \
$PKG/opt/$PRGNAM/bin/start_pms
@@ -117,6 +137,5 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# makepkg
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/multimedia/plexmediaserver/plexmediaserver.info b/multimedia/plexmediaserver/plexmediaserver.info
index 8a4c47221f..d7592fa847 100644
--- a/multimedia/plexmediaserver/plexmediaserver.info
+++ b/multimedia/plexmediaserver/plexmediaserver.info
@@ -1,10 +1,10 @@
PRGNAM="plexmediaserver"
-VERSION="0.9.11.4.739_a4e710f"
+VERSION="0.9.12.12.1459-49fe448"
HOMEPAGE="http://www.plexapp.com/connected/"
-DOWNLOAD="https://downloads.plex.tv/plex-media-server/0.9.11.4.739-a4e710f/plexmediaserver_0.9.11.4.739-a4e710f_i386.deb"
-MD5SUM="9bf0108155bfbdd5e882dbd11a84ea97"
-DOWNLOAD_x86_64="https://downloads.plex.tv/plex-media-server/0.9.11.4.739-a4e710f/plexmediaserver_0.9.11.4.739-a4e710f_amd64.deb"
-MD5SUM_x86_64="4e83fde95d75c33f0f368120419fd0c9"
+DOWNLOAD="https://downloads.plex.tv/plex-media-server/0.9.12.12.1459-49fe448/plexmediaserver_0.9.12.12.1459-49fe448_i386.deb"
+MD5SUM="3c8c61b75c2c666769965d8b649beea6"
+DOWNLOAD_x86_64="https://downloads.plex.tv/plex-media-server/0.9.12.12.1459-49fe448/plexmediaserver_0.9.12.12.1459-49fe448_amd64.deb"
+MD5SUM_x86_64="c7566297fa9913af0e58447f49f88465"
REQUIRES=""
-MAINTAINER="Lionel Young"
-EMAIL="lionelyoung@gmail.com"
+MAINTAINER="Marcel Saegebarth"
+EMAIL="marc@mos6581.de"