/[gentoo-x86]/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.20.1.ebuild
Gentoo

Contents of /media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.20.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Tue Aug 21 23:41:30 2007 UTC (10 years, 9 months ago) by mjolnir
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
Remove vulnerable versions
(Portage version: 2.1.2.11)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.20.1.ebuild,v 1.16 2007/04/28 13:35:14 tove Exp $
4
5 inherit eutils
6
7 DESCRIPTION="The Teamspeak Voice Communication Server"
8 HOMEPAGE="http://www.goteamspeak.com/"
9 SRC_URI="ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_${PV//./}.tar.bz2"
10
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="-* x86 amd64"
14 IUSE="mysql"
15
16 S=${WORKDIR}/tss2_rc2
17
18 RDEPEND="amd64? ( >=sys-libs/glibc-2.3.4.20041102 )"
19 DEPEND=""
20
21 pkg_setup() {
22 enewuser teamspeak2
23 }
24
25 src_install() {
26 exeinto /opt/teamspeak2-server
27 doexe server_linux sqlite.so
28 if use mysql; then
29 doexe libsqlmy.so
30 fi
31 touch "${D}"/opt/teamspeak2-server/bad_names.txt
32 fowners teamspeak2 /opt/teamspeak2-server/bad_names.txt
33
34 insinto /opt/teamspeak2-server/sql
35 doins sqlite_sql/*.sql
36 if use mysql; then
37 insinto /opt/teamspeak2-server/mysql_sql
38 doins mysql_sql/*.sql
39 fi
40 insinto /opt/teamspeak2-server/http
41 doins httpdocs/*.html
42 insinto /opt/teamspeak2-server/http/gfx
43 doins httpdocs/gfx/*.{jpg,png,gif}
44 insinto /opt/teamspeak2-server/http/help
45 doins httpdocs/help/*.html
46 insinto /opt/teamspeak2-server/tcpquerydocs
47 doins tcpquerydocs/*.txt
48
49 dodoc changelog.txt README
50 dohtml manual.html
51 dohtml -r Manual
52
53 if use mysql; then
54 dodoc INSTALL.mysql
55 fi
56
57 newinitd "${FILESDIR}"/teamspeak2-server.rc6 teamspeak2-server
58
59 keepdir /var/{lib,log,run}/teamspeak2-server
60 fowners teamspeak2 /var/{lib,log,run}/teamspeak2-server
61 fperms 700 /var/{lib,log,run}/teamspeak2-server
62
63 # Fix bug #66639
64 dosym sql /opt/teamspeak2-server/sqlite_sql
65 }
66
67 pkg_postinst() {
68 einfo
69 einfo "The Teamspeak Server generates the admin and superadmin"
70 einfo "passwords on the fly. To get them, please look in:"
71 einfo "/var/log/teamspeak2-server/server.log"
72 einfo
73 if use mysql; then
74 einfo "In order to have Teamspeak utilize a MySQL server, you will"
75 einfo "need to edit the server.ini file found in /var/lib/teamspeak2-server"
76 einfo
77 einfo "Also, please note Teamspeak is only compatible with MySQL 3.x"
78 einfo "While it is possible to use a later version of MySQL, it may"
79 einfo "require modifications such as replacing libraries."
80 einfo
81 einfo "For more information, please see INSTALL.mysql which is"
82 einfo "located in /usr/share/doc/${PF}/ or "
83 einfo "visit the Teamspeak website at http://www.teamspeak.org"
84 einfo
85 fi
86 }

  ViewVC Help
Powered by ViewVC 1.1.20