summaryrefslogtreecommitdiff
path: root/package/forked-daapd/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:36:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:36:21 +0200
commit8732b26738a41671d8d2223e4d629c20c7e622cc (patch)
tree06c8c984653e39d2039f5fc262cf97ec9140ed65 /package/forked-daapd/files
parent6964a9c72877e278846d19174819b720b2815ae1 (diff)
add forked-daapd server and all deps
Diffstat (limited to 'package/forked-daapd/files')
-rw-r--r--package/forked-daapd/files/forked-daapd.conf54
-rw-r--r--package/forked-daapd/files/forked-daapd.init28
-rw-r--r--package/forked-daapd/files/forked-daapd.postinst7
3 files changed, 89 insertions, 0 deletions
diff --git a/package/forked-daapd/files/forked-daapd.conf b/package/forked-daapd/files/forked-daapd.conf
new file mode 100644
index 000000000..d684ec32a
--- /dev/null
+++ b/package/forked-daapd/files/forked-daapd.conf
@@ -0,0 +1,54 @@
+
+general {
+ # Username
+ uid = "daapd"
+ logfile = "/var/log/forked-daapd.log"
+ # Database location
+ db_path = "/srv/music/.forked-daapd/songs3.db"
+ # Available levels: fatal, log, warning, info, debug, spam
+ loglevel = log
+ # Admin password for the non-existent web interface
+ admin_password = "unused"
+ # Enable/disable IPv6
+ ipv6 = no
+}
+
+# Library configuration
+library {
+ # Name of the library as displayed by the clients
+ # %h: hostname, %v: version
+ name = "My Music on %h"
+ # TCP port to listen on. Default port is 3689 (daap)
+ port = 3689
+ # Password for the library. Optional.
+# password = ""
+
+ # Directories to index
+ directories = { "/srv/music" }
+ # Directories containing compilations
+ # Matches anywhere in the path (not a regexp, though)
+# compilations = { "/compilations/" }
+
+ # Should iTunes metadata override ours?
+# itunes_overrides = true
+
+ # Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
+ # Formats that should never be transcoded
+# no_transcode = { "alac", "mp4a" }
+ # Formats that should always be transcoded
+# force_transcode = { "ogg", "flac" }
+}
+
+# Local audio output
+audio {
+ # AirTunes name - used in the speaker list in Remote
+ nickname = "Computer"
+ # Audio device name for local audio output
+# card = "default"
+}
+
+# Airport Express device
+#apex "ApEx" {
+ # AirTunes password
+# password = "s1kr3t"
+#}
diff --git a/package/forked-daapd/files/forked-daapd.init b/package/forked-daapd/files/forked-daapd.init
new file mode 100644
index 000000000..5b4139ea6
--- /dev/null
+++ b/package/forked-daapd/files/forked-daapd.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#PKG forked-daapd
+#INIT 85
+
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${forked_daapd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/forked-daapd
+ ;;
+stop)
+ kill $(pgrep -f /usr/sbin/forked-daapd)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/forked-daapd/files/forked-daapd.postinst b/package/forked-daapd/files/forked-daapd.postinst
new file mode 100644
index 000000000..74a3b43bf
--- /dev/null
+++ b/package/forked-daapd/files/forked-daapd.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_group daapd $gid
+add_user daapd $(get_next_uid) $gid
+add_rcconf forked_daapd forked_daapd NO
+