summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2019-11-19 13:09:17 +0100
committerJoonas Niilola <juippis@gentoo.org>2019-11-20 08:03:24 +0200
commit427028173c9f3d2fb3f7c35dd9e275fdb47accee (patch)
tree8c98e93f1ed6b48f6018e39848cfe02150589d04 /media-sound/teamspeak-server
parentmedia-gfx/iscan: Removed ${ED} for PMS-compliant package managers. (diff)
downloadgentoo-427028173c9f3d2fb3f7c35dd9e275fdb47accee.tar.gz
gentoo-427028173c9f3d2fb3f7c35dd9e275fdb47accee.tar.bz2
gentoo-427028173c9f3d2fb3f7c35dd9e275fdb47accee.zip
media-sound/teamspeak-server: bump to version 3.10.1
Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-sound/teamspeak-server')
-rw-r--r--media-sound/teamspeak-server/Manifest2
-rw-r--r--media-sound/teamspeak-server/teamspeak-server-3.10.1.ebuild119
2 files changed, 121 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server/Manifest b/media-sound/teamspeak-server/Manifest
index f726f613db95..7946a9f08b40 100644
--- a/media-sound/teamspeak-server/Manifest
+++ b/media-sound/teamspeak-server/Manifest
@@ -1,2 +1,4 @@
DIST teamspeak3-server_linux_amd64-3.10.0.tar.bz2 9242882 BLAKE2B 0315c438305827a4bddd73f07a4f813e2268ec5eefa6f89e45de43afe61b4d8c0e17e0d45317b485472aae5a60ce9afcd393ecd31a9d43304c466eff7db918d6 SHA512 d847fbe18ab2676bcd299773f4070a6e58ba86784f18c9cf9e843cd28adbcdbebff69c9bdc8a5f46f714913f657d8fd603fe1b8c90a938d9e49b06ed0ce0bacb
+DIST teamspeak3-server_linux_amd64-3.10.1.tar.bz2 9240325 BLAKE2B aa9d92d77adf6ac89a768a9b53bb2ce4c2adf698ebe256c575e2436d1694a73a11a7bc32e2d1225ca44373e0162cedba3141fa3a335ce97338f935377181bd10 SHA512 b77226dc2108612d5990905f8c27174dab6cdce5e5a5e042f20acb3ed6e39377a84961d94224ae333f9ff523f7b746ad70fa5728d1d58d111c98148360cd8be1
DIST teamspeak3-server_linux_x86-3.10.0.tar.bz2 9047531 BLAKE2B 8fa0eba5b9dd4a5274b8b4b626c85326d1d6a8b9d00c17d9b26ac558dd4bfc233e09863bea01a590a0273e5d20c7b1513f0cc80df82366f9c327cf85173e553c SHA512 42baa7ef4d1451c9e4533ef186b0b48a92619a673bf11c4876b0caa908e7e8846fc7307eb01b220a6d12f62273ae7a3c3b5c90f3cf891e490554d254fd552c5e
+DIST teamspeak3-server_linux_x86-3.10.1.tar.bz2 9048480 BLAKE2B 6155f4f372375497783fe3c4761dc1e5d4a539aff583169c46bdfbae4b2d14f6e0b0664f323947ac317e7cc44b393b89c52bc6428f2e52bdaafa78f640b0bb76 SHA512 535203052a70c3fa3091f6e8d85f1e13e20ab4aec56daf0258aea5a16d445541949c5e1c932f9ff158642265a98bac67bf5aa8b277d0ad79044c31d69839a9cc
diff --git a/media-sound/teamspeak-server/teamspeak-server-3.10.1.ebuild b/media-sound/teamspeak-server/teamspeak-server-3.10.1.ebuild
new file mode 100644
index 000000000000..034c317b9ddb
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.10.1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2019 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 tsdns"
+
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ acct-group/teamspeak
+ acct-user/teamspeak
+"
+
+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
+"
+
+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-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,"
+ elog "as it will be automatically updated every six months."
+}