From 8732b26738a41671d8d2223e4d629c20c7e622cc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 12 May 2011 12:36:21 +0200 Subject: add forked-daapd server and all deps --- package/forked-daapd/files/forked-daapd.conf | 54 ++++++++++++++++++++++++ package/forked-daapd/files/forked-daapd.init | 28 ++++++++++++ package/forked-daapd/files/forked-daapd.postinst | 7 +++ 3 files changed, 89 insertions(+) create mode 100644 package/forked-daapd/files/forked-daapd.conf create mode 100644 package/forked-daapd/files/forked-daapd.init create mode 100644 package/forked-daapd/files/forked-daapd.postinst (limited to 'package/forked-daapd/files') 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 + -- cgit v1.2.3