diff options
-rw-r--r-- | media-sound/teamspeak-server/Manifest | 2 | ||||
-rw-r--r-- | media-sound/teamspeak-server/teamspeak-server-3.6.1.ebuild | 118 |
2 files changed, 120 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server/Manifest b/media-sound/teamspeak-server/Manifest index 008311cc571e..b0ffc496e39e 100644 --- a/media-sound/teamspeak-server/Manifest +++ b/media-sound/teamspeak-server/Manifest @@ -1,2 +1,4 @@ DIST teamspeak3-server_linux_amd64-3.5.1.tar.bz2 8455161 BLAKE2B 3a85c00982567be779279877868b814101ec543f3f58046ca49b45e2d94a9d4aaab2b2de057302e5125dd3a2f5c831715a426f9d30a26e0164845d205cb5d842 SHA512 f4091aa594636dc6556204fc3a4b86d3e7a6fa4e3f889585326e025db7fc1944fa416be5378829abd60a44a71714ead5712e002825abe352f907cefaa91cea9f +DIST teamspeak3-server_linux_amd64-3.6.1.tar.bz2 8523183 BLAKE2B 1b6bd2850547ae6f86f348c988660ceab3786c16ff920e433b2e942ab2b995f8e2b9814213bddf012762cb540e2c10cc12641408e7528f9e424984f84e900104 SHA512 185559df9129b61322b7b0fda4c021e0bbfad0eecacd78c45e9467a29cd2eb5a822bed214312255f641869b4218c93931b6145fb17acacda7eab23bca5a9a8fc DIST teamspeak3-server_linux_x86-3.5.1.tar.bz2 8326316 BLAKE2B 7533d44b6bdb54edf22b932797890563f50ad520a2ebcb9305c328559dcddfc5ac41bbfe892014ddd9201018f2b715ec69b8c655585761883928833b6106ea6a SHA512 03c9b3aecc962c968b954da440fea5186612c63d00ae8927af539e2e09e0b7a3b07289f3645933e69c742ad9a4ff57c5cb7617aa37d0ddfff765da4123a8c21c +DIST teamspeak3-server_linux_x86-3.6.1.tar.bz2 8391111 BLAKE2B ad11dfe38b99db314ba73799a94fd047cf07a9f33990a0bcca99490af8cb1a4c054d3722c3bde634545f1e922d67f1d6bba57e03029f57d0999d1164f99240c4 SHA512 ca693e9bb2d6b4f994ac0934621ec9050e5b985fd34c534677754cb37a4586aa2e6ec78dea440bd919f8dce18acd238befc54d6aa73829eb94f2536ff3050ef7 diff --git a/media-sound/teamspeak-server/teamspeak-server-3.6.1.ebuild b/media-sound/teamspeak-server/teamspeak-server-3.6.1.ebuild new file mode 100644 index 000000000000..d944f47933ef --- /dev/null +++ b/media-sound/teamspeak-server/teamspeak-server-3.6.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 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." +} |