# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eapi7-ver systemd user MY_PV="$(ver_cut 1-4)-Beta-$(ver_cut 5)" DESCRIPTION="A server software for hosting quality voice communication via the internet" HOMEPAGE="https://www.teamspeak.com/" if [[ ${PV} != "*_beta*" ]] ; then 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 )" else SRC_URI=" amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/server/${MY_PV}/teamspeak3-server_linux_amd64-${MY_PV}.tar.bz2 ) x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/server/${MY_PV}/teamspeak3-server_linux_x86-${MY_PV}.tar.bz2 )" fi LICENSE="LGPL-2.1 teamspeak3" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="doc mysql tsdns" RDEPEND="mysql? ( "${T}"/99teamspeak3-server || die else echo "CONFIG_PROTECT=\"/etc/teamspeak3-server/ts3server.ini\"" > "${T}"/99teamspeak3-server || die fi doenvd "${T}"/99teamspeak3-server fowners -R teamspeak:teamspeak "/etc/teamspeak3-server" "/opt/teamspeak3-server" "/var/log/teamspeak3-server" } pkg_postinst() { elog "If you have a Non-Profit License (NPL)," elog "place it in /opt/teamspeak3-server as licensekey.dat." }