Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 80990 | Differences between
and this patch

Collapse All | Expand All

(-)icecast-2.2.0.ebuild (-1 / +19 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.2.0.ebuild,v 1.6 2005/09/01 23:56:55 flameeyes Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.2.0.ebuild,v 1.6 2005/09/01 23:56:55 flameeyes Exp $
4
4
5
IUSE="yp"
5
IUSE="theora yp"
6
6
7
inherit eutils
7
inherit eutils
8
8
Lines 17-22 Link Here
17
DEPEND="dev-libs/libxslt
17
DEPEND="dev-libs/libxslt
18
	media-libs/libogg
18
	media-libs/libogg
19
	media-libs/libvorbis
19
	media-libs/libvorbis
20
	theora? ( >=media-libs/libtheora-1.0_alpha4-r1 )
20
	yp? ( net-misc/curl )"
21
	yp? ( net-misc/curl )"
21
22
22
src_unpack() {
23
src_unpack() {
Lines 24-41 Link Here
24
	cd ${S}
25
	cd ${S}
25
26
26
	epatch ${FILESDIR}/${PV}-gentoo.patch
27
	epatch ${FILESDIR}/${PV}-gentoo.patch
28
	epatch ${FILESDIR}/icecast-xml.patch
27
}
29
}
28
30
29
src_compile() {
31
src_compile() {
30
32
31
	econf \
33
	econf \
32
		--sysconfdir=/etc/icecast2 \
34
		--sysconfdir=/etc/icecast2 \
35
		--localstatedir=/var \
33
		$(use_enable yp) \
36
		$(use_enable yp) \
34
		${myconf} || die "configure failed"
37
		${myconf} || die "configure failed"
35
38
36
	emake || die "make failed"
39
	emake || die "make failed"
37
}
40
}
38
41
42
pkg_setup() {
43
        if ! groupmod ice; then
44
                groupadd ice || die "Problem adding group ice"
45
        fi
46
47
        if ! id ice; then
48
                useradd -g ice -d /dev/null -s /bin/false ice || die "Problem adding user ice"
49
        fi
50
}
51
39
src_install() {
52
src_install() {
40
	make DESTDIR="${D}" install || die "make install failed"
53
	make DESTDIR="${D}" install || die "make install failed"
41
	dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist
54
	dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist
Lines 47-50 Link Here
47
	fperms 600 /etc/icecast2/icecast.xml
60
	fperms 600 /etc/icecast2/icecast.xml
48
61
49
	rm -rf ${D}/usr/share/doc/icecast
62
	rm -rf ${D}/usr/share/doc/icecast
63
	
64
	dodir /var/log/icecast
65
	fowners ice:ice /var/log/icecast
66
	fperms 660 /var/log/icecast
67
	keepdir /var/log/icecast
50
}
68
}

Return to bug 80990