summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-10-20 20:28:28 +0000
committeradrianp <adrianp@pkgsrc.org>2006-10-20 20:28:28 +0000
commite122ded917a0ced1bb9abf31f0385c80d303454b (patch)
tree5bf1967de106fed6446f0abcd74b85478899a300 /audio
parent712cdff3250f3aa4d66fc1fbc330d53b883d79da (diff)
downloadpkgsrc-e122ded917a0ced1bb9abf31f0385c80d303454b.tar.gz
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
Diffstat (limited to 'audio')
-rw-r--r--audio/mt-daapd/DESCR16
-rw-r--r--audio/mt-daapd/Makefile53
-rw-r--r--audio/mt-daapd/PLIST26
-rw-r--r--audio/mt-daapd/distinfo6
-rw-r--r--audio/mt-daapd/files/mtdaapd.sh18
-rw-r--r--audio/mt-daapd/patches/patch-aa49
6 files changed, 168 insertions, 0 deletions
diff --git a/audio/mt-daapd/DESCR b/audio/mt-daapd/DESCR
new file mode 100644
index 00000000000..748f0bd528a
--- /dev/null
+++ b/audio/mt-daapd/DESCR
@@ -0,0 +1,16 @@
+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
diff --git a/audio/mt-daapd/Makefile b/audio/mt-daapd/Makefile
new file mode 100644
index 00000000000..145effe1914
--- /dev/null
+++ b/audio/mt-daapd/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
+
+DISTNAME= mt-daapd-0.2.4
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/}
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://www.mt-daapd.org/
+COMMENT= Server for DAAP (iTunes)
+
+USE_LANGUAGES= c
+USE_TOOLS+= gmake
+
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+RCD_SCRIPTS= mtdaapd
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+MTDAAPD_USER?= mtdaapd
+PKG_USERS= ${MTDAAPD_USER}:${ROOT_GROUP}
+BUILD_DEFS+= VARBASE MTDAAPD_USER
+
+CONF_FILES_PERMS= ${EGDIR}/mt-daapd.conf ${PKG_SYSCONFDIR}/mt-daapd.conf \
+ ${MTDAAPD_USER} ${ROOT_GROUP} 0660
+
+OWN_DIRS_PERMS= ${VARBASE}/cache/mt-daapd \
+ ${MTDAAPD_USER} ${ROOT_GROUP} 0750
+
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= post-patch
+SUBST_FILES.conf= contrib/mt-daapd.conf
+SUBST_SED.conf= -e "s,@PREFIX@,${PREFIX},"
+SUBST_SED.conf+= -e "s,@VARBASE@,${VARBASE},g"
+SUBST_SED.conf+= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},"
+SUBST_SED.conf+= -e "s,@MTDAAPD_USER@,${MTDAAPD_USER},"
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fixing hardcoded paths.
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= src/main.c
+SUBST_SED.paths= -e "s,/etc,${PKG_SYSCONFDIR},"
+SUBST_SED.paths+= -e "s,/var,${VARBASE},"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.playlist ${EGDIR}
+
+.include "../../audio/libid3tag/buildlink3.mk"
+.include "../../databases/gdbm/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/mt-daapd/PLIST b/audio/mt-daapd/PLIST
new file mode 100644
index 00000000000..dc7e724ceb5
--- /dev/null
+++ b/audio/mt-daapd/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
+sbin/mt-daapd
+share/examples/mt-daapd/mt-daapd.conf
+share/examples/mt-daapd/mt-daapd.playlist
+share/examples/rc.d/mtdaapd
+share/mt-daapd/admin-root/aspl-license.html
+share/mt-daapd/admin-root/aspl-license.txt
+share/mt-daapd/admin-root/config-update.html
+share/mt-daapd/admin-root/config.html
+share/mt-daapd/admin-root/feedback.html
+share/mt-daapd/admin-root/ftr.html
+share/mt-daapd/admin-root/gpl-license.html
+share/mt-daapd/admin-root/gpl-license.txt
+share/mt-daapd/admin-root/hdr.html
+share/mt-daapd/admin-root/index.html
+share/mt-daapd/admin-root/linkOpaque.gif
+share/mt-daapd/admin-root/linkTransparent.gif
+share/mt-daapd/admin-root/mt-daapd.css
+share/mt-daapd/admin-root/mt-daapd.png
+share/mt-daapd/admin-root/required.gif
+share/mt-daapd/admin-root/status.html
+share/mt-daapd/admin-root/thanks.html
+@dirrm share/mt-daapd/admin-root
+@dirrm share/mt-daapd
+@exec ${MKDIR} %D/share/examples/mt-daapd
+@dirrm share/examples/mt-daapd
diff --git a/audio/mt-daapd/distinfo b/audio/mt-daapd/distinfo
new file mode 100644
index 00000000000..371cd8f9ca6
--- /dev/null
+++ b/audio/mt-daapd/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
+
+SHA1 (mt-daapd-0.2.4.tar.gz) = b8c242e5fd5d2d97010d5e09b9f02ccf9def13ab
+RMD160 (mt-daapd-0.2.4.tar.gz) = babb3f98a254aa4a014b5e7adb96276fafc84fac
+Size (mt-daapd-0.2.4.tar.gz) = 405168 bytes
+SHA1 (patch-aa) = e177bb33c19badb1da8638af61a3c3bfddf2a2ad
diff --git a/audio/mt-daapd/files/mtdaapd.sh b/audio/mt-daapd/files/mtdaapd.sh
new file mode 100644
index 00000000000..4cf618b1285
--- /dev/null
+++ b/audio/mt-daapd/files/mtdaapd.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: mtdaapd.sh,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
+#
+
+# PROVIDE: mtdaapd
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="mtdaapd"
+rcvar=$name
+command="@PREFIX@/sbin/mt-daapd"
+required_files="@PKG_SYSCONFDIR@/mt-daapd.conf"
+command_args="</dev/null >/dev/null 2>&1 &"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/audio/mt-daapd/patches/patch-aa b/audio/mt-daapd/patches/patch-aa
new file mode 100644
index 00000000000..0cdd9aa6d45
--- /dev/null
+++ b/audio/mt-daapd/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
+
+--- contrib/mt-daapd.conf.orig 2004-12-29 06:20:26.000000000 +0000
++++ contrib/mt-daapd.conf
+@@ -23,7 +23,7 @@
+ # path is probably /usr/local/share/mt-daapd/admin-root.
+ #
+
+-web_root /usr/share/mt-daapd/admin-root
++web_root @PREFIX@/share/mt-daapd/admin-root
+
+ #
+ # port (required)
+@@ -51,7 +51,7 @@ admin_pw mt-daapd
+ # exists. If not, then YOU MUST CREATE THIS DIRECTORY!
+ #
+
+-db_dir /var/cache/mt-daapd
++db_dir @VARBASE@/cache/mt-daapd
+
+ #
+ # mp3_dir (required)
+@@ -83,7 +83,7 @@ servername mt-daapd
+ # as root or not.
+ #
+
+-runas nobody
++runas @MTDAAPD_USER@
+
+ #
+ # playlist (optional)
+@@ -98,7 +98,7 @@ runas nobody
+ # below.
+ #
+
+-playlist /etc/mt-daapd.playlist
++playlist @PKG_SYSCONFDIR@/mt-daapd.playlist
+
+ #
+ # password (optional)
+@@ -136,7 +136,7 @@ extensions .mp3,.m4a,.m4p
+ # will vary the amount of logging you get.
+ #
+
+-#logfile /var/log/mt-daapd.log
++#logfile @VARBASE@/log/mt-daapd.log
+
+ #
+ # art_filename (optional)