--- /usr/portage/net-misc/icecast/icecast-2.2.0.ebuild 2005-09-02 01:06:26.000000000 +0100 +++ icecast-2.2.0-r1.ebuild 2006-05-28 15:37:30.000000000 +0100 @@ -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,12 +25,14 @@ 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" @@ -47,4 +50,15 @@ fperms 600 /etc/icecast2/icecast.xml rm -rf ${D}/usr/share/doc/icecast + + dodir /var/log/icecast + fperms 660 /var/log/icecast + keepdir /var/log/icecast +} + +pkg_preinst() { + enewgroup ice + enewuser ice -1 -1 -1 ice + + fowners ice:ice /var/log/icecast }