diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/teamspeak-server-bin |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/teamspeak-server-bin')
10 files changed, 304 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server-bin/Manifest b/media-sound/teamspeak-server-bin/Manifest new file mode 100644 index 000000000000..2b885bae4683 --- /dev/null +++ b/media-sound/teamspeak-server-bin/Manifest @@ -0,0 +1,15 @@ +AUX server.conf 337 SHA256 5520d4d1a0be0fa416e1d4b15f69980cba75c082bf7ae94cefa695af6eb56771 SHA512 870acb2cc74b3a48fece9502cc09dcb8a63db8671721c642f1648a305b08b92cccdd883b08e33e28165bf52fa59b5b745f18401ca115deef8fd9f3b190bfc750 WHIRLPOOL e1bd3aedf729cc5d006cfa43aa41e48e9cf85937f03683352ceab5fcb15913b195c4cf7283b467b7e635cd4df89d72afb179d5e5a004cfeaae0c3be7479916e3 +AUX systemd/teamspeak3-r1.service 505 SHA256 8215b5423352f7d7a115fdbd09184acb009140dc4a41e6c1ef7983e7dca6cac0 SHA512 28b2b0b1d7fe0b0ccb185446711e98ddb464360061597a90283513f122076fecac47198bc08c4c12e920f008472a4e8f6db7d79a27c711202a7167f05bed78ad WHIRLPOOL cfd2179ecc85e4106ff3529ef529d46196de183dec1bf6ee7a63a5c5c6bb4afd35bccbdac1cdc240fb4c0da75e004d27b0f740d5b6e336fca12615199cdfcf1c +AUX systemd/teamspeak3.conf 133 SHA256 a3851323891a304e6fc5c53740c0e239f167a7c9251cfc8c7e8a4e1b1ac8a1d8 SHA512 49dab025ab37bb29e14a14fb070568c5710fe257a35fe6b887aa404847fc828e9ffecad7c5d10e987128934c433c3b464b8da0e4891ba3b48868b73abb4b9a4c WHIRLPOOL b7980faa9d5c0b83fa1d72eeb14745c050b01bec70a8cd0974157ce02eef06faafb4f7b35a0c4cff496b102817a9d8245237808557472f9452108f46ac9362ab +AUX teamspeak-server-bin-init-r1 1025 SHA256 daeed2007cfcd365abc875b757405fc54dd864cf9c53ceb04f37cc745b32659e SHA512 8aed2b27a658ad62389b445cf8ce4b6215ca106d58ebad378a0c403b4a2b9c41f2b0f3129ba020289b878bb96dc65b50974fd30f56e90435fc8a0903f1557f48 WHIRLPOOL 98526ed589575fb59e24f6d18cf0b80926a374acf7bd7df24c1184bcdfe8249985a9b72dfffc83b5383ec0949bf4763e024ad5fe69f243cb6c9a1b3848941c57 +AUX ts3db_mariadb.ini 98 SHA256 5b4cde4ed06bf831d6d3ed4bdffa2fd92fd47536a3d0f94352d01df91dcb7c76 SHA512 d2d1ef64c90638fde3cc587d351987b16e96d8cfc83672dee43c0294ab297b83106e682d834008f0213b67b975dadcd4f77c63332c39d155a4125a28206ba7d4 WHIRLPOOL fe8b108a563afafa57aa463b638353277f756ab3bfe858d742ab172cd0ea75d361a07f34f0d65e982e76022d7ce25aabe6c59c04b22958a66969b3c0fa68a7bd +AUX ts3server 267 SHA256 fd5fb5e2fa508b84b85d84794bc1d5436828fc4cd0729c6cf70c3739e999d0bb SHA512 632297afee021b1603efff9c4070ddeaa10531cab4faa21bc61e259e9109f4d9bc338347da2a435492f509628baf7a8876b3bc7c5a91cb5f81f0c97f8d634c57 WHIRLPOOL 876f82672c0360f65ce87273273952d0f27df4bc37ab030cd575e2d176236fd7790d76879227de7a5e2df495996839df938fc91ef61611641bc4a9fc48d0d015 +DIST teamspeak3-server_linux_amd64-3.0.13.6.tar.bz2 6492488 SHA256 19ccd8db5427758d972a864b70d4a1263ebb9628fcc42c3de75ba87de105d179 SHA512 95271e5a44c7a14b8fbe134b855973c1af53ac76e6ba01089116b1f63c03bae25f5abfd176f9e26207aa4da8501d646298128078ab5b475458a7ccaba2a48e9c WHIRLPOOL 348356570a45d00d4e98ebfa01c8acc3ea7f3bfcf5b74a4b459999715d836b0feef0eefff50534fca2f034505814187fd8b3037b22452aff159e940ed184e871 +DIST teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2 6916065 SHA256 460c771bf58c9a49b4be2c677652f21896b98a021d7fff286e59679b3f987a59 SHA512 d8985f5850602660a6c037c1768a97c79b5842640d618ad00d242035a12820b52ba959545f3e668eb3d6079b1a228ff648c569e7d1fc64be6743ee77995ab0be WHIRLPOOL a9863eb89200b7de89775112ccf8d47f5dad08b6c06f39cbac1d09810c45dbeebd08265982e9e2b0ceea6bc9eb616b86e6cc632533a41591e391b7338c2672a2 +DIST teamspeak3-server_linux_x86-3.0.13.6.tar.bz2 6367104 SHA256 2f70b3e70a3d9bf86106fab67a938922c8d27fec24e66e229913f78a0791b967 SHA512 a35e0fffe320206f2ca19153bd46a910bd1690541c83ec3c784fe1f4aaf8dbe430556990f6ebe0efbe71e52d3887b725da4e659db9d1e3c96fd6fd46e6dcd40d WHIRLPOOL 16d35b684f2f3af540464d80158778c62e19bd3c6ae29c791cfec4e509b5d38118b6a34ef113d0f73999adbd2d0cc35c043475866c122d243aa950fb59b99bd7 +DIST teamspeak3-server_linux_x86-3.0.13.8.tar.bz2 6772664 SHA256 c1be39df7ee136c87e0ea1eff4e3aa84074e2d141c66d23f9a66eb5afa2b1876 SHA512 7ef5d5d0fa2a1244011c2a68662481e4859aa1660e967b203a508497a4fd3c54db44a9f33116ed4932745942df4b5e4c646658346f288ce6191e3e5629d9638f WHIRLPOOL 6246446439b676f69e56168df445c6f7b6956212e0330e4b541a84c1a2e3466273f60b26298bf7c41b0f8157d1b70c165a2e5a9feb96b3d9651463073adbca46 +EBUILD teamspeak-server-bin-3.0.13.6.ebuild 2589 SHA256 056d80b49070921b6417aea37a85ba6cabba3c47a1d0018c3d23c920134ac732 SHA512 52c6c4cd6eab65c1354887024e45875e975effbe003a60b49c21b101df7abc90ada71984f8000af4221b897a71734fb8274a392527e555245d715c6d972224f0 WHIRLPOOL 8660a482c615629d316b8e8e509e11396c992d4cb5ac8d551b9abc0b04bdffaa27c1add1776a5f895ed761dd801a634cb3bb085e2b22f26d068b2db741689d0f +EBUILD teamspeak-server-bin-3.0.13.8.ebuild 2589 SHA256 101b0b4f1059d845bf64fa246fc5688e26a402aa007525b88fb599cf5148d5dd SHA512 26688cca026f2d9aa6c5bad4bb540b4f0bf85ca267c3a67e6d702d9e73a8d227b86c68a6bdda966ca4aea9025c99ad09bbfd280bd2e6dc866a9ee3cd0912f35c WHIRLPOOL f331532d126f3f2e50f44658ec0837c0e4fe068e398ba12ce4b02d68404280d255b32c18dc6e0a7be02f496400f45c123cb3d66d5646520466a736b662029c03 +MISC ChangeLog 4788 SHA256 41c1fb4ecc56232a227aaa68114cbac9e3ed223fa7435806fcdc5d2eb89ec7a7 SHA512 7e80bc6b4e5090c3987f011bc334d6ad1562d9dbe68e8b3cfb787db281a05d02f18100cab7596907b79e53adee148d71892c724c906814e05641aba8f87cf5eb WHIRLPOOL 717c9e4062e51abed4791a295b4938ef4226c091c3b2de40b3afdf8218dbf2740c5a59e80fd86e1efd4fa5618765586b62dc5610bcd7afb34fbb29dc752a94b0 +MISC ChangeLog-2015 9076 SHA256 3b38900a1320290aa6dfc701416a4ae16de33dc9c1db92a6cf680deccbca26a9 SHA512 44a845a8000e9c9980e6e6065e5111514265778f23da7ed950b1cb543a998a9d862b17ff37fbd8aab8712a707182bae71181f4dd12909a3160365eb836a409ec WHIRLPOOL c8f0d26e700847c00b2e7eeda9983482f43fc5bad4d08247c0b2369ddc211e5599c41adc5068d045d484713b8932154d90a3f9bfa44bca55c6c93513e723c158 +MISC metadata.xml 589 SHA256 f10e5af392c6f55d29855b7213d12c290f260c1eabc63bdd3e1469ffa3197777 SHA512 ab4a822863d5003cd578f37c0c3d5d40df49bdbdfb7384353ca9090e79279fc0f941438528081d626aedcd1f0357000ef615d49e674a1bae6d241db8ee1aedf6 WHIRLPOOL 33744c40b8d206724bde347792a683c745cca3596a0b72f5fb7af973dcdbf4b5fbea70387ac987943e7a687b40e9052d1c1183596629df41c83076449e861f96 diff --git a/media-sound/teamspeak-server-bin/files/server.conf b/media-sound/teamspeak-server-bin/files/server.conf new file mode 100644 index 000000000000..0fd2db66c508 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/server.conf @@ -0,0 +1,14 @@ +machine_id= +default_voice_port=9987 +voice_ip=0.0.0.0 +licensepath=/opt/teamspeak3-server/ +filetransfer_port=30033 +filetransfer_ip=0.0.0.0 +query_port=10011 +query_ip=0.0.0.0 +dbplugin=ts3db_sqlite3 +dbpluginparameter= +dbsqlpath=/opt/teamspeak3-server/sql/ +dbsqlcreatepath=create_sqlite/ +logpath=/var/log/teamspeak3-server/ +logquerycommands=0 diff --git a/media-sound/teamspeak-server-bin/files/systemd/teamspeak3-r1.service b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3-r1.service new file mode 100644 index 000000000000..435325bb89f7 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3-r1.service @@ -0,0 +1,21 @@ +[Unit] +Description=TeamSpeak 3 Server +After=network.target + +[Service] +Type=simple +Environment=LD_LIBRARY_PATH=/opt/teamspeak3-server +WorkingDirectory=/opt/teamspeak3-server +ExecStartPre=/bin/rm -f /dev/shm/7gbhujb54g8z9hu43jre8 +ExecStart=/opt/teamspeak3-server/sbin/ts3server-bin inifile=/etc/teamspeak3-server/server.conf +ExecStop=/bin/kill -15 $MAINPID +StandardOutput=syslog +StandardError=syslog +User=teamspeak3 +Group=teamspeak3 +Restart=always + +[Install] +WantedBy=multi-user.target + +# vim:syntax=dosini diff --git a/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf new file mode 100644 index 000000000000..c83afe3137cd --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.conf @@ -0,0 +1,4 @@ +# systemd tmpfile settings for teamspeak3-server +# See tmpfiles.d(5) for details + +d /var/run/teamspeak3 0755 teamspeak3 teamspeak3 - diff --git a/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-init-r1 b/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-init-r1 new file mode 100644 index 000000000000..44b7b7c6f946 --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/teamspeak-server-bin-init-r1 @@ -0,0 +1,42 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="TeamSpeak Server" +command="/usr/sbin/ts3server" +pidfile="/run/teamspeak3-server/server.pid" +command_background="true" + +depend() { + need net + use mysql +} + +start_pre() { + # ensure, that the TS3-server finds all custom supplied shared objects on startup. + LD_LIBRARY_PATH="/opt/teamspeak3-server:$LD_LIBRARY_PATH" + export LD_LIBRARY_PATH + + # temporay fix for EPERM bug (we still leave it here to make sure it is *really* not there) + rm -f /dev/shm/7gbhujb54g8z9hu43jre8 + + checkpath -d --owner teamspeak3:teamspeak3 --mode 0700 /run/teamspeak3-server +} + +start() { + ebegin "Starting ${name}" + + start-stop-daemon --start --quiet --background \ + --pidfile "/run/teamspeak3-server/server.pid" --make-pidfile \ + --user "teamspeak3" --chdir "/opt/teamspeak3-server" \ + --exec "/usr/sbin/ts3server" -- \ + inifile="/etc/teamspeak3-server/server.conf" + + eend $? +} + +restart() { + stop + sleep 3 + start +} diff --git a/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini b/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini new file mode 100644 index 000000000000..7cdc6d6075ab --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/ts3db_mariadb.ini @@ -0,0 +1,7 @@ +[config] +host=localhost +port=3306 +username=teamspeak +password=teamspeak +database=teamspeak +socket=
\ No newline at end of file diff --git a/media-sound/teamspeak-server-bin/files/ts3server b/media-sound/teamspeak-server-bin/files/ts3server new file mode 100644 index 000000000000..261b47171b3d --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/ts3server @@ -0,0 +1,10 @@ +#! /bin/bash + +BASEDIR="/opt/teamspeak3-server" + +export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" + +# work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH +cd "${BASEDIR}" + +exec "${BASEDIR}/sbin/ts3server-bin" $* diff --git a/media-sound/teamspeak-server-bin/metadata.xml b/media-sound/teamspeak-server-bin/metadata.xml new file mode 100644 index 000000000000..d7b0d764fc26 --- /dev/null +++ b/media-sound/teamspeak-server-bin/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + <description>Proxy maintainer, assign bugs to him</description> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription>TeamSpeak Server (Voice Communication Software)</longdescription> + <use> + <flag name="tsdns">Make use of TeamSpeak DNS.</flag> + </use> +</pkgmetadata> diff --git a/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.6.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.6.ebuild new file mode 100644 index 000000000000..8f9f1fcb9fb1 --- /dev/null +++ b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.6.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit multilib systemd user + +DESCRIPTION="Crystal Clear Cross-Platform Voice Communication Server" +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 )" + +SLOT="0" +LICENSE="teamspeak3 GPL-2" +IUSE="doc tsdns" +KEYWORDS="~amd64 ~x86" + +RESTRICT="installsources fetch mirror strip" + +S="${WORKDIR}/teamspeak3-server_linux_${ARCH}" + +QA_PREBUILT="opt/*" + +pkg_nofetch() { + elog "Please download ${A}" + elog "from ${HOMEPAGE}downloads and place this" + elog "file in ${DISTDIR}" +} + +pkg_setup() { + enewuser teamspeak3 +} + +src_install() { + # Install wrapper + dosbin "${FILESDIR}"/ts3server + + # Install TeamSpeak 3 server into /opt/teamspeak3-server. + local opt_dir="/opt/teamspeak3-server" + into ${opt_dir} + insinto ${opt_dir} + exeinto ${opt_dir} + newsbin ts3server ts3server-bin + doexe *.sh + doins *.so + doins -r sql + + # Install documentation and tsdns. + dodoc -r CHANGELOG doc/*.txt + use doc && dodoc -r serverquerydocs doc/serverquery && \ + docompress -x /usr/share/doc/${PF}/serverquerydocs && \ + docompress -x /usr/share/doc/${PF}/serverquery && \ + dosym ../../../usr/share/doc/${PF}/serverquery ${opt_dir}/doc/serverquery && \ + dosym ../../usr/share/doc/${PF}/serverquerydocs ${opt_dir}/serverquerydocs + + if use tsdns; then + newsbin tsdns/tsdnsserver tsdnsserver + newdoc tsdns/README README.tsdns + newdoc tsdns/USAGE USAGE.tsdns + dodoc tsdns/tsdns_settings.ini.sample + fi + + # Install the runtime FS layout. + insinto /etc/teamspeak3-server + doins "${FILESDIR}"/server.conf "${FILESDIR}"/ts3db_mariadb.ini + keepdir /{etc,var/{lib,log}}/teamspeak3-server + + # Install the init script and systemd unit. + newinitd "${FILESDIR}"/${PN}-init-r1 teamspeak3-server + systemd_newunit "${FILESDIR}"/systemd/teamspeak3-r1.service teamspeak3-server.service + systemd_newtmpfilesd "${FILESDIR}"/systemd/teamspeak3.conf teamspeak3-server.conf + + # Fix up permissions. + fowners teamspeak3 /{etc,var/{lib,log}}/teamspeak3-server + fowners teamspeak3 ${opt_dir} + + fperms 700 /{etc,var/{lib,log}}/teamspeak3-server + fperms 755 ${opt_dir} +} + +pkg_postinst() { + einfo "Starting with version 3.0.13, there are two important changes:" + einfo "- IPv6 is now supported." + einfo "- Binding to any address (0.0.0.0 / 0::0)," + einfo " instead of just the default ip of the network interface." +} diff --git a/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.8.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.8.ebuild new file mode 100644 index 000000000000..60875a3cb837 --- /dev/null +++ b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.13.8.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit multilib systemd user + +DESCRIPTION="Crystal Clear Cross-Platform Voice Communication Server" +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 )" + +SLOT="0" +LICENSE="teamspeak3 GPL-2" +IUSE="doc tsdns" +KEYWORDS="~amd64 ~x86" + +RESTRICT="installsources fetch mirror strip" + +S="${WORKDIR}/teamspeak3-server_linux_${ARCH}" + +QA_PREBUILT="opt/*" + +pkg_nofetch() { + elog "Please download ${A}" + elog "from ${HOMEPAGE}downloads and place this" + elog "file in ${DISTDIR}" +} + +pkg_setup() { + enewuser teamspeak3 +} + +src_install() { + # Install wrapper + dosbin "${FILESDIR}"/ts3server + + # Install TeamSpeak 3 server into /opt/teamspeak3-server. + local opt_dir="/opt/teamspeak3-server" + into ${opt_dir} + insinto ${opt_dir} + exeinto ${opt_dir} + newsbin ts3server ts3server-bin + doexe *.sh + doins *.so + doins -r sql + + # Install documentation and tsdns. + dodoc -r CHANGELOG doc/*.txt + use doc && dodoc -r serverquerydocs doc/serverquery && \ + docompress -x /usr/share/doc/${PF}/serverquerydocs && \ + docompress -x /usr/share/doc/${PF}/serverquery && \ + dosym ../../../usr/share/doc/${PF}/serverquery ${opt_dir}/doc/serverquery && \ + dosym ../../usr/share/doc/${PF}/serverquerydocs ${opt_dir}/serverquerydocs + + if use tsdns; then + newsbin tsdns/tsdnsserver tsdnsserver + newdoc tsdns/README README.tsdns + newdoc tsdns/USAGE USAGE.tsdns + dodoc tsdns/tsdns_settings.ini.sample + fi + + # Install the runtime FS layout. + insinto /etc/teamspeak3-server + doins "${FILESDIR}"/server.conf "${FILESDIR}"/ts3db_mariadb.ini + keepdir /{etc,var/{lib,log}}/teamspeak3-server + + # Install the init script and systemd unit. + newinitd "${FILESDIR}"/${PN}-init-r1 teamspeak3-server + systemd_newunit "${FILESDIR}"/systemd/teamspeak3-r1.service teamspeak3-server.service + systemd_newtmpfilesd "${FILESDIR}"/systemd/teamspeak3.conf teamspeak3-server.conf + + # Fix up permissions. + fowners teamspeak3 /{etc,var/{lib,log}}/teamspeak3-server + fowners teamspeak3 ${opt_dir} + + fperms 700 /{etc,var/{lib,log}}/teamspeak3-server + fperms 755 ${opt_dir} +} + +pkg_postinst() { + einfo "Starting with version 3.0.13, there are two important changes:" + einfo "- IPv6 is now supported." + einfo "- Binding to any address (0.0.0.0 / 0::0)," + einfo " instead of just the default ip of the network interface." +} |