blob: 99796a554a22d78fcf96e5446dc9c308a5c2c70f (
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
|
# Copyright 1999-2003 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.1 2003/09/27 11:27:47 jje Exp $
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"
src_install() {
enewuser teamspeak2
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() {
# rebuild init deps
/etc/init.d/depscan.sh
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
}
pkg_postrm() {
# rebuild init deps
/etc/init.d/depscan.sh
}
|