/[gentoo-x86]/media-sound/peercast/peercast-0.1218-r2.ebuild
Gentoo

Contents of /media-sound/peercast/peercast-0.1218-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 27 07:49:43 2009 UTC (5 years, 4 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -2 lines
Fix building with glibc-2.10+ wrt #275809, thanks to Alexis Ballier.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/peercast/peercast-0.1218-r2.ebuild,v 1.2 2009/06/10 19:36:54 maekke Exp $
4
5 EAPI=2
6 inherit eutils flag-o-matic toolchain-funcs
7
8 DESCRIPTION="A client and server for Peercast P2P-radio network"
9 HOMEPAGE="http://www.peercast.org"
10 SRC_URI="http://www.peercast.org/src/${P}-src.tgz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 RDEPEND=""
18 DEPEND=""
19
20 S=${WORKDIR}
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-CVE-2008-2040.patch \
24 "${FILESDIR}"/${PN}-0.1216-makefile.patch \
25 "${FILESDIR}"/${PN}-0.1216-amd64.patch \
26 "${FILESDIR}"/${P}-glibc-2.10.patch
27 }
28
29 src_compile() {
30 append-ldflags -pthread
31
32 cd ui/linux
33 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
34 AR="$(tc-getAR)" LDFLAGS="${LDFLAGS}" \
35 LD="$(tc-getCXX)" || die "emake failed"
36 }
37
38 src_install() {
39 dosbin ui/linux/peercast
40
41 insinto /usr/share/peercast
42 doins -r ui/html
43
44 newinitd "${FILESDIR}"/${PN}.initd ${PN}
45 }
46
47 pkg_postinst() {
48 elog "Start Peercast with '/etc/init.d/peercast start' and point your"
49 elog "webbrowser to 'http://localhost:7144' to start using Peercast."
50 elog
51 elog "You can also run 'rc-update add peercast default' to make Peercast"
52 elog "start at boot."
53 }

  ViewVC Help
Powered by ViewVC 1.1.20