summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVance M. Allen <vma_gentoo@vmacs.us>2021-06-28 21:29:01 -0600
committerVance M. Allen <vma_gentoo@vmacs.us>2021-06-28 21:29:01 -0600
commit655b48166030b1a7654e86d2b7dfb54acc892425 (patch)
treeec4b9ac9d8d3d8513466708944f04575624de6ed
parentRemove support for vixie-cron to address https://bugs.gentoo.org/782349 (diff)
downloadvmacs-655b48166030b1a7654e86d2b7dfb54acc892425.tar.gz
vmacs-655b48166030b1a7654e86d2b7dfb54acc892425.tar.bz2
vmacs-655b48166030b1a7654e86d2b7dfb54acc892425.zip
Add support for teamspeak-server-3.13.6, remove teamspeak-client
Signed-off-by: Vance M. Allen <vma_gentoo@vmacs.us>
-rw-r--r--media-sound/teamspeak-client-bin/Manifest5
-rw-r--r--media-sound/teamspeak-client-bin/files/teamspeak310
-rw-r--r--media-sound/teamspeak-client-bin/metadata.xml19
-rw-r--r--media-sound/teamspeak-client-bin/teamspeak-client-bin-3.5.3.ebuild78
-rw-r--r--media-sound/teamspeak-server/Manifest11
-rw-r--r--media-sound/teamspeak-server/files/teamspeak.initd-r123
-rw-r--r--media-sound/teamspeak-server/files/teamspeak.service16
-rw-r--r--media-sound/teamspeak-server/files/ts3db_mariadb.ini.sample7
-rw-r--r--media-sound/teamspeak-server/files/ts3db_postgresql.ini.sample7
-rw-r--r--media-sound/teamspeak-server/files/ts3server.ini-r229
-rw-r--r--media-sound/teamspeak-server/files/ts3server_mariadb.ini.sample-r229
-rw-r--r--media-sound/teamspeak-server/files/ts3server_postgresql.ini.sample29
-rw-r--r--media-sound/teamspeak-server/metadata.xml17
-rw-r--r--media-sound/teamspeak-server/teamspeak-server-3.13.6.ebuild134
14 files changed, 302 insertions, 112 deletions
diff --git a/media-sound/teamspeak-client-bin/Manifest b/media-sound/teamspeak-client-bin/Manifest
deleted file mode 100644
index 93c5d93..0000000
--- a/media-sound/teamspeak-client-bin/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-AUX teamspeak3 258 BLAKE2B a70cae413c2392b601f69f9ab4196c06b711beb35822be9cb9621325472fef7caea06bee183f6b73f1d4cb8122be15712ba53dd3b148f6bc5ddd5a98ab7f108f SHA512 b587b3991e927922854f155ac61e8d923a6b84a1da88a040277d670203be7dc11b5fbf79508d3894e94a2686da1758781b158c7598c8a61b151798c6a7b1880e
-DIST TeamSpeak3-Client-linux_amd64-3.5.3.run 97454216 BLAKE2B 228542b7b5169bd4bc86f320f7d9b4e099d088db9bb5c944b7b1e9d029b8c505a50447468fb02bb2b5e34c0f3a4e088a1af2bab466a7ec71e128541fabe9b562 SHA512 8b0ea835b179596ec16c092790383691650f6cb92b97d4ab2012872edc2f4d82e0b3a3ea4551651c4824703b9ef01ba9c95a50ee262d5f279151d780dc3faef6
-DIST TeamSpeak3-Client-linux_x86-3.5.3.run 95939656 BLAKE2B 5aec52b4461d45cd19947e3f87729a40bca23bc78d45565bad59a1f11b437e253f0bf073ad32ca1a43396b8bcf47794d0efb0673ec0b7314e3dd5c2a0dcdb140 SHA512 54a6d7ad03a357a78be71710e7878b9b5c0a54d175bf4242a35ba82df1abfa692dc4d4c921099677c5d163caf18b68db73a87b8637b216ef5c72eaa25b6deab7
-EBUILD teamspeak-client-bin-3.5.3.ebuild 1939 BLAKE2B b2db292034389f625f4f9725a5c45a387ff0a82865a52bbd0262125a025bd347d00700447058061491637d84e6279bf34d8c5741a28e9c96cee2371b80d3f15a SHA512 dfbbb0232e564b16726ebd2ac9301a9170cf9a0e163c7d7c3ca1b595656dd21c26192ee08b1f8b1eff402a7abc4a599a1a5ae707da083381f13526890c0f31b2
-MISC metadata.xml 708 BLAKE2B 5e7cd83c58319706e57b6d40b7f69fa5ee3c9c28b5ba56078c50b1cb1da50578539286838e0501d176bf686d7a14612a07383ddff3a5afaf15079ac685ccfd9f SHA512 192cb133ecea4239ed304883cf71d6328b5926db9d9a513ad0cdb049205195f20fd480ba1228a7990ae26cd5761a3c36e39ce358f30456aa137d1247435ddd9b
diff --git a/media-sound/teamspeak-client-bin/files/teamspeak3 b/media-sound/teamspeak-client-bin/files/teamspeak3
deleted file mode 100644
index d598f01..0000000
--- a/media-sound/teamspeak-client-bin/files/teamspeak3
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /bin/sh
-
-BASEDIR="/opt/teamspeak3-client"
-
-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}/ts3client" "$@"
diff --git a/media-sound/teamspeak-client-bin/metadata.xml b/media-sound/teamspeak-client-bin/metadata.xml
deleted file mode 100644
index 797f525..0000000
--- a/media-sound/teamspeak-client-bin/metadata.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>gentoo@karolherbst.de</email>
- <name>Karol Herbst</name>
- <description>Proxy-Maintainer. Assign bugs to him</description>
- </maintainer>
- <maintainer type="person">
- <email>dryatu@gmail.com</email>
- <name>Sami Loone</name>
- <description>Proxy-Maintainer. Assign bugs to him</description>
- </maintainer>
- <maintainer type="project">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <longdescription>TeamSpeak Client (Voice Communication Software)</longdescription>
-</pkgmetadata>
diff --git a/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.5.3.ebuild b/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.5.3.ebuild
deleted file mode 100644
index e1df3d6..0000000
--- a/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.5.3.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils unpacker
-
-DESCRIPTION="TeamSpeak Client - Voice Communication Software"
-HOMEPAGE="http://www.teamspeak.com/"
-SRC_URI="
- amd64? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_amd64-${PV/_/-}.run )
- x86? ( https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_x86-${PV/_/-}.run )"
-
-LICENSE="teamspeak3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="alsa pulseaudio"
-
-REQUIRED_USE="|| ( alsa pulseaudio )"
-
-RDEPEND="
- dev-libs/quazip[-qt4,qt5]
- dev-qt/qtcore:5
- dev-qt/qtgui:5[accessibility]
- dev-qt/qtnetwork:5
- dev-qt/qtsql:5[sqlite]
- dev-qt/qtwidgets:5
- sys-libs/glibc
- sys-libs/zlib
- alsa? ( media-libs/alsa-lib )
- pulseaudio? ( media-sound/pulseaudio )"
-
-RESTRICT="mirror strip"
-
-S="${WORKDIR}"
-
-pkg_nofetch() {
- elog "Please download ${A}"
- elog "from ${HOMEPAGE}?page=downloads and place this"
- elog "file in ${DISTDIR}"
-}
-
-src_prepare() {
- default
-
- # Remove the qt-libraries as they just cause trouble with the system's Qt, see bug #328807.
- rm libQt* || die "Couldn't remove bundled Qt libraries."
-
- rm -r platforms sqldrivers qt.conf || die "Couldn't remove bundle Qt files."
-
- # Remove unwanted soundbackends.
- if ! use alsa ; then
- rm soundbackends/libalsa* || die
- fi
-
- if ! use pulseaudio ; then
- rm soundbackends/libpulseaudio* || die
- fi
-
- # Remove quazip
- rm libquazip.so || die
-
- # Rename the tsclient to its shorter version, required by the teamspeak3 script we install.
- mv ts3client_linux_* ts3client || die "Couldn't rename ts3client to its shorter version."
-}
-
-src_install() {
- insinto /opt/teamspeak3-client
- doins -r *
-
- fperms +x /opt/teamspeak3-client/ts3client
-
- dobin "${FILESDIR}/teamspeak3"
-
- make_desktop_entry teamspeak3 TeamSpeak3 \
- "/opt/teamspeak3-client/pluginsdk/docs/client_html/images/logo.png" \
- Network
-}
diff --git a/media-sound/teamspeak-server/Manifest b/media-sound/teamspeak-server/Manifest
new file mode 100644
index 0000000..14a19ad
--- /dev/null
+++ b/media-sound/teamspeak-server/Manifest
@@ -0,0 +1,11 @@
+AUX teamspeak.initd-r1 559 BLAKE2B fa37f29a3a03579d091da5cd01785dd93e15f38c070e06589619a3843ab85a86197be836ee0c8fe630c4ad8872c3efaf4e160b215a45cef3ebe8a07f9d749b82 SHA512 0fcfc65290ececdb3bf07cf2d88edeb325dc738aad6c7ae4ce0838fb272190f6a2667ed20a484fe92a0d4d9b529927b31a4df6ddcc2d4e917677f1d589d4f356
+AUX teamspeak.service 418 BLAKE2B fad43e28b976db44b290937654f3fa503a7a17dbba17e7d01c8931a18bf63615b0a125dec420f35e2517dacfd760750957997fcf58e69bcd2ca0721b4e2054ae SHA512 a31633591ae97224f3aefef25ed9d50e6cedf252c94559f7c424065ae815e0724c75e1c71337283933283cc77626d106ba5e15f3cce5c5dfddfc74a1f99160ba
+AUX ts3db_mariadb.ini.sample 99 BLAKE2B 8b81805ac580ea892d4b05fc55787b850202545b911b11175932d2b3031dabcfa29d2bafe37742a05cea5e6dc8913abfdba140f9c2203515eb5da4444b3bbdd1 SHA512 60993fa58beb07f3304e7603abe91dba2e23e3f6868a6e2894bf55e1e79c358defd1a08523e6ade16d1eb1042aad1783c76c2dff8e6ce282d08d77800c3357db
+AUX ts3db_postgresql.ini.sample 99 BLAKE2B 06931c928de8f46373b6c7102358379260432d9f4b8d25d83455b62242abdb3a74b124fce5ba08b0a5f06a6dbe8252712d88b4106200976a032024ff14da37dc SHA512 803763b93d2cc7e7b111ca9649deb6e582e1f0228bd9acd677f8d3f914cbed745381663562ada655618bdb955c07f0cdf02bdd4d8ce02861f082ca9aef8e480f
+AUX ts3server.ini-r2 721 BLAKE2B 8427ffb88e2856b0807fe3c3ed2411039fe330f65322cca1e4b35d57e68e021b982a3e3c9044994bc21ed7010ebd746adf6fcfa93b3e2e9f5b5a16e3a3779bd5 SHA512 8d5ce0e3bf30bacd88784504dde88c1561d886f2402398d5f84d0acac56159fa21181adec25fec01f42582e0489a576606c9f12e426edcb1e9c2436ada196c4c
+AUX ts3server_mariadb.ini.sample-r2 762 BLAKE2B c70d4c7e375a9ab43ca9c1c4cadea9843009e7004f38734f7f2d8da3e3e86d83a2301d713b6bffee4e14ad04ef08c05bdae5e7daec4a8678ef3b9b5348824d2b SHA512 c2a4468288251e39e4061363016f6146aceae4c7f19c0e962341748ada5127e0b80380c75d217b1a2d1716c6e53c669aed34d75258b22f32c7f0ffb50b759288
+AUX ts3server_postgresql.ini.sample 768 BLAKE2B a8a8e9255012dda70d2096c793c44f22978cab1e2a632f3abbb81f288d9d8716e76727c6edde33146ff4e7dc08da43c7996565c8c05a27ca4f17e1bb02f095d3 SHA512 293917b6310d456e51fc72cf967cb2a0f99ec38b7a62550f2358d1996841d1aa15c0169945884a10799fb72f9831d9d12d4f2a535d1480f8fbaa6b23c9f4cf21
+DIST teamspeak3-server_linux_amd64-3.13.6.tar.bz2 9948972 BLAKE2B 397e96751e6688b5579ff7828e4998e3b26183b0b10980e89748d51207428059e7d8cfa6f2f6fb961b77f735f61e1ba00ac13a077c76b5d22a7b2abb28d67e48 SHA512 dc007cdc924fd284da4a206cf615816b53c2f03ccb2573a29aa2bce6874e09ce5764a3953f8e84de8a3cc02aee306b1505d8c7edf8d48713bbf5f172c3be3422
+DIST teamspeak3-server_linux_x86-3.13.6.tar.bz2 9785491 BLAKE2B f0d196a72e9a4283006c4dfd9a1d86e96a3b435d8bf14dfca178ea0240e94b88bcf3b9e20b6c99638e04019065fa79d28ac2d9ad452e306c4c27966e32464c69 SHA512 ef124964590c106bacd3bc98847a5e8f64fbbf69ccb2a216f9af6548f5f2d200c0bd307d283f48cb08c254fddb92fe03f6cff2c3c87e7ca593edf3023b053bee
+EBUILD teamspeak-server-3.13.6.ebuild 3512 BLAKE2B 9d4f0b1f7a231d27ecf678ddaab6289c4a9042169f0602257e339f07e5ad2c7e4b2b788f789f93a98751b5081a3bd5a47753f9b649f638069e12f37dbc658ee3 SHA512 108c890aa92790ea077bb03733beb1806ce0c0d651efdba042106e6029b7fe81912e7abdfb97e5cb84cd737088bb2cb9e0cc94db0b1718b4a3759da87a3de681
+MISC metadata.xml 703 BLAKE2B 854016d14783720f4467dead33469909e5777915947a72a03d0c2789fe37633cd93db11fdf2c59429e7a58f44825ecde3094c1dab7dd765634f46b80894b5af6 SHA512 959deb886af18a0260a0a0530eb914a42a21acac711cfd3ca6c2724ee78e3b697786e85a387ce7c9dae34b1922d3d96953265c80497602a4e94b05988d776a9c
diff --git a/media-sound/teamspeak-server/files/teamspeak.initd-r1 b/media-sound/teamspeak-server/files/teamspeak.initd-r1
new file mode 100644
index 0000000..85d8075
--- /dev/null
+++ b/media-sound/teamspeak-server/files/teamspeak.initd-r1
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+config="/etc/teamspeak3-server/ts3server.ini"
+name="TeamSpeak3 Server"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--chdir /opt/teamspeak3-server --env TS3SERVER_LICENSE=accept"
+
+command="/opt/bin/ts3server"
+command_args="inifile=${config}"
+command_background="true"
+command_group="teamspeak"
+command_user="teamspeak"
+
+depend() {
+ use mysql
+}
+
+start_pre() {
+ # Fix for EPERM bug
+ rm -f /dev/shm/7gbhujb54g8z9hu43jre8
+}
diff --git a/media-sound/teamspeak-server/files/teamspeak.service b/media-sound/teamspeak-server/files/teamspeak.service
new file mode 100644
index 0000000..0c77e4c
--- /dev/null
+++ b/media-sound/teamspeak-server/files/teamspeak.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=TeamSpeak3 Server
+After=network-online.target
+
+[Service]
+Type=simple
+User=teamspeak
+Group=teamspeak
+WorkingDirectory=/opt/teamspeak3-server
+Environment="LD_LIBRARY_PATH=/opt/teamspeak3-server"
+Environment="TS3SERVER_LICENSE=accept"
+ExecStartPre=/bin/rm -f /dev/shm/7gbhujb54g8z9hu43jre8
+ExecStart=/opt/bin/ts3server inifile=/etc/teamspeak3-server/ts3server.ini
+
+[Install]
+WantedBy=multi-user.target
diff --git a/media-sound/teamspeak-server/files/ts3db_mariadb.ini.sample b/media-sound/teamspeak-server/files/ts3db_mariadb.ini.sample
new file mode 100644
index 0000000..0a8ebc4
--- /dev/null
+++ b/media-sound/teamspeak-server/files/ts3db_mariadb.ini.sample
@@ -0,0 +1,7 @@
+[config]
+host=localhost
+port=3306
+username=teamspeak
+password=teamspeak
+database=teamspeak
+socket=
diff --git a/media-sound/teamspeak-server/files/ts3db_postgresql.ini.sample b/media-sound/teamspeak-server/files/ts3db_postgresql.ini.sample
new file mode 100644
index 0000000..2d7c711
--- /dev/null
+++ b/media-sound/teamspeak-server/files/ts3db_postgresql.ini.sample
@@ -0,0 +1,7 @@
+[config]
+host=localhost
+port=5432
+username=teamspeak
+password=teamspeak
+database=teamspeak
+socket=
diff --git a/media-sound/teamspeak-server/files/ts3server.ini-r2 b/media-sound/teamspeak-server/files/ts3server.ini-r2
new file mode 100644
index 0000000..34f11d3
--- /dev/null
+++ b/media-sound/teamspeak-server/files/ts3server.ini-r2
@@ -0,0 +1,29 @@
+machine_id=
+default_voice_port=9987
+voice_ip=
+licensepath=/opt/teamspeak3-server/
+filetransfer_port=30033
+filetransfer_ip=
+query_port=10011
+query_ip=0.0.0.0, ::
+query_ip_allowlist=query_ip_allowlist.txt
+query_ip_denylist=query_ip_denylist.txt
+dbplugin=ts3db_sqlite3
+dbpluginparameter=
+dbsqlpath=/opt/teamspeak3-server/sql/
+dbsqlcreatepath=create_sqlite/
+dbconnections=10
+logpath=/var/log/teamspeak3-server/
+logquerycommands=0
+dbclientkeepdays=30
+logappend=0
+query_skipbruteforcecheck=0
+query_buffer_mb=20
+http_proxy=
+license_accepted=1
+serverquerydocs_path=/opt/teamspeak3-server/serverquerydocs/
+query_ssh_ip=0.0.0.0, ::
+query_ssh_port=10022
+query_protocols=raw
+query_ssh_rsa_host_key=ssh_host_rsa_key
+query_timeout=300
diff --git a/media-sound/teamspeak-server/files/ts3server_mariadb.ini.sample-r2 b/media-sound/teamspeak-server/files/ts3server_mariadb.ini.sample-r2
new file mode 100644
index 0000000..ff93fb6
--- /dev/null
+++ b/media-sound/teamspeak-server/files/ts3server_mariadb.ini.sample-r2
@@ -0,0 +1,29 @@
+machine_id=
+default_voice_port=9987
+voice_ip=
+licensepath=/opt/teamspeak3-server/
+filetransfer_port=30033
+filetransfer_ip=
+query_port=10011
+query_ip=0.0.0.0, ::
+query_ip_allowlist=query_ip_allowlist.txt
+query_ip_denylist=query_ip_denylist.txt
+dbplugin=ts3db_mariadb
+dbpluginparameter=/etc/teamspeak3-server/ts3db_mariadb.ini
+dbsqlpath=/opt/teamspeak3-server/sql/
+dbsqlcreatepath=create_mariadb/
+dbconnections=10
+logpath=/var/log/teamspeak3-server/
+logquerycommands=0
+dbclientkeepdays=30
+logappend=0
+query_skipbruteforcecheck=0
+query_buffer_mb=20
+http_proxy=
+license_accepted=1
+serverquerydocs_path=/opt/teamspeak3-server/serverquerydocs/
+query_ssh_ip=0.0.0.0, ::
+query_ssh_port=10022
+query_protocols=raw
+query_ssh_rsa_host_key=ssh_host_rsa_key
+query_timeout=300
diff --git a/media-sound/teamspeak-server/files/ts3server_postgresql.ini.sample b/media-sound/teamspeak-server/files/ts3server_postgresql.ini.sample
new file mode 100644
index 0000000..4bfa866
--- /dev/null
+++ b/media-sound/teamspeak-server/files/ts3server_postgresql.ini.sample
@@ -0,0 +1,29 @@
+machine_id=
+default_voice_port=9987
+voice_ip=
+licensepath=/opt/teamspeak3-server/
+filetransfer_port=30033
+filetransfer_ip=
+query_port=10011
+query_ip=0.0.0.0, ::
+query_ip_allowlist=query_ip_allowlist.txt
+query_ip_denylist=query_ip_denylist.txt
+dbplugin=ts3db_mariadb
+dbpluginparameter=/etc/teamspeak3-server/ts3db_postgresql.ini
+dbsqlpath=/opt/teamspeak3-server/sql/
+dbsqlcreatepath=create_postgresql/
+dbconnections=10
+logpath=/var/log/teamspeak3-server/
+logquerycommands=0
+dbclientkeepdays=30
+logappend=0
+query_skipbruteforcecheck=0
+query_buffer_mb=20
+http_proxy=
+license_accepted=1
+serverquerydocs_path=/opt/teamspeak3-server/serverquerydocs/
+query_ssh_ip=0.0.0.0, ::
+query_ssh_port=10022
+query_protocols=raw
+query_ssh_rsa_host_key=ssh_host_rsa_key
+query_timeout=300
diff --git a/media-sound/teamspeak-server/metadata.xml b/media-sound/teamspeak-server/metadata.xml
new file mode 100644
index 0000000..18a7d2a
--- /dev/null
+++ b/media-sound/teamspeak-server/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <longdescription>
+ TeamSpeak is a proprietary voice-over-Internet Protocol (VoIP) application
+ for audio communication between users on a chat channel, much like a telephone conference call.
+ Users typically use headphones with a microphone.
+ The server software allows users to connect and join chat channels.
+ </longdescription>
+ <use>
+ <flag name="tsdns">Install TeamSpeaks own DNS service for handling multiple virtual servers.</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-sound/teamspeak-server/teamspeak-server-3.13.6.ebuild b/media-sound/teamspeak-server/teamspeak-server-3.13.6.ebuild
new file mode 100644
index 0000000..bd2a13a
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.13.6.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd
+
+DESCRIPTION="A server software for hosting quality voice communication via the internet"
+HOMEPAGE="https://www.teamspeak.com/"
+SRC_URI="
+ amd64? ( https://files.teamspeak-services.com/releases/server/${PV}/teamspeak3-server_linux_amd64-${PV}.tar.bz2 )
+ x86? ( https://files.teamspeak-services.com/releases/server/${PV}/teamspeak3-server_linux_x86-${PV}.tar.bz2 )
+"
+
+LICENSE="Apache-2.0 Boost-1.0 BSD LGPL-2.1 LGPL-3 MIT teamspeak3"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="doc mysql postgres tsdns"
+
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ acct-group/teamspeak
+ acct-user/teamspeak
+ postgres? ( dev-db/postgresql )
+"
+
+QA_PREBUILT="
+ opt/teamspeak3-server/libmariadb.so.2
+ opt/teamspeak3-server/libts3db_mariadb.so
+ opt/teamspeak3-server/libts3db_postgresql.so
+ opt/teamspeak3-server/libts3db_sqlite3.so
+ opt/teamspeak3-server/libts3_ssh.so
+ opt/teamspeak3-server/ts3server
+ opt/teamspeak3-server/tsdnsserver
+"
+
+src_unpack() {
+ default
+
+ mv teamspeak3-server_linux_$(usex amd64 amd64 x86) "${P}" || die
+}
+
+src_install() {
+ diropts -o teamspeak -g teamspeak
+ keepdir /opt/teamspeak3-server /var/log/teamspeak3-server
+
+ diropts
+ keepdir /etc/teamspeak3-server
+
+ touch "${ED}"/opt/teamspeak3-server/.ts3server_license_accepted || die
+
+ exeinto /opt/teamspeak3-server
+ doexe ts3server
+
+ dodir /opt/bin
+ dosym ../teamspeak3-server/ts3server /opt/bin/ts3server
+
+ exeinto /opt/teamspeak3-server
+ doexe libts3db_sqlite3.so libts3_ssh.so
+
+ insinto /opt/teamspeak3-server/serverquerydocs
+ doins -r serverquerydocs/.
+
+ insinto /opt/teamspeak3-server/sql
+ doins sql/*.sql
+ doins -r sql/create_sqlite
+
+ insinto /etc/teamspeak3-server
+ newins "${FILESDIR}"/ts3server.ini-r2 ts3server.ini
+
+ dodoc CHANGELOG
+ docinto ts3server
+ dodoc doc/*.{md,txt}
+
+ newinitd "${FILESDIR}"/teamspeak.initd-r1 teamspeak3-server
+ systemd_newunit "${FILESDIR}"/teamspeak.service teamspeak3-server.service
+
+ newenvd - 99teamspeak3-server <<- EOF
+ CONFIG_PROTECT="/etc/teamspeak3-server/ts3server.ini /etc/teamspeak3-server/ts3server_mariadb.ini /etc/teamspeak3-server/tsdns_settings.ini"
+ EOF
+
+ if use doc; then
+ docinto html
+ dodoc -r doc/serverquery/.
+ fi
+
+ if use mysql; then
+ insinto /etc/teamspeak3-server
+ newins "${FILESDIR}"/ts3server_mariadb.ini.sample-r2 ts3server_mariadb.ini.sample
+ doins "${FILESDIR}"/ts3db_mariadb.ini.sample
+
+ exeinto /opt/teamspeak3-server
+ doexe libts3db_mariadb.so
+ doexe redist/libmariadb.so.2
+
+ insinto /opt/teamspeak3-server/sql
+ doins -r sql/create_mariadb
+ doins -r sql/updates_and_fixes
+ fi
+
+ if use postgres; then
+ insinto /etc/teamspeak3-server
+ doins "${FILESDIR}"/ts3server_postgresql.ini.sample
+ doins "${FILESDIR}"/ts3db_postgresql.ini.sample
+
+ exeinto /opt/teamspeak3-server
+ doexe libts3db_postgresql.so
+
+ insinto /opt/teamspeak3-server/sql
+ doins -r sql/create_postgresql
+ doins -r sql/updates_and_fixes
+ fi
+
+ if use tsdns; then
+ exeinto /opt/teamspeak3-server
+ doexe tsdns/tsdnsserver
+ dodir /opt/bin
+ dosym ../teamspeak3-server/tsdnsserver /opt/bin/tsdnsserver
+
+ insinto /etc/teamspeak3-server
+ doins tsdns/tsdns_settings.ini.sample
+
+ docinto tsdns
+ dodoc tsdns/{README,USAGE}
+ fi
+}
+
+pkg_postinst() {
+ elog "If you have a license,"
+ elog "put it in /opt/teamspeak3-server named as licensekey.dat."
+ elog "Please note, that the license must be writeable by the teamspeak user,"
+ elog "as it will be automatically updated every six months."
+}