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

Contents of /media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.24.01-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Jan 7 11:51:44 2010 UTC (8 years, 4 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove vulnerable, and masked teamspeak2 from tree. It's been replaced by teamspeak3 by now.

1 # Copyright 1999-2009 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.24.01-r1.ebuild,v 1.3 2009/07/21 12:49:51 ssuominen Exp $
4
5 inherit eutils
6
7 # mjolnir - This is a necessary hack while we're waiting for an official
8 # 2.0.23.22 release. We take the 2.0.23.19 release and overlay the 2.0.23.22
9 # binary on it. When the real release comes out, we'll do an -r1 that uses
10 # the official release.
11 BASE_PV="2.0.23.19"
12
13 DESCRIPTION="The Teamspeak Voice Communication Server"
14 HOMEPAGE="http://www.goteamspeak.com/"
15 SRC_URI="ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_${BASE_PV//./}.tar.bz2
16 mirror://gentoo/server_linux-${PV//./}.tar.bz2"
17
18 LICENSE="as-is"
19 SLOT="0"
20 KEYWORDS="-* ~amd64 ~x86"
21 IUSE="mysql"
22
23 RESTRICT="strip test"
24
25 S=${WORKDIR}/tss2_rc2
26
27 RDEPEND=""
28 DEPEND=""
29
30 pkg_setup() {
31 enewuser teamspeak2
32 }
33
34 src_unpack() {
35 unpack ts2_server_rc2_202319.tar.bz2
36 unpack server_linux-202401.tar.bz2
37 }
38
39 src_install() {
40 exeinto /opt/teamspeak2-server
41 doexe server_linux sqlite.so
42 if use mysql; then
43 doexe libsqlmy.so
44 fi
45
46 touch "${D}"/opt/teamspeak2-server/bad_names.txt
47 fowners teamspeak2 /opt/teamspeak2-server/bad_names.txt
48
49 insinto /opt/teamspeak2-server/sql
50 doins sqlite_sql/*.sql
51 if use mysql; then
52 insinto /opt/teamspeak2-server/mysql_sql
53 doins mysql_sql/*.sql
54 fi
55
56 # www-data ...
57 insinto /opt/teamspeak2-server/http
58 doins httpdocs/*.html
59 insinto /opt/teamspeak2-server/http/gfx
60 doins httpdocs/gfx/*.{jpg,png,gif}
61 insinto /opt/teamspeak2-server/http/help
62 doins httpdocs/help/*.html
63
64 # tcpquery docs ...
65 insinto /opt/teamspeak2-server/tcpquerydocs
66 doins tcpquerydocs/*.txt
67
68 # user manual docs ...
69 dodoc changelog.txt README
70 dohtml manual.html
71 dohtml -r Manual
72
73 if use mysql; then
74 dodoc INSTALL.mysql
75 fi
76
77 # runtime FS layout ...
78 newinitd "${FILESDIR}/teamspeak2-server-ng.rc6" teamspeak2-server
79
80 keepdir /{etc,var/{lib,log,run}}/teamspeak2-server
81 fowners teamspeak2 /{etc,var/{lib,log,run}}/teamspeak2-server
82 fperms 700 /{etc,var/{lib,log,run}}/teamspeak2-server
83
84 # Fix bug #66639
85 dosym sql /opt/teamspeak2-server/sqlite_sql
86 }
87
88 pkg_postinst() {
89 einfo
90 einfo "The Teamspeak Server generates the admin and superadmin"
91 einfo "passwords on the fly. To get them, please look in:"
92 einfo "/var/log/teamspeak2-server/server.log"
93 einfo
94 if use mysql; then
95 einfo "In order to have Teamspeak utilize a MySQL server, you will"
96 einfo "need to edit the server.ini file found in /etc/teamspeak2-server/"
97 einfo
98 einfo "Also, please note Teamspeak is only compatible with MySQL 3.x"
99 einfo "While it is possible to use a later version of MySQL, it may"
100 einfo "require modifications such as replacing libraries."
101 einfo
102 einfo "For more information, please see INSTALL.mysql which is"
103 einfo "located in /usr/share/doc/${PF}/ or "
104 einfo "visit the Teamspeak website at http://www.teamspeak.org"
105 einfo
106 fi
107 }

  ViewVC Help
Powered by ViewVC 1.1.20