blob: 80451739b7145885ef804e8412a2474cfb2bff50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/edna/edna-0.6.ebuild,v 1.3 2009/03/07 06:49:31 mr_bones_ Exp $
inherit eutils
DESCRIPTION="Greg Stein's python streaming audio server for desktop or LAN use"
HOMEPAGE="http://edna.sourceforge.net/"
SRC_URI="mirror://sourceforge/edna/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="flac ogg"
DEPEND="|| ( >=dev-lang/python-2.5 ( >=dev-lang/python-2.3 >=dev-python/ctypes-1.0.0 ) )
flac? ( media-libs/mutagen )
ogg? ( dev-python/pyogg )"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-SystemExit.patch
epatch "${FILESDIR}/${P}"-flac.patch
epatch "${FILESDIR}/${P}"-daemon.patch
epatch "${FILESDIR}/${P}"-syslog.patch
}
src_install() {
einfo "Installing in daemon mode"
newinitd "${FILESDIR}"/edna.gentoo edna
dodir /usr/bin /usr/$(get_libdir)/edna /usr/$(get_libdir)/edna/templates
exeinto /usr/bin ; newexe edna.py edna
exeinto /usr/$(get_libdir)/edna ; doexe ezt.py
exeinto /usr/$(get_libdir)/edna ; doexe MP3Info.py
insinto /usr/$(get_libdir)/edna/templates
insopts -m 644
doins templates/*
insinto /usr/$(get_libdir)/edna/resources
doins resources/*
insinto /etc/edna
insopts -m 644
doins edna.conf
dosym /usr/$(get_libdir)/edna/resources /etc/edna/resources
dosym /usr/$(get_libdir)/edna/templates /etc/edna/templates
dodoc README ChangeLog
dohtml -r www/*
}
pkg_postinst() {
enewgroup edna
enewuser edna -1 -1 -1 edna
einfo
einfo "Edit edna.conf to taste before starting (multiple source"
einfo "directories are allowed). Test edna from a shell prompt"
einfo "until you have it configured properly, then add edna to"
einfo "the default runlevel when you're ready. Add the USE flag"
einfo "vorbis if you want edna to serve ogg files."
einfo
einfo "See edna.conf and the html docs for more info, and set"
einfo "PYTHONPATH=/usr/lib/edna to run from a shell prompt."
einfo
}
|