diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-29 21:37:17 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-29 21:37:17 +0000 |
commit | 707e70fcc88ac24bb608f1523ce75d801cbbe7ad (patch) | |
tree | 19f09af0e6aea0aa882016d1f4cc0b5e9ee1ec8a /media-sound | |
parent | Added a new revision for libao which builds fine on systems where dlopen() is... (diff) | |
download | gentoo-2-707e70fcc88ac24bb608f1523ce75d801cbbe7ad.tar.gz gentoo-2-707e70fcc88ac24bb608f1523ce75d801cbbe7ad.tar.bz2 gentoo-2-707e70fcc88ac24bb608f1523ce75d801cbbe7ad.zip |
Initial import. Ebuilds based on the contribution by Frederik Kunz <frederik.kunz@web.de>. Fixes #78100
(Portage version: 2.0.51.20-r5)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/mt-daapd/ChangeLog | 11 | ||||
-rw-r--r-- | media-sound/mt-daapd/Manifest | 5 | ||||
-rw-r--r-- | media-sound/mt-daapd/files/digest-mt-daapd-0.2.1.1 | 1 | ||||
-rw-r--r-- | media-sound/mt-daapd/files/mt-daapd.init | 23 | ||||
-rw-r--r-- | media-sound/mt-daapd/metadata.xml | 5 | ||||
-rw-r--r-- | media-sound/mt-daapd/mt-daapd-0.2.1.1.ebuild | 84 |
6 files changed, 129 insertions, 0 deletions
diff --git a/media-sound/mt-daapd/ChangeLog b/media-sound/mt-daapd/ChangeLog new file mode 100644 index 000000000000..cf80d7e715ac --- /dev/null +++ b/media-sound/mt-daapd/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-sound/mt-daapd +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mt-daapd/ChangeLog,v 1.1 2005/04/29 21:37:17 luckyduck Exp $ + +*mt-daapd-0.2.1.1 (29 Apr 2005) + + 29 Apr 2005; Jan Brinkmann <luckyduck@gentoo.org> +files/mt-daapd.init, + +metadata.xml, +mt-daapd-0.2.1.1.ebuild: + Initial import. Ebuilds based on the contribution by Frederik Kunz + <frederik.kunz@web.de>. Fixes #78100 + diff --git a/media-sound/mt-daapd/Manifest b/media-sound/mt-daapd/Manifest new file mode 100644 index 000000000000..00f93df82ab9 --- /dev/null +++ b/media-sound/mt-daapd/Manifest @@ -0,0 +1,5 @@ +MD5 86153400b887ad048a220b5380ca5db5 mt-daapd-0.2.1.1.ebuild 1849 +MD5 92f80581f3f7c49a72048243a8400d2d ChangeLog 380 +MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158 +MD5 804311ec22b1fba76a61411d0c752a15 files/digest-mt-daapd-0.2.1.1 68 +MD5 d14aca83cf21b8c519b42962ba276e42 files/mt-daapd.init 540 diff --git a/media-sound/mt-daapd/files/digest-mt-daapd-0.2.1.1 b/media-sound/mt-daapd/files/digest-mt-daapd-0.2.1.1 new file mode 100644 index 000000000000..b641f8a0410c --- /dev/null +++ b/media-sound/mt-daapd/files/digest-mt-daapd-0.2.1.1 @@ -0,0 +1 @@ +MD5 87356d2750ad82388a58d901aa566465 mt-daapd-0.2.1.1.tar.gz 386055 diff --git a/media-sound/mt-daapd/files/mt-daapd.init b/media-sound/mt-daapd/files/mt-daapd.init new file mode 100644 index 000000000000..5b2e125907ba --- /dev/null +++ b/media-sound/mt-daapd/files/mt-daapd.init @@ -0,0 +1,23 @@ +#!/sbin/runscript + +depend() { + need net + provide daap +} + +start() { + ebegin "Starting mt-daapd DAAP server" + + start-stop-daemon --start --quiet --pidfile /var/run/mt-daapd.pid \ + --startas /usr/sbin/mt-daapd + eend $? "Failed to start mt-daapd" +} + +stop() { + ebegin "Stopping mt-daapd DAAP server" + start-stop-daemon --stop --quiet --pidfile /var/run/mt-daapd.pid + eend $? "Failed to stop mt-daapd" + + # clean stale pidfile + [ -f /var/run/mt-daapd.pid ] && rm -f /var/run/mt-daapd.pid +} diff --git a/media-sound/mt-daapd/metadata.xml b/media-sound/mt-daapd/metadata.xml new file mode 100644 index 000000000000..e1774e3d9ad7 --- /dev/null +++ b/media-sound/mt-daapd/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sound</herd> +</pkgmetadata> diff --git a/media-sound/mt-daapd/mt-daapd-0.2.1.1.ebuild b/media-sound/mt-daapd/mt-daapd-0.2.1.1.ebuild new file mode 100644 index 000000000000..ebb63b3aa823 --- /dev/null +++ b/media-sound/mt-daapd/mt-daapd-0.2.1.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mt-daapd/mt-daapd-0.2.1.1.ebuild,v 1.1 2005/04/29 21:37:17 luckyduck Exp $ + +inherit flag-o-matic eutils + +MY_P="${P/_/-}" + +DESCRIPTION="A multi-threaded implementation of Apple's DAAP server" +HOMEPAGE="http://mt-daapd.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug howl vorbis" + +DEPEND="sys-libs/zlib + media-libs/libid3tag + sys-libs/gdbm + howl? ( >=net-misc/howl-0.9.2 ) + debug? ( dev-util/efence ) + vorbis? ( media-libs/libvorbis )" + +src_compile() { + local myconf="" + + # debugging support? + if use debug; then + myconf="${myconf} --enable-debug --enable-debug-memory --enable-efence" + fi + + # howl support? + if use howl; then + myconf="--enable-howl --with-howl-libs=/usr/lib --disable-mdns" + myconf="${myconf} --with-howl-includes=/usr/include/howl/" + else + myconf="--disable-howl" + fi + + # vorbis support? + use vorbis && myconf="${myconf} --enable-oggvorbis" + + econf ${myconf} || die "configure failed" + emake || die "make failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + + dodoc README* NEWS TODO + + insinto /etc/ + doins contrib/mt-daapd.conf + doins contrib/mt-daapd.playlist + + dodir /usr/share/mt-daapd + dodir /usr/share/mt-daapd/admin-root + + diropts -m0777 + dodir /var/cache/mt-daapd + + insinto /usr/share/mt-daapd/admin-root + doins admin-root/* + + newinitd ${FILESDIR}/mt-daapd.init mt-daapd +} + +pkg_postinst() { + if use howl; then + einfo + einfo "Since you want to use howl instead of the internal mdnsd" + einfo "you need to make sure that you have mDNSResponder configured" + einfo "and running to use mt-daapd." + einfo + fi + + if use vorbis; then + einfo + einfo "You need to edit you extensions list in /etc/mt-daapd.conf" + einfo "if you want your mt-daapd to serve ogg files." + einfo + fi +} |