diff options
-rwxr-xr-x | accounts | 1 | ||||
-rw-r--r-- | audio-soft/mediatomb/HISTORY | 4 | ||||
-rwxr-xr-x | audio-soft/mediatomb/INSTALL | 3 | ||||
-rwxr-xr-x | audio-soft/mediatomb/PRE_BUILD | 1 | ||||
-rw-r--r-- | audio-soft/mediatomb/init.d/mediatomb | 12 | ||||
-rw-r--r-- | audio-soft/mediatomb/init.d/mediatomb.conf | 5 | ||||
-rwxr-xr-x | groups | 1 |
7 files changed, 27 insertions, 0 deletions
@@ -14,6 +14,7 @@ tinydns:88:88 dnslog:89:88 dnscache:90:88 axfrdns:91:88 +mediatomb:95:95 bind:101:101 gnats:102:102 postgres:103:103 diff --git a/audio-soft/mediatomb/HISTORY b/audio-soft/mediatomb/HISTORY index 01bcbd7c85..80226bb282 100644 --- a/audio-soft/mediatomb/HISTORY +++ b/audio-soft/mediatomb/HISTORY @@ -1,3 +1,7 @@ +2009-09-04 Arjan Bouter <abouter@sourcemage.org> + * init.d/*: added init scripts + * INSTALL: create mediatomb homedir + 2009-03-08 Arjan Bouter <abouter@sourcemage.org> * DEPENDS, DETAILS, PRE_BUILD: spell created diff --git a/audio-soft/mediatomb/INSTALL b/audio-soft/mediatomb/INSTALL new file mode 100755 index 0000000000..8202db4f58 --- /dev/null +++ b/audio-soft/mediatomb/INSTALL @@ -0,0 +1,3 @@ +default_install && +mkdir -p /srv/mediatomb && +chown mediatomb.mediatomb /srv/mediatomb diff --git a/audio-soft/mediatomb/PRE_BUILD b/audio-soft/mediatomb/PRE_BUILD index 1ea7218d77..4a5537a9b4 100755 --- a/audio-soft/mediatomb/PRE_BUILD +++ b/audio-soft/mediatomb/PRE_BUILD @@ -1,4 +1,5 @@ default_pre_build && +create_account mediatomb && cd $SOURCE_DIRECTORY && sedit 's#FFMPEG_SEARCH_HEADERS/ffmpeg#FFMPEG_SEARCH_HEADERS#g' configure && sedit 's#ffmpeg/avformat.h#avformat.h#g' configure && diff --git a/audio-soft/mediatomb/init.d/mediatomb b/audio-soft/mediatomb/init.d/mediatomb new file mode 100644 index 0000000000..12f1b8b9ea --- /dev/null +++ b/audio-soft/mediatomb/init.d/mediatomb @@ -0,0 +1,12 @@ +#!/bin/bash + +. /etc/sysconfig/mediatomb + +PIDFILE=/var/run/mediatomb.pid +PROGRAM=/usr/bin/mediatomb +ARGS="--daemon --user $MTUSER --group $MTGROUP --ip $MTIP --home $MTHOME --logfile $MTLOG --pidfile /var/run/mediatomb.pid" +RUNLEVEL=3 +NEEDS="+network +remote_fs" + +. /etc/init.d/smgl_init + diff --git a/audio-soft/mediatomb/init.d/mediatomb.conf b/audio-soft/mediatomb/init.d/mediatomb.conf new file mode 100644 index 0000000000..2cd2046790 --- /dev/null +++ b/audio-soft/mediatomb/init.d/mediatomb.conf @@ -0,0 +1,5 @@ +MTUSER=mediatomb +MTGROUP=mediatomb +MTIP=127.0.0.1 +MTHOME=/srv/mediatomb +MTLOG=$MTHOME/mediatomb.log @@ -24,6 +24,7 @@ games:60: crontab:66: firebird:84: djbdns:88: +mediatomb:95: bind:101: gnats:102: postgres:103: |