blob: dbc3f0eb4c38375eb14a02d9f798ae601337078f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/peercast/peercast-0.1212.ebuild,v 1.3 2005/07/09 19:07:03 swegener Exp $
IUSE=""
S=${WORKDIR}
DESCRIPTION="A client and server for Peercast P2P-radio network"
HOMEPAGE="http://www.peercast.org"
# as the official peercast download site does *NOT* provide
# versioned URLs we must provide a seperated download URL where
# we can download this (versioned).
SRC_URI="mirror://gentoo/${PN}-linux-${PV}.tgz"
LICENSE="freedist"
SLOT="0"
KEYWORDS="-* amd64 x86"
DEPEND=""
RDEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs )"
src_compile() {
(
echo "#! /bin/sh"
echo
if use amd64 &> /dev/null; then
echo "GCC_VERSION=\$(gcc-config -c)"
echo "export LD_LIBRARY_PATH=/lib32:/emul/linux/x86/usr/lib/gcc-lib/\${GCC_VERSION/gnu-/gnu/}"
fi
echo "cd /opt/peercast"
echo "exec ./peercast \"\$@\""
) > peercast.sh
}
src_install() {
exeinto /opt/peercast
doexe peercast
cp -R html ${D}/opt/peercast/
into /opt
newbin peercast.sh peercast
exeinto /etc/init.d
newexe ${FILESDIR}/peercast.init peercast
}
pkg_postinst() {
einfo "Start Peercast with '/etc/init.d/peercast start' and point your"
einfo "webbrowser to 'http://localhost:7144' to start using Peercast."
einfo
einfo "You can also run 'rc-update add peercast default' to make Peercast"
einfo "start at boot."
}
|