pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/mt-daapd mt-daapd is a program which acts as an ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/735c3420f5bc
branches:  trunk
changeset: 520387:735c3420f5bc
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Fri Oct 20 20:28:28 2006 +0000

description:
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:

 audio/mt-daapd/DESCR            |  16 ++++++++++++
 audio/mt-daapd/Makefile         |  53 +++++++++++++++++++++++++++++++++++++++++
 audio/mt-daapd/PLIST            |  26 ++++++++++++++++++++
 audio/mt-daapd/distinfo         |   6 ++++
 audio/mt-daapd/files/mtdaapd.sh |  18 +++++++++++++
 audio/mt-daapd/patches/patch-aa |  49 +++++++++++++++++++++++++++++++++++++
 6 files changed, 168 insertions(+), 0 deletions(-)

diffs (192 lines):

diff -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/DESCR      Fri Oct 20 20:28:28 2006 +0000
@@ -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 -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/Makefile   Fri Oct 20 20:28:28 2006 +0000
@@ -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@localhost
+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 -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/PLIST      Fri Oct 20 20:28:28 2006 +0000
@@ -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 -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/distinfo   Fri Oct 20 20:28:28 2006 +0000
@@ -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 -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/files/mtdaapd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/files/mtdaapd.sh   Fri Oct 20 20:28:28 2006 +0000
@@ -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 -r 0fbc68990fd6 -r 735c3420f5bc audio/mt-daapd/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mt-daapd/patches/patch-aa   Fri Oct 20 20:28:28 2006 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index