From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/mt-daapd/Config.in | 31 +++++++++++++++++++++++++ package/mt-daapd/Makefile | 40 ++++++++++++++++++++++++++++++++ package/mt-daapd/files/mt-daapd.init | 26 +++++++++++++++++++++ package/mt-daapd/ipkg/mt-daapd.conffiles | 2 ++ package/mt-daapd/ipkg/mt-daapd.control | 5 ++++ package/mt-daapd/ipkg/mt-daapd.postinst | 3 +++ 6 files changed, 107 insertions(+) create mode 100644 package/mt-daapd/Config.in create mode 100644 package/mt-daapd/Makefile create mode 100644 package/mt-daapd/files/mt-daapd.init create mode 100644 package/mt-daapd/ipkg/mt-daapd.conffiles create mode 100644 package/mt-daapd/ipkg/mt-daapd.control create mode 100644 package/mt-daapd/ipkg/mt-daapd.postinst (limited to 'package/mt-daapd') 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 -- cgit v1.2.3