summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjan Bouter2009-09-04 03:12:52 +0200
committerArjan Bouter2009-09-04 03:12:52 +0200
commit6993b3d4a033a642845434a8982652302d0ad433 (patch)
tree7fda005bbf55e6e5fb55ac734a7fa6307e48ca46
parentfc2c747882754c91177914a146252fb186b13eb4 (diff)
mediatomb: add init script and account details
-rwxr-xr-xaccounts1
-rw-r--r--audio-soft/mediatomb/HISTORY4
-rwxr-xr-xaudio-soft/mediatomb/INSTALL3
-rwxr-xr-xaudio-soft/mediatomb/PRE_BUILD1
-rw-r--r--audio-soft/mediatomb/init.d/mediatomb12
-rw-r--r--audio-soft/mediatomb/init.d/mediatomb.conf5
-rwxr-xr-xgroups1
7 files changed, 27 insertions, 0 deletions
diff --git a/accounts b/accounts
index b9c492cb78..af5dc852b6 100755
--- a/accounts
+++ b/accounts
@@ -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
diff --git a/groups b/groups
index 9b7cfa07f7..0e53ffdfb1 100755
--- a/groups
+++ b/groups
@@ -24,6 +24,7 @@ games:60:
crontab:66:
firebird:84:
djbdns:88:
+mediatomb:95:
bind:101:
gnats:102:
postgres:103: