Browse Source

add forked-daapd-0.13

Thomas Merkel 11 years ago
parent
commit
5bf2d6c2c0

+ 2 - 0
overlay/tree/media-sound/forked-daapd/Manifest

@@ -1,5 +1,7 @@
 AUX config.patch 1979 RMD160 16bbc89a5cc24707ef48d7c5f2d256c714229c6a SHA1 00446622462c2ee140ed4c105fcdaa9665566620 SHA256 7219d73fd80737c80d797f172787a85bc929ea31080a1fb943e9013ae66d1a67
 AUX forked-daapd.init.2 1275 RMD160 62adf7e4d7ff84725d2f10cbcc140f80eb4095e7 SHA1 9326a2400f8ae76131a25246e396dd00662ca474 SHA256 6861f37fea94e8b36638a4c15856f449593e389dc4bff6aa1f65db7d1beea5de
 DIST forked-daapd-0.11.tar.bz2 516025 RMD160 c08cd4d47d2c2e3776da799d066e1a0c14f41e3b SHA1 0828834a5294d054c278c6364b479d4bd8b1d693 SHA256 816d9440ef9ea413fc9c8e6196a5d8478b362ea1a03f9b8d6eed5daf05dd56ea
+DIST forked-daapd-0.13.tar.gz 599084 RMD160 b5b65f031f481a40ed3a75262076dcd98e06a45b SHA1 b22f3d5c842b5dd00bc8042fb09196ec2e894e69 SHA256 37486e46c42993714748fccf2ec05ec3717acb031d3863ed83fa1d829b2eba21
 EBUILD forked-daapd-0.11.ebuild 1987 RMD160 48b15fde3d46a44138e3ad34d831068414a34d46 SHA1 d1d1f6a7c89fd733a1d07cdd0ba65ba9a31586ba SHA256 3991f21a69aa9e36d62dd06103ff1343cbdf2b9908163b8d4aab4aa29852605a
+EBUILD forked-daapd-0.13.ebuild 2003 RMD160 287eecc88e5a6b677e65f52a5d41599f4ce89d16 SHA1 ced766fbe4aa01c13c30edb85437412a8e4b0e30 SHA256 52474499677d4ab6961f50825f8725bb68bc3dc470c97a2f551168f00a0f324b
 EBUILD forked-daapd-9999.ebuild 1942 RMD160 ab34f049111aa9a6cec81449824dcc30cd962fa7 SHA1 4e0b4179dafcd38dd627f9e23e405d6f2f6cfecb SHA256 2562896aef052389914dd1924edee63f5ca69ba5d19648add610d5acd6d80934

+ 74 - 0
overlay/tree/media-sound/forked-daapd/forked-daapd-0.13.ebuild

@@ -0,0 +1,74 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION="DAAP and RSP media server. It is a complete rewrite of mt-daapd (Firefly Media Server)."
+HOMEPAGE="http://www.technologeek.org/projects/daapd/index.html"
+SRC_URI="http://alioth.debian.org/~jblache/forked-daapd/${PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="flac itunes musepack"
+
+DEPEND="${RDEPEND}
+        dev-util/pkgconfig"
+
+RDEPEND="flac? ( media-libs/flac )
+        itunes? ( >=app-pda/libplist-0.16 )
+        musepack? ( media-libs/taglib )
+	media-libs/alsa-lib
+        dev-db/sqlite:3[unlock-notify,threadsafe]
+        >=dev-libs/avl-0.3.5
+        dev-libs/confuse
+        dev-libs/libevent
+        >=dev-java/antlr-3.1.3
+        dev-libs/libgcrypt
+        dev-libs/mini-xml
+        >=dev-libs/libunistring-0.9.3
+        media-video/ffmpeg
+        >=sys-libs/zlib-1.2.5-r2
+	>=net-dns/avahi-0.6.24"
+
+src_prepare() {
+	epatch "${FILESDIR}"/config.patch
+	eautoreconf
+}
+
+src_configure() {
+	econf $(use_enable flac) \
+		$(use_enable itunes)\
+		$(use_enable musepack)
+}
+
+src_install() {
+	emake DESTDIR="${D}" install || die "emake install failed."
+
+	newinitd "${FILESDIR}/${PN}.init.2" ${PN} || die
+	keepdir /etc/forked.daapd.d /var/cache/forked-daapd || die
+	mv "${D}/etc/forked-daapd.conf" "${D}/etc/forked.daapd.d/" || die
+
+	dodoc AUTHORS ChangeLog README NEWS || die
+}
+
+pkg_preinst() {
+	enewgroup daapd
+	enewuser daapd -1 -1 /dev/null daapd
+	fowners -R daapd:daapd /etc/forked.daapd.d
+	fowners -R daapd:daapd /var/cache/forked-daapd
+	fperms -R 0700 /etc/forked.daapd.d
+	fperms -R 0700 /var/cache/forked-daapd
+}
+pkg_postinst() {
+	einfo
+	elog "If you want to start more than one ${PN} service, symlink"
+	elog "/etc/init.d/${PN} to /etc/init.d/${PN}.<name>, and it will"
+	elog "load the data from /etc/${PN}.d/<name>.conf."
+	elog "Make sure that you have different cache directories for them."
+	einfo
+}
+