commit:     15e5d53d338abcc83d16ebdf31cd6b30d6ff6ffb
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Mon Oct 29 12:41:16 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  3 09:46:54 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15e5d53d

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

Also added thirdparty licenses and bumped to EAPI=7.

Closes: https://bugs.gentoo.org/668536
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

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

diff --git a/media-sound/teamspeak-server/Manifest 
b/media-sound/teamspeak-server/Manifest
index a0ec4fbb75f..826705c1f8d 100644
--- a/media-sound/teamspeak-server/Manifest
+++ b/media-sound/teamspeak-server/Manifest
@@ -1,2 +1,4 @@
 DIST teamspeak3-server_linux_amd64-3.4.0.tar.bz2 8426025 BLAKE2B 
767df96757581dd1c5139e6831c89dbb1f0a76232c5b286b88406fb2a19614c9ae29251030c00f534742c8aba0510a45f2b44e453a05a6558e82a1ac8dcd718b
 SHA512 
568646ae4a2a3b3c8cfdc91580a073ed62985f1b6510533b0e8c8627ea4dc8cf3ff8717a1cc8323fc60dd5c399c972da505c3c84300262538a5f3e945087d832
+DIST teamspeak3-server_linux_amd64-3.5.0.tar.bz2 8455959 BLAKE2B 
1569716e80187a5de0316b8305d55c0a3b094553145a494ed7e1d0599fb1ebb0c3585b9e59a11340e6f1e4537a0502ca11124203e814a39e9650a6a0ae5122c6
 SHA512 
692b88d1a2a43232fe52927b6c2a70039d814ff02bfc2f1bf69138d256a2242100145fe6d7133d5745d7f945f79e24a1f3f40caf1da3697ae766cab493af9b8d
 DIST teamspeak3-server_linux_x86-3.4.0.tar.bz2 8299226 BLAKE2B 
fc9149171d3463cf443f35e5fff672c4c6a3260378efb497e2fa424dcc685bd1f33907f63f0d08b755cff8151ac672b58db33fb7a0bfa74ba723615d969aeb0d
 SHA512 
76420b495b61287e9174fa1edc8d85043ac7d79665ca457b4b377fdcb2b9231fac1f10d7cdde39df252b0e3dddba998b6191c999b402cb37192fd6307d494ed1
+DIST teamspeak3-server_linux_x86-3.5.0.tar.bz2 8326197 BLAKE2B 
792e9429f1eb6ab9cb49f304fd8159927ca8b3d6a9fa4ceffc830d76712202b8a79fb8c5ded6cd4219a779bab7662c47fe43e2d589edf69334ee631c32f17213
 SHA512 
efae8d3315ccd7b36b7a031e65496bde37596e3bdd4f84a5836971d246996f92071b8dd48aab1053acc00f98a38a3a0a6bea399de0c4536194a6d1988b96cfd7

diff --git a/media-sound/teamspeak-server/teamspeak-server-3.5.0.ebuild 
b/media-sound/teamspeak-server/teamspeak-server-3.5.0.ebuild
new file mode 100644
index 00000000000..dda16c3b435
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.5.0.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