Alpha Quadrant

changeset 142:defdafbeb3e0

proudly present 1st try of forked-daapd
author Micha Glave <mig@xilab.net>
date Fri Jun 25 13:35:33 2010 +0200
parents 7166851badae
children ce2ab160f93c
files media-sound/forked-daapd/Manifest media-sound/forked-daapd/files/forked-daapd.init media-sound/forked-daapd/forked-daapd-0.11.ebuild
diffstat 3 files changed, 113 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media-sound/forked-daapd/Manifest	Fri Jun 25 13:35:33 2010 +0200
     1.3 @@ -0,0 +1,3 @@
     1.4 +AUX forked-daapd.init 1357 RMD160 a7698ca0576ada15cd58f086bf6c1811a37a475b SHA1 cf1e6faf5a96b7ce332508e532e043bbdca2a91b SHA256 3bd44811e6de2d5da2d26cec7cf595ea2060ca650ec777b7bee20f992df3dccf
     1.5 +DIST forked-daapd.git;a=snapshot;h=e3fb8f00cf4192a5e44c46c973964ea937bf4759;sf=tgz 140306 RMD160 2aebe24211cbba784d20a64939e6fd5a7b1a4d42 SHA1 3908d664cd9a8cdb7fe256e8404fbc2aaf942168 SHA256 68ad5e228befcbd737f44801d3dc924296146be025974a44bfbe3fc8bf9c4479
     1.6 +EBUILD forked-daapd-0.11.ebuild 1476 RMD160 ada42fdf3b12e66f20c35eaac145c999aae881b7 SHA1 6696d7a7c36a24c511399ad083ed20c541a127bd SHA256 cce3d147d1d23e43fa399a4b069fd1a9436e615b28e9c0f672b9514a1d1bbb87
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/media-sound/forked-daapd/files/forked-daapd.init	Fri Jun 25 13:35:33 2010 +0200
     2.3 @@ -0,0 +1,46 @@
     2.4 +#!/sbin/runscript
     2.5 +# Copyright 1999-2004 Gentoo Foundation
     2.6 +# Distributed under the terms of the GNU General Public License v2
     2.7 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mt-daapd/files/mt-daapd.init.2,v 1.4 2010/01/25 16:27:26 patrick Exp $
     2.8 +# Somehow based on init.d file shipped with mt-daapd itself.
     2.9 +#
    2.10 +# You can run multiple copies of this service just symlinking them to
    2.11 +# mt-daapd.<name>, then it will load /etc/mt-daapd.d/<name>.conf as config
    2.12 +# file.
    2.13 +# Remember to give them different logs and cache directories.
    2.14 +#
    2.15 +# The main instance (with no <name>) uses /etc/mt-daapd.conf
    2.16 +
    2.17 +# Check for OpenRC/Baselayout 2 -- see bug #230917
    2.18 +if [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]; then
    2.19 +	myservice=$RC_SVCNAME
    2.20 +fi
    2.21 +
    2.22 +CONF="${myservice##*.}"
    2.23 +if [[ -n ${CONF} && ${myservice} != "mt-daapd" ]]; then
    2.24 +	PIDFILE="/var/run/mt-daapd.${CONF}.pid"
    2.25 +	CONFFILE="/etc/mt-daapd.d/${CONF}.conf"
    2.26 +else
    2.27 +	PIDFILE="/var/run/mt-daapd.pid"
    2.28 +	CONFFILE="/etc/mt-daapd.conf"
    2.29 +fi
    2.30 +
    2.31 +depend() {
    2.32 +	need net
    2.33 +	#USEHOWL need mDNSResponderPosix
    2.34 +}
    2.35 +
    2.36 +start() {
    2.37 +	ebegin "Starting mt-daapd DAAP server"
    2.38 +	start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
    2.39 +		--exec /usr/sbin/mt-daapd -- -P ${PIDFILE} -c ${CONFFILE}
    2.40 +	eend $?
    2.41 +}
    2.42 +
    2.43 +stop() {
    2.44 +	ebegin "Stopping mt-daapd DAAP server"
    2.45 +	start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --signal 2
    2.46 +	eend $?
    2.47 +
    2.48 +	rm -f ${PIDFILE}
    2.49 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/media-sound/forked-daapd/forked-daapd-0.11.ebuild	Fri Jun 25 13:35:33 2010 +0200
     3.3 @@ -0,0 +1,64 @@
     3.4 +
     3.5 +# Distributed under the terms of the GNU General Public License v2
     3.6 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mt-daapd/mt-daapd-0.3.0_pre1376.ebuild,v 1.3 2007/02/17 01:02:34 flameeyes Exp $
     3.7 +
     3.8 +inherit eutils flag-o-matic multilib
     3.9 +
    3.10 +COMMIT="e3fb8f00cf4192a5e44c46c973964ea937bf4759"
    3.11 +
    3.12 +SRC_URI="http://git.debian.org/?p=users/jblache/forked-daapd.git;a=snapshot;h=${COMMIT};sf=tgz"
    3.13 +RESTRICT="mirror"
    3.14 +EAPI='2'
    3.15 +
    3.16 +DESCRIPTION="A multi-threaded implementation of Apple's DAAP server"
    3.17 +HOMEPAGE="http://www.jblache.org/projects/daapd/index.html"
    3.18 +S=${WORKDIR}/forked-daapd
    3.19 +
    3.20 +LICENSE="GPL-2"
    3.21 +SLOT="0"
    3.22 +KEYWORDS="~amd64 ~x86"
    3.23 +IUSE="vorbis flac ffmpeg itunes musepack"
    3.24 +
    3.25 +DEPEND="sys-libs/zlib
    3.26 +    =dev-libs/antlr-c-3*
    3.27 +	dev-libs/confuse
    3.28 +	>=dev-libs/libevent-1.4
    3.29 +	>=dev-db/sqlite-3.5 
    3.30 +	>=dev-libs/libgcrypt-1.2.0
    3.31 +	>=net-dns/avahi-0.6.24
    3.32 +	media-video/ffmpeg
    3.33 +	dev-libs/mini-xml
    3.34 +	sys-libs/libavl
    3.35 +	vorbis? ( media-libs/libvorbis )
    3.36 +	flac? ( media-libs/flac )
    3.37 +	musepack? ( media-libs/taglib )
    3.38 +	itunes? ( app-pda/libplist )"
    3.39 +
    3.40 +src_unpack() {
    3.41 +	cd ${WORKDIR}
    3.42 +	cat ${DISTDIR}/${A} | tar xz
    3.43 +}
    3.44 +
    3.45 +src_compile() {
    3.46 +	autoreconf -i
    3.47 +	append-flags -fno-strict-aliasing
    3.48 +
    3.49 +	econf \
    3.50 +		$(use_enable flac) \
    3.51 +		$(use_enable itunes) \
    3.52 +		|| die "configure failed"
    3.53 +	emake || die "make failed"
    3.54 +
    3.55 +	cp ${FILESDIR}/${PN}.init ${WORKDIR}/initd
    3.56 +}
    3.57 +
    3.58 +src_install() {
    3.59 +	make DESTDIR=${D} install || die "make install failed"
    3.60 +
    3.61 +	newinitd ${WORKDIR}/initd ${PN}
    3.62 +
    3.63 +	keepdir /var/cache/forked-daapd 
    3.64 +
    3.65 +	dodoc AUTHORS ChangeLog NEWS README
    3.66 +}
    3.67 +