summaryrefslogtreecommitdiff
blob: 24aaf368f4619dce5df2213a48175be1cfa0e74d (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
# Copyright 1999-2003 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.2 2003/07/12 20:30:52 aliz Exp $

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

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

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
}