summaryrefslogtreecommitdiff
path: root/package/forked-daapd
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
parent6964a9c72877e278846d19174819b720b2815ae1 (diff)
add forked-daapd server and all deps
Diffstat (limited to 'package/forked-daapd')
-rw-r--r--package/forked-daapd/Makefile36
-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
-rw-r--r--package/forked-daapd/patches/patch-config_h_in10
5 files changed, 135 insertions, 0 deletions
diff --git a/package/forked-daapd/Makefile b/package/forked-daapd/Makefile
new file mode 100644
index 000000000..7b11a7523
--- /dev/null
+++ b/package/forked-daapd/Makefile
@@ -0,0 +1,36 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= forked-daapd
+PKG_VERSION:= 0.16
+PKG_RELEASE:= 1
+PKG_MD5SUM:= cc35619babefea35db9ee22e6f1d036b
+PKG_DESCR:= DAAPD server
+PKG_SECTION:= multimedia
+PKG_DEPENDS:= libunistring zlib libconfuse sqlite ffmpeg libgcrypt
+PKG_DEPENDS+= libavahi libmxml libevent libavl libantlr3c alsa-lib
+PKG_DEPENDS+= libsqlite libintl dbus
+PKG_BUILDDEP:= libunistring zlib confuse avahi sqlite ffmpeg dbus
+PKG_BUILDDEP+= mxml libevent libavl libantlr3c alsa-lib libgcrypt
+PKG_SITES:= http://alioth.debian.org/~jblache/forked-daapd/
+
+PKG_CFLINE_FORKED_DAAPD:= select ADK_KERNEL_INOTIFY_USER
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,FORKED_DAAPD,forked-daapd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+forked-daapd-install:
+ $(INSTALL_DIR) $(IDIR_FORKED_DAAPD)/etc
+ $(CP) ./files/forked-daapd.conf \
+ $(IDIR_FORKED_DAAPD)/etc
+ $(INSTALL_DIR) $(IDIR_FORKED_DAAPD)/usr/lib/forked-daapd
+ $(CP) $(WRKINST)/usr/lib/forked-daapd/*.so \
+ $(IDIR_FORKED_DAAPD)/usr/lib/forked-daapd
+ $(INSTALL_DIR) $(IDIR_FORKED_DAAPD)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/forked-daapd \
+ $(IDIR_FORKED_DAAPD)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
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
+
diff --git a/package/forked-daapd/patches/patch-config_h_in b/package/forked-daapd/patches/patch-config_h_in
new file mode 100644
index 000000000..9088c47da
--- /dev/null
+++ b/package/forked-daapd/patches/patch-config_h_in
@@ -0,0 +1,10 @@
+--- forked-daapd-0.16.orig/config.h.in 2011-04-30 11:43:23.000000000 +0200
++++ forked-daapd-0.16/config.h.in 2011-05-10 14:39:41.000000000 +0200
+@@ -1,5 +1,7 @@
+ /* config.h.in. Generated from configure.in by autoheader. */
+
++#define pipe2(a,b) pipe(a)
++
+ /* Define to 1 if you have the <dirent.h> header file. */
+ #undef HAVE_DIRENT_H
+