summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.13.7.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server/Manifest b/media-sound/teamspeak-server/Manifest
index 4855c0956d3e..7bf741f2869d 100644
--- a/media-sound/teamspeak-server/Manifest
+++ b/media-sound/teamspeak-server/Manifest
@@ -1,2 +1,4 @@
DIST teamspeak3-server_linux_amd64-3.13.6.tar.bz2 9948972 BLAKE2B 397e96751e6688b5579ff7828e4998e3b26183b0b10980e89748d51207428059e7d8cfa6f2f6fb961b77f735f61e1ba00ac13a077c76b5d22a7b2abb28d67e48 SHA512 dc007cdc924fd284da4a206cf615816b53c2f03ccb2573a29aa2bce6874e09ce5764a3953f8e84de8a3cc02aee306b1505d8c7edf8d48713bbf5f172c3be3422
+DIST teamspeak3-server_linux_amd64-3.13.7.tar.bz2 9968877 BLAKE2B 7c2f200b1e3a3184005aab213acc681326e16a776f529dbdac900f5b9a6ee9d91883d1aabfe4526e52e9a706a4856366291f061efc6eff581216d7450746322d SHA512 cd026e0c51d8269bd6965f9f274ff6478d4e179d23ee1b00f93a887997985b97afcb7eda05e34150d6fe0610f2715a61989a7f3ca05994067e71b9d3171e2962
DIST teamspeak3-server_linux_x86-3.13.6.tar.bz2 9785491 BLAKE2B f0d196a72e9a4283006c4dfd9a1d86e96a3b435d8bf14dfca178ea0240e94b88bcf3b9e20b6c99638e04019065fa79d28ac2d9ad452e306c4c27966e32464c69 SHA512 ef124964590c106bacd3bc98847a5e8f64fbbf69ccb2a216f9af6548f5f2d200c0bd307d283f48cb08c254fddb92fe03f6cff2c3c87e7ca593edf3023b053bee
+DIST teamspeak3-server_linux_x86-3.13.7.tar.bz2 9820644 BLAKE2B 37789bfe4c544b8eeb28a34d1fae933e2d2a11b23e85a6de66ac4c9772a061860803a3a767227d787efd90f7aa031b3ca77b229acca554aebd69f1f78b28128c SHA512 04278359a03cb9f8bc6db48b54976020da6a44629f17b503378bf0ffe554da838193ba590ab895e97c96e026aa87d96a3e167a009710adc4b9b03193d496201d
diff --git a/media-sound/teamspeak-server/teamspeak-server-3.13.7.ebuild b/media-sound/teamspeak-server/teamspeak-server-3.13.7.ebuild
new file mode 100644
index 000000000000..9ecdd00b61b5
--- /dev/null
+++ b/media-sound/teamspeak-server/teamspeak-server-3.13.7.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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."
+}