summaryrefslogtreecommitdiff
blob: 5b98276976db6676bfe77b7ba4955144faa47e3b (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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/gnump3d-2.2-r1.ebuild,v 1.6 2004/03/30 18:46:34 eradicator Exp $

inherit eutils

DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files"
HOMEPAGE="http://www.gnump3d.org/"
SRC_URI="mirror://sourceforge/gnump3d/${P}.tar.gz"
RESTRICT="nomirror"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

IUSE=""

RDEPEND=">=dev-lang/perl-5.8.0"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-gentoo.diff
}

src_install() {
	make \
		LIBDIR=${D}`perl bin/getlibdir` \
		PREFIX=${D}/usr \
		install || die

	# init.d
	exeinto /etc/init.d
	newexe ${FILESDIR}/gnump3d-2.2-initd gnump3d

	# just to be sure..
	dosym usr/bin/gnump3d2 gnump3d

	# make directories
	DIROPTIONS="--owner=nobody" dodir /var/log/gnump3d
	dodir /etc/gnump3d

	# copy config files
	insinto /etc/gnump3d
	doins etc/*

	# docs
	dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
}

pkg_postinst() {
	einfo
	einfo "The default directory for shared mp3s is /home/mp3"
	einfo "Please edit your /etc/gnump3d/gnump3d.conf before"
	einfo "running /etc/init.d/gnump3d start"
	einfo
}