diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-21 17:18:54 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-07-21 17:18:54 +0000 |
commit | 300ef8ff144973014cdbeddbbda8549887c246c9 (patch) | |
tree | 0486dfbde3f1a3b1ef504bae23dd536173e5d196 /net-misc/icecast | |
parent | stable x86, bug 264649 (diff) | |
download | gentoo-2-300ef8ff144973014cdbeddbbda8549887c246c9.tar.gz gentoo-2-300ef8ff144973014cdbeddbbda8549887c246c9.tar.bz2 gentoo-2-300ef8ff144973014cdbeddbbda8549887c246c9.zip |
Touch access.log and error.log and chmod them to icecast:nogroup wrt #245727, thanks to Christopher Schwan for reporting. err, chown
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/icecast')
-rw-r--r-- | net-misc/icecast/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/icecast/icecast-2.3.2.ebuild | 36 |
2 files changed, 26 insertions, 18 deletions
diff --git a/net-misc/icecast/ChangeLog b/net-misc/icecast/ChangeLog index 70de06f167bb..25a8d7624b76 100644 --- a/net-misc/icecast/ChangeLog +++ b/net-misc/icecast/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/icecast -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/ChangeLog,v 1.84 2008/12/19 17:02:49 pva Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/ChangeLog,v 1.85 2009/07/21 17:18:54 ssuominen Exp $ + + 21 Jul 2009; Samuli Suominen <ssuominen@gentoo.org> icecast-2.3.2.ebuild: + Touch access.log and error.log and chown them to icecast:nogroup wrt + #245727, thanks to Christopher Schwan for reporting. 19 Dec 2008; Peter Volkov <pva@gentoo.org> icecast-2.3.2.ebuild: Removed || die after enewuser, bug #237290 diff --git a/net-misc/icecast/icecast-2.3.2.ebuild b/net-misc/icecast/icecast-2.3.2.ebuild index e3c0d0b60061..1e50aaff4be2 100644 --- a/net-misc/icecast/icecast-2.3.2.ebuild +++ b/net-misc/icecast/icecast-2.3.2.ebuild @@ -1,10 +1,9 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.3.2.ebuild,v 1.9 2008/12/19 17:02:49 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.3.2.ebuild,v 1.10 2009/07/21 17:18:54 ssuominen Exp $ -EAPI=1 - -inherit libtool base eutils +EAPI=2 +inherit eutils libtool DESCRIPTION="An opensource alternative to shoutcast that supports mp3, ogg (vorbis/theora) and aac streaming" HOMEPAGE="http://www.icecast.org/" @@ -30,13 +29,13 @@ pkg_setup() { enewuser icecast -1 -1 -1 nogroup } -src_unpack() { - base_src_unpack +src_prepare() { elibtoolize } -src_compile() { - econf --disable-dependency-tracking \ +src_configure() { + econf \ + --disable-dependency-tracking \ --sysconfdir=/etc/icecast2 \ $(use_with theora) \ $(use_with speex) \ @@ -48,19 +47,24 @@ src_compile() { } src_install() { - make DESTDIR="${D}" install || die "make install failed" - dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist || die + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist dohtml -A chm,hhc,hhp doc/* - doman "${S}/debian/icecast2.1" + doman debian/icecast2.1 - newinitd "${FILESDIR}/init.d.icecast" icecast + newinitd "${FILESDIR}"/init.d.icecast icecast - insinto /etc/icecast2/ - doins "${FILESDIR}/icecast.xml" + insinto /etc/icecast2 + doins "${FILESDIR}"/icecast.xml fperms 600 /etc/icecast2/icecast.xml diropts -m0764 -o icecast -g nogroup dodir /var/log/icecast keepdir /var/log/icecast - rm -rf "${D}/usr/share/doc/icecast" + rm -rf "${D}"/usr/share/doc/icecast +} + +pkg_postinst() { + touch "${ROOT}"var/log/icecast/{access,error}.log + chown icecast:nogroup "${ROOT}"var/log/icecast/{access,error}.log } |