diff options
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mediatomb/mediatomb.SlackBuild | 8 | ||||
-rw-r--r-- | multimedia/mediatomb/rc.mediatomb | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/multimedia/mediatomb/mediatomb.SlackBuild b/multimedia/mediatomb/mediatomb.SlackBuild index a1b7d9ca33..c72b45de0c 100644 --- a/multimedia/mediatomb/mediatomb.SlackBuild +++ b/multimedia/mediatomb/mediatomb.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mediatomb -# Copyright 2010-2013 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2010-2016 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=mediatomb VERSION=${VERSION:-b66dc1f} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -113,8 +113,8 @@ mkdir -p $PKG/etc/mediatomb install -m 644 $CWD/config.xml $PKG/etc/mediatomb/config.xml.new chown -R mediatomb:mediatomb $PKG/etc/mediatomb -mkdir -p $PKG/var/{lib,log,run}/mediatomb -chown mediatomb:mediatomb $PKG/var/{lib,log,run}/mediatomb +mkdir -p $PKG/var/{lib,log}/mediatomb +chown mediatomb:mediatomb $PKG/var/{lib,log}/mediatomb find $PKG/usr/man -type f -exec gzip -9 {} \; diff --git a/multimedia/mediatomb/rc.mediatomb b/multimedia/mediatomb/rc.mediatomb index 92804835b9..206fb70741 100644 --- a/multimedia/mediatomb/rc.mediatomb +++ b/multimedia/mediatomb/rc.mediatomb @@ -4,6 +4,7 @@ # Authors: Heinz Wiesinger <pprkut@liwjatan.at> # --------------------------------------------------------------------------- +MEDIATOMB_PIDDIR="/var/run/mediatomb/" MEDIATOMB_PIDFILE="/var/run/mediatomb/mediatomb.pid" MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log" @@ -13,6 +14,9 @@ MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log" mediatomb_start() { echo -n "Starting mediatomb ... " + if ! [ -e "${MEDIATOMB_PIDDIR}" ]; then + mkdir -p "${MEDIATOMB_PIDDIR}" + fi if [ -e "${MEDIATOMB_PIDFILE}" ]; then echo "already running!" else |