blob: 10ab644e2e36088fbcab63f267766644d60e9c94 (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.19.40.ebuild,v 1.5 2004/04/20 16:53:19 eradicator Exp $
inherit eutils
IUSE=""
DESCRIPTION="The Teamspeak Voice Communication Server"
HOMEPAGE="http://www.teamspeak.org/"
SRC_URI="ftp://webpost.teamspeak.org/releases/ts2_server_rc2_${PV//./}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
S=${WORKDIR}/tss2_rc2
pkg_setup() {
enewuser teamspeak2
}
src_install() {
exeinto /opt/teamspeak2-server
doexe server_linux sqlite.so
touch ${D}/opt/teamspeak2-server/bad_names.txt
fowners teamspeak2 /opt/teamspeak2-server/bad_names.txt
insinto /opt/teamspeak2-server/sql
doins sqlite_sql/*.sql
insinto /opt/teamspeak2-server/http
doins httpdocs/*.html
insinto /opt/teamspeak2-server/http/gfx
doins httpdocs/gfx/*.{png,gif}
dodoc changelog.txt readme.txt slicense.txt
exeinto /etc/init.d
newexe ${FILESDIR}/teamspeak2-server.rc6 teamspeak2-server
keepdir /var/{lib,log,run}/teamspeak2-server
fowners teamspeak2 /var/{lib,log,run}/teamspeak2-server
fperms 700 /var/{lib,log,run}/teamspeak2-server
}
pkg_postinst() {
einfo
einfo "The Teamspeak Server generates the admin and superadmin"
einfo "passwords on the fly. To get them, please look in:"
einfo "/var/log/teamspeak2-server/server.log"
einfo
}
|