diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/teamspeak-server-bin | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/teamspeak-server-bin')
9 files changed, 194 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server-bin/Manifest b/media-sound/teamspeak-server-bin/Manifest new file mode 100644 index 00000000000..5b0a52835b1 --- /dev/null +++ b/media-sound/teamspeak-server-bin/Manifest @@ -0,0 +1,2 @@ +DIST teamspeak3-server_linux-amd64-3.0.11.3.tar.gz 5022929 SHA256 448d35de0de5c0c9b17feba0697fc232920fb68ac2880bbbf022e0386a17b63b SHA512 14267c3d578e64e1a4bab278acf67b28cf80041d0341ba2e73051608643fe2eeaa7e3c7d3f28ae1826c76b5904b824deb68b7430f7e7d808977aeae7fb86beab WHIRLPOOL 2a4cd813b6428074b1d0a0568ebb78cbe5bb8b276d4cb114dd10bb87db03f78b7cd9e3d50a1706af99ae60346db1c2ae6e56c46f58688e1c32fb198743a64626 +DIST teamspeak3-server_linux-x86-3.0.11.3.tar.gz 5177437 SHA256 adf1eaf74056b24ffee798a6668de6c001801546adea2423a626388215729fa6 SHA512 241a86a728fd8990c75d1f509cf13d3ce97744492a5787c00e4294a6acca02a0ad8a6cdf64cc16e2dc41094eb5233b1528bced8c0cf73bdca66c27ee686f8ccd WHIRLPOOL db945e4fa04c2dcbabc6b5d75a7bf30e9e9367d02d57cc5df7d843aaf865c3baf1516c3c0536d99ba9929e143dc10de333764133c1de2c5c826b276e70ba19de diff --git a/media-sound/teamspeak-server-bin/files/server.conf b/media-sound/teamspeak-server-bin/files/server.conf new file mode 100644 index 00000000000..0fd2db66c50 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/server.conf @@ -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 index 00000000000..c83afe3137c --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf @@ -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 index 00000000000..11213cc45a0 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.service @@ -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/teamspeak-server-bin-init-r1 b/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-init-r1 new file mode 100644 index 00000000000..a3fe5771f7d --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-init-r1 @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +name="TeamSpeak Server" +command="/usr/sbin/ts3server" +pidfile="/run/teamspeak3-server/server.pid" +command_background="true" + +depend() { + need net + use mysql +} + +start_pre() { + # ensure, that the TS3-server finds all custom supplied shared objects on startup. + LD_LIBRARY_PATH="/opt/teamspeak3-server:$LD_LIBRARY_PATH" + export 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 + + checkpath -d --owner teamspeak3:teamspeak3 --mode 0700 /run/teamspeak3-server +} + +start() { + ebegin "Starting ${name}" + + start-stop-daemon --start --quiet --background \ + --pidfile "/run/teamspeak3-server/server.pid" --make-pidfile \ + --user "teamspeak3" --chdir "/opt/teamspeak3-server" \ + --exec "/usr/sbin/ts3server" -- \ + inifile="/etc/teamspeak3-server/server.conf" + + eend $? +} + +restart() { + stop + sleep 3 + start +} diff --git a/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini b/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini new file mode 100644 index 00000000000..7cdc6d6075a --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini @@ -0,0 +1,7 @@ +[config] +host=localhost +port=3306 +username=teamspeak +password=teamspeak +database=teamspeak +socket=
\ No newline at end of file diff --git a/media-sound/teamspeak-server-bin/files/ts3server b/media-sound/teamspeak-server-bin/files/ts3server new file mode 100644 index 00000000000..261b47171b3 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/ts3server @@ -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}/sbin/ts3server-bin" $* diff --git a/media-sound/teamspeak-server-bin/metadata.xml b/media-sound/teamspeak-server-bin/metadata.xml new file mode 100644 index 00000000000..9d47011f529 --- /dev/null +++ b/media-sound/teamspeak-server-bin/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + TeamSpeak Server (Voice Communication Software) + </longdescription> + <use> + <flag name="tsdns">Make use of TeamSpeak DNS.</flag> + </use> +</pkgmetadata> diff --git a/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.11.3.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.11.3.ebuild new file mode 100644 index 00000000000..4dd1d7f477a --- /dev/null +++ b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.11.3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib systemd user + +DESCRIPTION="Voice Communication Software - Server" +HOMEPAGE="http://www.teamspeak.com/" +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 )" + +SLOT="0" +LICENSE="teamspeak3 GPL-2" +IUSE="doc pdf tsdns" +KEYWORDS="~amd64 ~x86" + +RESTRICT="installsources fetch mirror strip" + +S="${WORKDIR}/teamspeak3-server_linux-${ARCH}" + +QA_PREBUILT="/opt/*" + +pkg_nofetch() { + elog "Please download ${A}" + elog "from ${HOMEPAGE}?page=downloads and place this" + elog "file in ${DISTDIR}" +} + +pkg_setup() { + enewuser teamspeak3 +} + +src_install() { + # Install wrapper + dosbin "${FILESDIR}"/ts3server + + # Install TeamSpeak 3 server into /opt/teamspeak3-server. + local opt_dir="/opt/teamspeak3-server" + into ${opt_dir} + insinto ${opt_dir} + exeinto ${opt_dir} + newsbin ts3server_linux_${ARCH} ts3server-bin + doexe *.sh + doins *.so + doins -r sql + + # Install documentation and tsdns. + dodoc -r CHANGELOG doc/*.txt + use doc && dodoc -r serverquerydocs doc/*.pdf && \ + docompress -x /usr/share/doc/${PF}/serverquerydocs && \ + dosym ../../usr/share/doc/${PF}/serverquerydocs ${opt_dir}/serverquerydocs + + if use tsdns; then + newsbin tsdns/tsdnsserver_linux_${ARCH} tsdnsserver + + newdoc tsdns/README README.tsdns + newdoc tsdns/USAGE USAGE.tsdns + dodoc tsdns/tsdns_settings.ini.sample + fi + + # Install the runtime FS layout. + insinto /etc/teamspeak3-server + doins "${FILESDIR}"/server.conf "${FILESDIR}"/ts3db_mariadb.ini + keepdir /{etc,var/{lib,log}}/teamspeak3-server + + # Install the init script and systemd unit. + newinitd "${FILESDIR}"/${PN}-init-r1 teamspeak3-server + systemd_dounit "${FILESDIR}"/systemd/teamspeak3.service + systemd_dotmpfilesd "${FILESDIR}"/systemd/teamspeak3.conf + + # Fix up permissions. + fowners teamspeak3 /{etc,var/{lib,log}}/teamspeak3-server + fowners teamspeak3 ${opt_dir} + + fperms 700 /{etc,var/{lib,log}}/teamspeak3-server + fperms 755 ${opt_dir} +} |