diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2016-02-21 16:57:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-23 00:57:51 +0700 |
commit | 056d6ea03cc8f0561a038b29236a5455de329521 (patch) | |
tree | 879c02270a86099baae597491fbdff82a794ccf2 /multimedia | |
parent | e9a423827765fb7c0a33573694ad902e8b4668fe (diff) |
multimedia/mediatomb: Don't include /var/run directory in package.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
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 a1b7d9ca3363c..c72b45de0caed 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 92804835b987c..206fb7074162b 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 |