]> Frank Brehm's Git Trees - portage.git/commitdiff
Added media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r2.ebuild and depen...
authorFrank Brehm <frank@brehm-online.com>
Wed, 29 Jan 2014 09:35:21 +0000 (10:35 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 29 Jan 2014 09:35:21 +0000 (10:35 +0100)
media-sound/teamspeak-server-bin/Manifest [new file with mode: 0644]
media-sound/teamspeak-server-bin/files/server.conf [new file with mode: 0644]
media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf [new file with mode: 0644]
media-sound/teamspeak-server-bin/files/systemd/teamspeak3.service [new file with mode: 0644]
media-sound/teamspeak-server-bin/files/teamspeak3-server.rc [new file with mode: 0755]
media-sound/teamspeak-server-bin/files/ts3server [new file with mode: 0755]
media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r2.ebuild [new file with mode: 0644]

diff --git a/media-sound/teamspeak-server-bin/Manifest b/media-sound/teamspeak-server-bin/Manifest
new file mode 100644 (file)
index 0000000..729c40f
--- /dev/null
@@ -0,0 +1,8 @@
+AUX server.conf 337 SHA256 5520d4d1a0be0fa416e1d4b15f69980cba75c082bf7ae94cefa695af6eb56771 SHA512 870acb2cc74b3a48fece9502cc09dcb8a63db8671721c642f1648a305b08b92cccdd883b08e33e28165bf52fa59b5b745f18401ca115deef8fd9f3b190bfc750 WHIRLPOOL e1bd3aedf729cc5d006cfa43aa41e48e9cf85937f03683352ceab5fcb15913b195c4cf7283b467b7e635cd4df89d72afb179d5e5a004cfeaae0c3be7479916e3
+AUX systemd/teamspeak3.conf 133 SHA256 a3851323891a304e6fc5c53740c0e239f167a7c9251cfc8c7e8a4e1b1ac8a1d8 SHA512 49dab025ab37bb29e14a14fb070568c5710fe257a35fe6b887aa404847fc828e9ffecad7c5d10e987128934c433c3b464b8da0e4891ba3b48868b73abb4b9a4c WHIRLPOOL b7980faa9d5c0b83fa1d72eeb14745c050b01bec70a8cd0974157ce02eef06faafb4f7b35a0c4cff496b102817a9d8245237808557472f9452108f46ac9362ab
+AUX systemd/teamspeak3.service 500 SHA256 d211157fd94480c2d4c21e797ba01e51d0ec1563f1a34cbcda503a7ef110ea8c SHA512 332486a1b456fecade65004384f032291ee3d6e55c5b347b7dc6e7a39f6a633e3a381922295a8e431810d425c77b645df42d916d51bc4a1118aff056b606f0a4 WHIRLPOOL 4314ea4a1ecc33164c10017a8ee4328fea22a16ef5a600ea84cd8ac54b9eec2bdd835e85a24c01552a46d78ff869f03c7ef0970d32eafa31a72000f07b780b6a
+AUX teamspeak3-server.rc 1179 SHA256 dd42adf8b773829bfff08f5b96935f9cda4f205c741861a1326a10d0937fa293 SHA512 e43e4396f2e87c62f65fc66b3928cdf9e7507675a9dd9c0b36a249a23f986a14835da56bce8fb74f6089cbcda1eb26423f86ce9d14e1816405f2da42e3b9d191 WHIRLPOOL cb6fa698e8f661ca49acb9033ba26238ac3fc88c1865a631c2d43fc21b222b97e74f12cdccbd09edcc31ab86a448836157dbc33052bf212689ebef3a091d99ed
+AUX ts3server 262 SHA256 1565e470d1d17d0161ba78c14726f5fc0628fa155a0153349c869fd8011cbe67 SHA512 f922482e754708c551868e05511685f609fb32b7bfbfd8d545b991b5fb24eec20ee31ca5721ef62636228902faa5b43d62a2742637e08683da17694c46cd01fe WHIRLPOOL 197193a3988d132f0ef8423b682a585c4ba22e46ca4ff87e1203b7d38b22e3b6bf3416990441172f2d91c0fde4eddef9aeb34c00a178f1ea02e1583d8d992ce3
+DIST teamspeak3-server_linux-amd64-3.0.5.tar.gz 4048053 SHA256 61f158d445262dc682676b17c86c36db2008b9e472401bd6409a6f8dde3d595a SHA512 ea5c5cb947bae1afbdb3fa67e71910825beb05818460298bdbc8232ece594abd3282ceba3b11cfe0a79e431e0bc66335cbe1e41d8f3cc1afa6750ae3ed2d508b WHIRLPOOL 41c6118c7a0afba3880333f3d93593a0b65b565356650634bc7c529cccf0f18d0d160abdb6b728e05f7a78e40a7db436dd299ed551b51a15ef7a9115f00a9a62
+DIST teamspeak3-server_linux-x86-3.0.5.tar.gz 4359085 SHA256 e5fcb986412921828d7338f5faf3910bdd3e9c4bbd6a0a9d93d5637e77ad0eff SHA512 f787287a4eb0b6ef7002704cad896483d43d0aa8642c10969d14dd31052f1d5665f0946bf75110938aa44cf93aed815b13ae53b15e1c477bf7aea4726e5f5f70 WHIRLPOOL 881431d1993cbdb424f2470c995e83097750143067c6741c170e1e4afdd47e40c7c6fd090955922b20d5ff495d5b2bdf884c04b35f262146ad861f6142adf485
+EBUILD teamspeak-server-bin-3.0.5-r2.ebuild 1600 SHA256 f978505153594022a84a2dce0746243ac499fae26c79cebbc59180dad1db3a8a SHA512 f238c5a33e3c15316a502c54342208b2fef7e9c5ee938f398d6e18f63b4bf22fc9574a4a9caf8382a81430c0176341ee3332ca2d4bdc79fdbceee3fa5e76b658 WHIRLPOOL b2c067144d6fbc5a377d6f12d8c7006fdb1addaae8f4c6980d9a718dac432c8c3a37f4d683db4c8e04da1ec31d5b67e9816c051cee3e990baa823c96dad258ff
diff --git a/media-sound/teamspeak-server-bin/files/server.conf b/media-sound/teamspeak-server-bin/files/server.conf
new file mode 100644 (file)
index 0000000..0fd2db6
--- /dev/null
@@ -0,0 +1,14 @@
+machine_id=
+default_voice_port=9987
+voice_ip=0.0.0.0
+licensepath=/opt/teamspeak3-server/
+filetransfer_port=30033
+filetransfer_ip=0.0.0.0
+query_port=10011
+query_ip=0.0.0.0
+dbplugin=ts3db_sqlite3
+dbpluginparameter=
+dbsqlpath=/opt/teamspeak3-server/sql/
+dbsqlcreatepath=create_sqlite/
+logpath=/var/log/teamspeak3-server/
+logquerycommands=0
diff --git a/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf
new file mode 100644 (file)
index 0000000..c83afe3
--- /dev/null
@@ -0,0 +1,4 @@
+# systemd tmpfile settings for teamspeak3-server
+# See tmpfiles.d(5) for details
+
+d /var/run/teamspeak3 0755 teamspeak3 teamspeak3 -
diff --git a/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.service b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.service
new file mode 100644 (file)
index 0000000..11213cc
--- /dev/null
@@ -0,0 +1,21 @@
+[Unit]
+Description=TeamSpeak 3 Server
+After=network.target
+
+[Service]
+Type=simple
+Environment=LD_LIBRARY_PATH=/opt/teamspeak3-server
+WorkingDirectory=/opt/teamspeak3-server
+ExecStartPre=/bin/rm -f /dev/shm/7gbhujb54g8z9hu43jre8
+ExecStart=/opt/teamspeak3-server/ts3server-bin inifile=/etc/teamspeak3-server/server.conf
+ExecStop=/bin/kill -15 $MAINPID
+StandardOutput=syslog
+StandardError=syslog
+User=teamspeak3
+Group=teamspeak3
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
+# vim:syntax=dosini
diff --git a/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc b/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc
new file mode 100755 (executable)
index 0000000..ff67a6c
--- /dev/null
@@ -0,0 +1,45 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/files/teamspeak3-server.rc,v 1.5 2012/05/10 20:14:34 trapni Exp $
+
+depend() {
+       need net
+       use mysql
+}
+
+start() {
+       ebegin "Starting TeamSpeak 3 Server"
+
+       # ensure, that the TS3-server finds all custom supplied shared objects on startup.
+       export LD_LIBRARY_PATH="/opt/teamspeak3-server:$LD_LIBRARY_PATH"
+
+       # temporay fix for EPERM bug (we still leave it here to make sure it is *really* not there)
+       rm -f /dev/shm/7gbhujb54g8z9hu43jre8
+
+       mkdir -p "/var/run/teamspeak3-server"
+       chown "teamspeak3" "/var/run/teamspeak3-server"
+
+       start-stop-daemon --start --quiet --background \
+               --pidfile "/var/run/teamspeak3-server/server.pid" --make-pidfile \
+               --user "teamspeak3" --chdir "/opt/teamspeak3-server" \
+               --exec "/usr/sbin/ts3server" -- \
+               inifile="/etc/teamspeak3-server/server.conf"
+
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping TeamSpeak Server"
+
+       start-stop-daemon --stop --quiet \
+               --pidfile "/var/run/teamspeak3-server/server.pid"
+
+       eend $?
+}
+
+restart() {
+       svc_stop
+       sleep 3
+       svc_start
+}
diff --git a/media-sound/teamspeak-server-bin/files/ts3server b/media-sound/teamspeak-server-bin/files/ts3server
new file mode 100755 (executable)
index 0000000..2b2e1c3
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/bash
+
+BASEDIR="/opt/teamspeak3-server"
+
+export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
+
+# work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH
+cd "${BASEDIR}"
+
+exec "${BASEDIR}/ts3server-bin" $*
diff --git a/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r2.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r2.ebuild
new file mode 100644 (file)
index 0000000..467175f
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r2.ebuild,v 1.2 2012/06/09 23:22:53 zmedico Exp $
+
+EAPI=4
+
+inherit eutils systemd user
+
+DESCRIPTION="TeamSpeak Server - Voice Communication Software"
+HOMEPAGE="http://teamspeak.com/"
+LICENSE="teamspeak3"
+SLOT="0"
+IUSE=""
+KEYWORDS="amd64 x86"
+RESTRICT="strip"
+
+SRC_URI="
+       amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-amd64-${PV}.tar.gz )
+       x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-x86-${PV}.tar.gz )
+"
+
+S="${WORKDIR}/teamspeak3-server_linux-${ARCH}"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       enewuser teamspeak3
+}
+
+src_install() {
+       local dest="${D}/opt/teamspeak3-server"
+
+       mkdir -p "${dest}"
+       cp -R "${WORKDIR}/teamspeak3-server_linux-"*/* "${dest}/" || die
+
+       mv "${dest}/ts3server_linux_"* "${dest}/ts3server-bin" || die
+
+       exeinto /usr/sbin || die
+       doexe "${FILESDIR}/ts3server" || die
+
+       # runtime FS layout ...
+       insinto /etc/teamspeak3-server
+       doins "${FILESDIR}/server.conf"
+       newinitd "${FILESDIR}/teamspeak3-server.rc" teamspeak3-server
+
+       keepdir /{etc,var/{lib,log,run}}/teamspeak3-server
+       fowners teamspeak3 /{etc,var/{lib,log,run}}/teamspeak3-server
+       fperms 700 /{etc,var/{lib,log,run}}/teamspeak3-server
+
+       fowners teamspeak3 /opt/teamspeak3-server
+       fperms 755 /opt/teamspeak3-server
+
+       systemd_dounit "${FILESDIR}/systemd/teamspeak3.service"
+       systemd_dotmpfilesd "${FILESDIR}/systemd/teamspeak3.conf"
+}