[media-sound/teamspeak-server-bin] sync with tree
This commit is contained in:
parent
6cc878e9d4
commit
cf94728135
@ -1,42 +1,40 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
EAPI="5"
|
EAPI="5"
|
||||||
|
|
||||||
inherit eutils systemd user versionator
|
inherit eutils multilib systemd user versionator
|
||||||
|
|
||||||
MY_PV="$(get_version_component_range 1-3)-Beta-$(get_version_component_range 4)"
|
MY_PV="$(get_version_component_range 1-3)-Beta-$(get_version_component_range 4)"
|
||||||
|
|
||||||
DESCRIPTION="TeamSpeak Server - Voice Communication Software"
|
DESCRIPTION="Voice Communication Software - Server"
|
||||||
HOMEPAGE="http://www.teamspeak.com/"
|
HOMEPAGE="http://www.teamspeak.com/"
|
||||||
if [[ ${PV} = "*_beta*" ]] ; then
|
if [[ ${PV} = "*_beta*" ]] ; then
|
||||||
SRC_URI="amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/${MY_PV}/teamspeak3-server_linux-amd64-$(get_version_component_range 1-3).tar.gz )
|
SRC_URI="
|
||||||
|
amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/${MY_PV}/teamspeak3-server_linux-amd64-$(get_version_component_range 1-3).tar.gz )
|
||||||
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/${MY_PV}/teamspeak3-server_linux-x86-$(get_version_component_range 1-3).tar.gz )"
|
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/pre_releases/${MY_PV}/teamspeak3-server_linux-x86-$(get_version_component_range 1-3).tar.gz )"
|
||||||
else
|
else
|
||||||
SRC_URI="amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-amd64-${PV}.tar.gz )
|
SRC_URI="
|
||||||
|
amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-amd64-${PV}.tar.gz )
|
||||||
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-x86-${PV}.tar.gz )"
|
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/teamspeak3-server_linux-x86-${PV}.tar.gz )"
|
||||||
fi
|
fi
|
||||||
RESTRICT="fetch mirror strip"
|
|
||||||
|
|
||||||
LICENSE="teamspeak3 GPL-2"
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
LICENSE="teamspeak3 GPL-2"
|
||||||
|
IUSE="doc pdf mysql tsdns"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
IUSE="doc pdf mysql"
|
|
||||||
|
|
||||||
DEPEND="mysql? ( >=virtual/mysql-5.5 )"
|
DEPEND="mysql? ( >=virtual/mysql-5.5 )"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
RESTRICT="installsources fetch mirror strip"
|
||||||
|
|
||||||
S="${WORKDIR}/teamspeak3-server_linux-${ARCH}"
|
S="${WORKDIR}/teamspeak3-server_linux-${ARCH}"
|
||||||
|
|
||||||
pkg_nofetch() {
|
pkg_nofetch() {
|
||||||
if use amd64 ; then
|
elog "Please download ${A}"
|
||||||
einfo "Please download teamspeak3-server_linux-amd64-${PV}.tar.gz"
|
elog "from ${HOMEPAGE}?page=downloads and place this"
|
||||||
elif use x86 ; then
|
elog "file in ${DISTDIR}"
|
||||||
einfo "Please download teamspeak3-server_linux-x86-${PV}.tar.gz"
|
|
||||||
fi
|
|
||||||
einfo "from ${HOMEPAGE}?page=downloads and place this"
|
|
||||||
einfo "file in ${DISTDIR}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
@ -52,8 +50,7 @@ src_install() {
|
|||||||
# Install binary, wrapper, shell files and libraries.
|
# Install binary, wrapper, shell files and libraries.
|
||||||
newsbin ts3server_linux_${ARCH} ts3server-bin
|
newsbin ts3server_linux_${ARCH} ts3server-bin
|
||||||
|
|
||||||
exeinto /usr/sbin
|
dosbin "${FILESDIR}"/ts3server
|
||||||
doexe "${FILESDIR}"/ts3server
|
|
||||||
|
|
||||||
exeinto ${opt_dir}
|
exeinto ${opt_dir}
|
||||||
doexe *.sh
|
doexe *.sh
|
||||||
@ -62,11 +59,19 @@ src_install() {
|
|||||||
use mysql && doexe redist/libmariadb.so.2
|
use mysql && doexe redist/libmariadb.so.2
|
||||||
doins -r sql
|
doins -r sql
|
||||||
|
|
||||||
# Install documentation.
|
# Install documentation and tsdns.
|
||||||
dodoc -r CHANGELOG doc/*.txt
|
dodoc -r CHANGELOG doc/*.txt
|
||||||
use doc && dodoc -r serverquerydocs
|
use doc && dodoc -r serverquerydocs
|
||||||
use pdf && dodoc doc/*.pdf
|
use pdf && dodoc doc/*.pdf
|
||||||
|
|
||||||
|
if use tsdns; then
|
||||||
|
newsbin tsdns/tsdnsserver_linux_${ARCH} tsdnsserver
|
||||||
|
|
||||||
|
newdoc tsdns/README README.tsdns
|
||||||
|
newdoc tsdns/USAGE USAGE.tsdns
|
||||||
|
dodoc tsdns/tsdns_settings.ini.sample
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the runtime FS layout.
|
# Install the runtime FS layout.
|
||||||
insinto /etc/teamspeak3-server
|
insinto /etc/teamspeak3-server
|
||||||
doins "${FILESDIR}"/server.conf
|
doins "${FILESDIR}"/server.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user