--- icecast-2.2.0.ebuild 2005-09-02 01:06:26.000000000 +0100 +++ icecast-2.2.0-r1.ebuild 2005-12-10 16:20:24.000000000 +0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.2.0.ebuild,v 1.6 2005/09/01 23:56:55 flameeyes Exp $ -IUSE="yp" +IUSE="theora yp" inherit eutils @@ -17,6 +17,7 @@ DEPEND="dev-libs/libxslt media-libs/libogg media-libs/libvorbis + theora? ( >=media-libs/libtheora-1.0_alpha4-r1 ) yp? ( net-misc/curl )" src_unpack() { @@ -24,18 +25,30 @@ cd ${S} epatch ${FILESDIR}/${PV}-gentoo.patch + epatch ${FILESDIR}/icecast-xml.patch } src_compile() { econf \ --sysconfdir=/etc/icecast2 \ + --localstatedir=/var \ $(use_enable yp) \ ${myconf} || die "configure failed" emake || die "make failed" } +pkg_setup() { + if ! groupmod ice; then + groupadd ice || die "Problem adding group ice" + fi + + if ! id ice; then + useradd -g ice -d /dev/null -s /bin/false ice || die "Problem adding user ice" + fi +} + src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist @@ -47,4 +60,9 @@ fperms 600 /etc/icecast2/icecast.xml rm -rf ${D}/usr/share/doc/icecast + + dodir /var/log/icecast + fowners ice:ice /var/log/icecast + fperms 660 /var/log/icecast + keepdir /var/log/icecast }