summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2007-08-03 18:18:57 +0000
committerMartin Jackson <mjolnir@gentoo.org>2007-08-03 18:18:57 +0000
commit9589650e17e85de6850341341be8513451bc4a0b (patch)
tree61619f222a987872fb3ec4590643303ed7972604 /media-sound/teamspeak2-server-bin
parentdrac says he wants to maintain this (good luck) (diff)
downloadgentoo-2-9589650e17e85de6850341341be8513451bc4a0b.tar.gz
gentoo-2-9589650e17e85de6850341341be8513451bc4a0b.tar.bz2
gentoo-2-9589650e17e85de6850341341be8513451bc4a0b.zip
Bump for bug 187117; use new init script from 2.0.20.1-r1
(Portage version: 2.1.2.11)
Diffstat (limited to 'media-sound/teamspeak2-server-bin')
-rw-r--r--media-sound/teamspeak2-server-bin/ChangeLog8
-rw-r--r--media-sound/teamspeak2-server-bin/files/digest-teamspeak2-server-bin-2.0.23.193
-rw-r--r--media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc636
-rw-r--r--media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.23.19.ebuild93
4 files changed, 139 insertions, 1 deletions
diff --git a/media-sound/teamspeak2-server-bin/ChangeLog b/media-sound/teamspeak2-server-bin/ChangeLog
index 2cb529e7636f..fd4f64e41255 100644
--- a/media-sound/teamspeak2-server-bin/ChangeLog
+++ b/media-sound/teamspeak2-server-bin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/teamspeak2-server-bin
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/ChangeLog,v 1.21 2007/04/28 17:32:35 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/ChangeLog,v 1.22 2007/08/03 18:18:57 mjolnir Exp $
+
+*teamspeak2-server-bin-2.0.23.19 (03 Aug 2007)
+
+ 03 Aug 2007; Martin Jackson <mjolnir@gentoo.org>
+ +files/teamspeak2-server-ng.rc6, +teamspeak2-server-bin-2.0.23.19.ebuild:
+ Bump for bug 187117; use new init script from 2.0.20.1-r1
28 Apr 2007; Sven Wegener <swegener@gentoo.org>
teamspeak2-server-bin-2.0.19.40.ebuild:
diff --git a/media-sound/teamspeak2-server-bin/files/digest-teamspeak2-server-bin-2.0.23.19 b/media-sound/teamspeak2-server-bin/files/digest-teamspeak2-server-bin-2.0.23.19
new file mode 100644
index 000000000000..d1f127adfa1e
--- /dev/null
+++ b/media-sound/teamspeak2-server-bin/files/digest-teamspeak2-server-bin-2.0.23.19
@@ -0,0 +1,3 @@
+MD5 05e2bdec80eeed3d935eacb9ada3623e ts2_server_rc2_202319.tar.bz2 1155345
+RMD160 b941f5ec105bc86ba124d1a9a2763e0617a8f6bb ts2_server_rc2_202319.tar.bz2 1155345
+SHA256 56ae9f2cbb83c04102561ca377cedb6881579a80493b2b0ebf73afe2ac279a67 ts2_server_rc2_202319.tar.bz2 1155345
diff --git a/media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc6 b/media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc6
new file mode 100644
index 000000000000..bd76d22f4999
--- /dev/null
+++ b/media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc6
@@ -0,0 +1,36 @@
+#! /sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak2-server-bin/files/teamspeak2-server-ng.rc6,v 1.1 2007/08/03 18:18:57 mjolnir Exp $
+
+depend() {
+ need net
+ use mysql
+}
+
+start() {
+ ebegin "Starting TeamSpeak Server"
+ start-stop-daemon --start --quiet --chuid teamspeak2 \
+ --exec "/opt/teamspeak2-server/server_linux" -- \
+ -db="/var/lib/teamspeak2-server/server.dbs" \
+ -ini="/etc/teamspeak2-server/server.ini" \
+ -log="/var/log/teamspeak2-server/server.log" \
+ -pid="/var/run/teamspeak2-server/server.pid" \
+ -sql="/opt/teamspeak2-server/sql/" \
+ -tcpquerydocs="/opt/teamspeak2-server/tcpquerydocs" \
+ -httpdocs="/opt/teamspeak2-server/http/" &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping TeamSpeak Server"
+ start-stop-daemon --stop --quiet \
+ --pidfile "/var/run/teamspeak2-server/server.pid"
+ eend $?
+}
+
+restart() {
+ svc_stop
+ sleep 3
+ svc_start
+}
diff --git a/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.23.19.ebuild b/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.23.19.ebuild
new file mode 100644
index 000000000000..c9800134f0f0
--- /dev/null
+++ b/media-sound/teamspeak2-server-bin/teamspeak2-server-bin-2.0.23.19.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2007 Gentoo Foundation
+# 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.23.19.ebuild,v 1.1 2007/08/03 18:18:57 mjolnir Exp $
+
+inherit eutils
+
+DESCRIPTION="The Teamspeak Voice Communication Server"
+HOMEPAGE="http://www.goteamspeak.com/"
+SRC_URI="ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_${PV//./}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="-* ~x86 ~amd64"
+IUSE="mysql"
+
+S="${WORKDIR}/tss2_rc2"
+
+RDEPEND="amd64? ( >=sys-libs/glibc-2.3.4.20041102 )"
+DEPEND=""
+
+pkg_setup() {
+ enewuser teamspeak2
+}
+
+src_install() {
+ exeinto /opt/teamspeak2-server
+ doexe server_linux sqlite.so
+ if use mysql; then
+ doexe libsqlmy.so
+ fi
+
+ 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
+ if use mysql; then
+ insinto /opt/teamspeak2-server/mysql_sql
+ doins mysql_sql/*.sql
+ fi
+
+ # www-data ...
+ insinto /opt/teamspeak2-server/http
+ doins httpdocs/*.html
+ insinto /opt/teamspeak2-server/http/gfx
+ doins httpdocs/gfx/*.{jpg,png,gif}
+ insinto /opt/teamspeak2-server/http/help
+ doins httpdocs/help/*.html
+
+ # tcpquery docs ...
+ insinto /opt/teamspeak2-server/tcpquerydocs
+ doins tcpquerydocs/*.txt
+
+ # user manual docs ...
+ dodoc changelog.txt README
+ dohtml manual.html
+ dohtml -r Manual
+
+ if use mysql; then
+ dodoc INSTALL.mysql
+ fi
+
+ # runtime FS layout ...
+ newinitd "${FILESDIR}/teamspeak2-server-ng.rc6" teamspeak2-server
+
+ keepdir /{etc,var/{lib,log,run}}/teamspeak2-server
+ fowners teamspeak2 /{etc,var/{lib,log,run}}/teamspeak2-server
+ fperms 700 /{etc,var/{lib,log,run}}/teamspeak2-server
+
+ # Fix bug #66639
+ dosym sql /opt/teamspeak2-server/sqlite_sql
+}
+
+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
+ if use mysql; then
+ einfo "In order to have Teamspeak utilize a MySQL server, you will"
+ einfo "need to edit the server.ini file found in /etc/teamspeak2-server/"
+ einfo
+ einfo "Also, please note Teamspeak is only compatible with MySQL 3.x"
+ einfo "While it is possible to use a later version of MySQL, it may"
+ einfo "require modifications such as replacing libraries."
+ einfo
+ einfo "For more information, please see INSTALL.mysql which is"
+ einfo "located in /usr/share/doc/${PF}/ or "
+ einfo "visit the Teamspeak website at http://www.teamspeak.org"
+ einfo
+ fi
+}