commit:     a107d98f2a690cfd3770b78ebfaebef3e17bd879
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Wed Dec 19 08:23:54 2018 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Dec 19 09:34:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a107d98f

media-sound/teamspeak-server: bump to version 3.5.1

This server relases fixes some permission bypass exploits.

Closes: https://bugs.gentoo.org/673418
Closes: https://github.com/gentoo/gentoo/pull/10664

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 media-sound/teamspeak-server/Manifest              |   2 +
 .../teamspeak-server/teamspeak-server-3.5.1.ebuild | 118 +++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/media-sound/teamspeak-server/Manifest 
b/media-sound/teamspeak-server/Manifest
index 59b052f4daa..cadeced92e5 100644
--- a/media-sound/teamspeak-server/Manifest
+++ b/media-sound/teamspeak-server/Manifest
@@ -1,2 +1,4 @@
 DIST teamspeak3-server_linux_amd64-3.5.0.tar.bz2 8455959 BLAKE2B 
1569716e80187a5de0316b8305d55c0a3b094553145a494ed7e1d0599fb1ebb0c3585b9e59a11340e6f1e4537a0502ca11124203e814a39e9650a6a0ae5122c6
 SHA512 
692b88d1a2a43232fe52927b6c2a70039d814ff02bfc2f1bf69138d256a2242100145fe6d7133d5745d7f945f79e24a1f3f40caf1da3697ae766cab493af9b8d
+DIST teamspeak3-server_linux_amd64-3.5.1.tar.bz2 8455161 BLAKE2B 
3a85c00982567be779279877868b814101ec543f3f58046ca49b45e2d94a9d4aaab2b2de057302e5125dd3a2f5c831715a426f9d30a26e0164845d205cb5d842
 SHA512 
f4091aa594636dc6556204fc3a4b86d3e7a6fa4e3f889585326e025db7fc1944fa416be5378829abd60a44a71714ead5712e002825abe352f907cefaa91cea9f
 DIST teamspeak3-server_linux_x86-3.5.0.tar.bz2 8326197 BLAKE2B 
792e9429f1eb6ab9cb49f304fd8159927ca8b3d6a9fa4ceffc830d76712202b8a79fb8c5ded6cd4219a779bab7662c47fe43e2d589edf69334ee631c32f17213
 SHA512 
efae8d3315ccd7b36b7a031e65496bde37596e3bdd4f84a5836971d246996f92071b8dd48aab1053acc00f98a38a3a0a6bea399de0c4536194a6d1988b96cfd7
+DIST teamspeak3-server_linux_x86-3.5.1.tar.bz2 8326316 BLAKE2B 
7533d44b6bdb54edf22b932797890563f50ad520a2ebcb9305c328559dcddfc5ac41bbfe892014ddd9201018f2b715ec69b8c655585761883928833b6106ea6a
 SHA512 
03c9b3aecc962c968b954da440fea5186612c63d00ae8927af539e2e09e0b7a3b07289f3645933e69c742ad9a4ff57c5cb7617aa37d0ddfff765da4123a8c21c

diff --git a/media-sound/teamspeak-server/teamspeak-server-3.5.1.ebuild 
b/media-sound/teamspeak-server/teamspeak-server-3.5.1.ebuild
new file mode 100644
index 00000000000..dda16c3b435
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.5.1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit systemd user
+
+DESCRIPTION="A server software for hosting quality voice communication via the 
internet"
+HOMEPAGE="https://www.teamspeak.com/";
+SRC_URI="
+       amd64? ( 
http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux_amd64-${PV}.tar.bz2
 )
+       x86? ( 
http://ftp.4players.de/pub/hosted/ts3/releases/${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 tsdns"
+
+RESTRICT="mirror"
+
+QA_PREBUILT="
+       opt/teamspeak3-server/libmariadb.so.2
+       opt/teamspeak3-server/libts3db_mariadb.so
+       opt/teamspeak3-server/libts3db_sqlite3.so
+       opt/teamspeak3-server/libts3_ssh.so
+       opt/teamspeak3-server/ts3server
+       opt/teamspeak3-server/tsdnsserver
+"
+
+pkg_setup() {
+       enewgroup teamspeak
+       enewuser teamspeak -1 -1 /opt/teamspeak3-server teamspeak
+}
+
+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 "${D%/}"/opt/teamspeak3-server/.ts3server_license_accepted || die
+
+       exeinto /opt/teamspeak3-server
+       doexe ts3server
+       doexe "${FILESDIR}"/ts3server-bin
+       dodir /opt/bin
+       dosym ../teamspeak3-server/ts3server-bin /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-r1 ts3server.ini
+
+       dodoc CHANGELOG
+       docinto ts3server
+       dodoc doc/*.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-r1 
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 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 Non-Profit License (NPL),"
+       elog "place it in /opt/teamspeak3-server as licensekey.dat."
+       elog "Please note, that the license must be writeable by the teamspeak 
user."
+}

Reply via email to