summaryrefslogtreecommitdiff
path: root/package/mt-daapd
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/mt-daapd
Initial import
Diffstat (limited to 'package/mt-daapd')
-rw-r--r--package/mt-daapd/Config.in31
-rw-r--r--package/mt-daapd/Makefile40
-rw-r--r--package/mt-daapd/files/mt-daapd.init26
-rw-r--r--package/mt-daapd/ipkg/mt-daapd.conffiles2
-rw-r--r--package/mt-daapd/ipkg/mt-daapd.control5
-rw-r--r--package/mt-daapd/ipkg/mt-daapd.postinst3
6 files changed, 107 insertions, 0 deletions
diff --git a/package/mt-daapd/Config.in b/package/mt-daapd/Config.in
new file mode 100644
index 000000000..166e490cf
--- /dev/null
+++ b/package/mt-daapd/Config.in
@@ -0,0 +1,31 @@
+config ADK_PACKAGE_MT_DAAPD
+ prompt "mt-daapd.......................... A multi-threaded DAAP (Digital Audio Access Protocol) daemon"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBGDBM
+ select ADK_PACKAGE_LIBID3TAG
+ select ADK_PACKAGE_LIBPTHREAD
+ help
+ mt-daapd is a program which acts as an iTunes (DAAP) server for Linux and
+ other POSIX unixes. It may eventually support Win32 as well.
+
+ Some random features that it supports:
+
+ * Supports the Roku SoundBridge (query/browse/index support)
+ * Supports periodic rescans of the database
+ * Can advertise shoutcast streams
+ * Supports password-protected shares
+ * Is web-configurable and managable
+ * Support dynamic playlists, like iTunes "Smart playlists"
+ * Probably other things I've forgotten
+
+ All is not perfect, however. Currently, there are several drawbacks to it:
+
+ * database is indexed by inode, so all music must be on one filesystem
+ * browse by artist is slow on Roku, times out (with large databases ~10K songs)
+ * Probably other things I've forgotten
+
+ http://www.mt-daapd.org/
+
+ Depends: libgdbm, libid3tag, libpthread
+
diff --git a/package/mt-daapd/Makefile b/package/mt-daapd/Makefile
new file mode 100644
index 000000000..a9160bb0e
--- /dev/null
+++ b/package/mt-daapd/Makefile
@@ -0,0 +1,40 @@
+# $Id$
+#-
+# 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:= mt-daapd
+PKG_VERSION:= 0.2.4
+PKG_RELEASE:= 10
+PKG_MD5SUM:= 2e1cdbe6b94ef153e915806f80a28dca
+
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,MT_DAAPD,mt-daapd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
+CONFIGURE_ARGS+= --enable-mdns \
+ --disable-howl \
+ --with-id3tag="${STAGING_DIR}/usr" \
+ --with-gdbm-includes="${STAGING_DIR}/usr/include" \
+ --with-gdbm-libs="${STAGING_DIR}/usr/lib" \
+ --without-static-libs
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_MT_DAAPD}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_MT_DAAPD}/usr/{share,sbin}
+ ${INSTALL_DATA} ${WRKBUILD}/contrib/mt-daapd.conf ${IDIR_MT_DAAPD}/etc/
+ ${INSTALL_DATA} ${WRKBUILD}/contrib/mt-daapd.playlist ${IDIR_MT_DAAPD}/etc/
+ ${INSTALL_BIN} ./files/mt-daapd.init \
+ ${IDIR_MT_DAAPD}/etc/init.d/mt-daapd
+ ${CP} ${WRKINST}/usr/share/mt-daapd ${IDIR_MT_DAAPD}/usr/share/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/mt-daapd ${IDIR_MT_DAAPD}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/mt-daapd/files/mt-daapd.init b/package/mt-daapd/files/mt-daapd.init
new file mode 100644
index 000000000..ec2a947e6
--- /dev/null
+++ b/package/mt-daapd/files/mt-daapd.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ [[ $mt_daapd = NO ]] && exit 0
+ exec sh $0 start
+ ;;
+start)
+ mt-daapd
+ ;;
+stop)
+ killall mt-daapd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/mt-daapd/ipkg/mt-daapd.conffiles b/package/mt-daapd/ipkg/mt-daapd.conffiles
new file mode 100644
index 000000000..2e5ee2b4d
--- /dev/null
+++ b/package/mt-daapd/ipkg/mt-daapd.conffiles
@@ -0,0 +1,2 @@
+/etc/mt-daapd.conf
+/etc/mt-daapd.playlist
diff --git a/package/mt-daapd/ipkg/mt-daapd.control b/package/mt-daapd/ipkg/mt-daapd.control
new file mode 100644
index 000000000..0f2846058
--- /dev/null
+++ b/package/mt-daapd/ipkg/mt-daapd.control
@@ -0,0 +1,5 @@
+Package: mt-daapd
+Priority: optional
+Section: net
+Depends: libgdbm, libid3tag, libpthread
+Description: a multi-threaded DAAP (Digital Audio Access Protocol) daemon
diff --git a/package/mt-daapd/ipkg/mt-daapd.postinst b/package/mt-daapd/ipkg/mt-daapd.postinst
new file mode 100644
index 000000000..0059afb55
--- /dev/null
+++ b/package/mt-daapd/ipkg/mt-daapd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf mt-daapd mt_daapd NO