summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2019-03-30 12:19:20 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-04-09 09:30:32 +0200
commit5b782d7364bc4a79e1cabc020f0d241d47f214c1 (patch)
treec133df6ba13068d85d7ba7614583f6a85b395d5e /media-sound
parentdev-db/postgresql: fix typo in comment. (diff)
downloadgentoo-5b782d7364bc4a79e1cabc020f0d241d47f214c1.tar.gz
gentoo-5b782d7364bc4a79e1cabc020f0d241d47f214c1.tar.bz2
gentoo-5b782d7364bc4a79e1cabc020f0d241d47f214c1.zip
media-sound/teamspeak-server: bump to version 3.7.1.
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/11541 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/teamspeak-server/Manifest2
-rw-r--r--media-sound/teamspeak-server/teamspeak-server-3.7.1.ebuild118
2 files changed, 120 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server/Manifest b/media-sound/teamspeak-server/Manifest
index 8b184c89fea..0ce7193b1a1 100644
--- a/media-sound/teamspeak-server/Manifest
+++ b/media-sound/teamspeak-server/Manifest
@@ -1,2 +1,4 @@
DIST teamspeak3-server_linux_amd64-3.7.0.tar.bz2 8631710 BLAKE2B c18acc1a0755ba86aaafdd0d1b50f5f56085c5ab2ad12d3a701de2d90ff2bfb741cb81efa66843e282fb934d718f8d11d8bf8ee8fda452314a6969b93f4cf3e8 SHA512 74b6ab1685aaf5b5065a346129eb329b87aedd36495442d17c2f6bacaeef2e484e7b811b279a26a8993054026aeb81a9c1907fa8b580ad87d8ad630fe66be3de
+DIST teamspeak3-server_linux_amd64-3.7.1.tar.bz2 8658067 BLAKE2B 83d91ca9c77a53fde15efced19229bb94c140566b73f209ef340af9208a3a47271295682ab435bf325dc725cf1475614a85049b625c67c7e5c387b6a44337747 SHA512 8d1e9b90a83beb1f05f8f9ca8d79a7aed27880b41d34de0def5184c902e3d8a3bed4e1542841bd3ebcc179b90f6d335c00802b700f8caf8cd05e6d7b6e10563b
DIST teamspeak3-server_linux_x86-3.7.0.tar.bz2 8491441 BLAKE2B 62691579e248bbda23041887beb7395df37dafd0417f291928eb000b2b43ed755704ac8e6c340d9dab9abaa1a9b7f4cbd1b299010296b3d76d8a742890810a56 SHA512 53d420c82ed78d5d1998e278080ca6a204a5191e4f3f2001a3fc67c69a0f6ff5f2b2f32667632ba87d9ebefd3996618a3845467879f27cfd63284dd5eb940ddf
+DIST teamspeak3-server_linux_x86-3.7.1.tar.bz2 8506454 BLAKE2B 19052edf1db9a380ae7d9a9cf8464d058f5486adb80060b144feb7a832ccb403b3233ed21a998ba432c76ad3ca2f7969aa6e10a5e8c111d590e5750071f51a28 SHA512 1b01941a1f28a02d01b8685971f6c748161343675739ea46b8efdfc6fd87834478f23057d87fb394c27819e40960577e1eac7a482ad76d90ca2a6535196c9589
diff --git a/media-sound/teamspeak-server/teamspeak-server-3.7.1.ebuild b/media-sound/teamspeak-server/teamspeak-server-3.7.1.ebuild
new file mode 100644
index 00000000000..019e1172656
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.7.1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2019 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
+
+ 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-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 license,"
+ elog "place it in /opt/teamspeak3-server as licensekey.dat."
+ elog "Please note, that the license must be writeable by the teamspeak user."
+}