blob: 3a4c0ea8b157c051bc63a8aa173baec6c4752823 (
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
58
59
60
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.0_beta17.ebuild,v 1.1 2010/02/04 19:27:45 trapni Exp $
# NOTE: The comments in this file are for instruction and documentation.
# They're not meant to appear with your final, production ebuild. Please
# remember to remove them before submitting or committing your ebuild. That
# doesn't mean you can't add your own comments though.
# The 'Header' on the third line should just be left alone. When your ebuild
# will be committed to cvs, the details on that line will be automatically
# generated to contain the correct data.
EAPI=1
inherit eutils
DESCRIPTION="TeamSpeak Server - Voice Communication Software"
HOMEPAGE="http://teamspeak.com/"
LICENSE="teamspeak3"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"
RESTRICT="strip"
SRC_URI="
amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/beta-17/teamspeak3-server_linux-amd64-${PV/_/-}.tar.gz )
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/beta-17/teamspeak3-server_linux-x86-${PV/_/-}.tar.gz )
"
DEPEND=""
RDEPEND="${DEPEND}"
pkg_setup() {
enewuser teamspeak3
}
src_install() {
local dest="${D}/opt/teamspeak3-server"
mkdir -p "${dest}"
cp -R "${WORKDIR}/teamspeak3-server_linux-"*/* "${dest}/" || die
mv "${dest}/ts3server_linux_"* "${dest}/ts3server-bin" || die
exeinto /usr/sbin || die
doexe "${FILESDIR}/ts3server" || die
# runtime FS layout ...
insinto /etc/teamspeak3-server
doins "${FILESDIR}/server.conf"
newinitd "${FILESDIR}/teamspeak3-server.rc" teamspeak3-server
keepdir /{etc,var/{lib,log,run}}/teamspeak3-server
fowners teamspeak3 /{etc,var/{lib,log,run}}/teamspeak3-server
fperms 700 /{etc,var/{lib,log,run}}/teamspeak3-server
fowners teamspeak3 /opt/teamspeak3-server
fperms 755 /opt/teamspeak3-server
}
|