/[gentoo-x86]/net-misc/icecast/icecast-2.4.2.ebuild
Gentoo

Contents of /net-misc/icecast/icecast-2.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Apr 21 18:44:22 2015 UTC (4 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
ppc stable wrt bug #545968

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/icecast/icecast-2.4.2.ebuild,v 1.4 2015/04/17 12:46:55 ago Exp $
4
5 EAPI=5
6 inherit eutils autotools systemd user
7
8 DESCRIPTION="An opensource alternative to shoutcast that supports mp3, ogg (vorbis/theora) and aac streaming"
9 HOMEPAGE="http://www.icecast.org/"
10 SRC_URI="http://downloads.xiph.org/releases/icecast/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
15 IUSE="kate logrotate +speex +ssl +theora +yp"
16
17 #Although there is a --with-ogg and --with-orbis configure option, they're
18 #only useful for specifying paths, not for disabling.
19 DEPEND="dev-libs/libxslt
20 dev-libs/libxml2
21 media-libs/libogg
22 media-libs/libvorbis
23 kate? ( media-libs/libkate )
24 logrotate? ( app-admin/logrotate )
25 speex? ( media-libs/speex )
26 theora? ( media-libs/libtheora )
27 yp? ( net-misc/curl )
28 ssl? ( dev-libs/openssl:0= )"
29 RDEPEND="${DEPEND}"
30
31 pkg_setup() {
32 enewuser icecast -1 -1 -1 nogroup
33 }
34
35 src_prepare() {
36 # bug #368539
37 epatch "${FILESDIR}"/${PN}-2.3.3-libkate.patch
38 # bug #430434
39 epatch "${FILESDIR}"/${PN}-2.3.3-fix-xiph_openssl.patch
40 eautoreconf
41 }
42
43 src_configure() {
44 econf \
45 --disable-dependency-tracking \
46 --docdir=/usr/share/doc/${PF} \
47 --sysconfdir=/etc/icecast2 \
48 $(use_enable kate) \
49 $(use_with theora) \
50 $(use_with speex) \
51 $(use_with yp curl) \
52 $(use_with ssl openssl) \
53 $(use_enable yp)
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install
58 dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist
59 dohtml -A chm,hhc,hhp doc/*
60
61 newinitd "${FILESDIR}"/init.d.icecast-2 icecast
62 systemd_dounit "${FILESDIR}"/${PN}.service
63
64 insinto /etc/icecast2
65 doins "${FILESDIR}"/icecast.xml
66 fperms 600 /etc/icecast2/icecast.xml
67
68 if use logrotate; then
69 dodir /etc/logrotate.d
70 insopts -m0644
71 insinto /etc/logrotate.d
72 newins "${FILESDIR}"/${PN}.logrotate ${PN}
73 fi
74 diropts -m0764 -o icecast -g nogroup
75 dodir /var/log/icecast
76 keepdir /var/log/icecast
77 rm -rf "${D}"/usr/share/doc/icecast
78 }
79
80 pkg_postinst() {
81 touch "${ROOT}"var/log/icecast/{access,error}.log
82 chown icecast:nogroup "${ROOT}"var/log/icecast/{access,error}.log
83 }

  ViewVC Help
Powered by ViewVC 1.1.20