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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Aug 21 23:41:30 2007 UTC (10 years, 11 months ago) by mjolnir
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +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-r1.ebuild,v 1.5 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
32 touch "${D}"/opt/teamspeak2-server/bad_names.txt
33 fowners teamspeak2 /opt/teamspeak2-server/bad_names.txt
34
35 insinto /opt/teamspeak2-server/sql
36 doins sqlite_sql/*.sql
37 if use mysql; then
38 insinto /opt/teamspeak2-server/mysql_sql
39 doins mysql_sql/*.sql
40 fi
41
42 # www-data ...
43 insinto /opt/teamspeak2-server/http
44 doins httpdocs/*.html
45 insinto /opt/teamspeak2-server/http/gfx
46 doins httpdocs/gfx/*.{jpg,png,gif}
47 insinto /opt/teamspeak2-server/http/help
48 doins httpdocs/help/*.html
49
50 # tcpquery docs ...
51 insinto /opt/teamspeak2-server/tcpquerydocs
52 doins tcpquerydocs/*.txt
53
54 # user manual docs ...
55 dodoc changelog.txt README
56 dohtml manual.html
57 dohtml -r Manual
58
59 if use mysql; then
60 dodoc INSTALL.mysql
61 fi
62
63 # runtime FS layout ...
64 newinitd "${FILESDIR}/2.0.20.1-r1/teamspeak2-server.rc6" teamspeak2-server
65
66 keepdir /{etc,var/{lib,log,run}}/teamspeak2-server
67 fowners teamspeak2 /{etc,var/{lib,log,run}}/teamspeak2-server
68 fperms 700 /{etc,var/{lib,log,run}}/teamspeak2-server
69
70 # Fix bug #66639
71 dosym sql /opt/teamspeak2-server/sqlite_sql
72 }
73
74 pkg_postinst() {
75 einfo
76 einfo "The Teamspeak Server generates the admin and superadmin"
77 einfo "passwords on the fly. To get them, please look in:"
78 einfo "/var/log/teamspeak2-server/server.log"
79 einfo
80 if use mysql; then
81 einfo "In order to have Teamspeak utilize a MySQL server, you will"
82 einfo "need to edit the server.ini file found in /etc/teamspeak2-server/"
83 einfo
84 einfo "Also, please note Teamspeak is only compatible with MySQL 3.x"
85 einfo "While it is possible to use a later version of MySQL, it may"
86 einfo "require modifications such as replacing libraries."
87 einfo
88 einfo "For more information, please see INSTALL.mysql which is"
89 einfo "located in /usr/share/doc/${PF}/ or "
90 einfo "visit the Teamspeak website at http://www.teamspeak.org"
91 einfo
92 fi
93 }

  ViewVC Help
Powered by ViewVC 1.1.20