diff options
Diffstat (limited to 'media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild')
-rw-r--r-- | media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild new file mode 100644 index 00000000..0e1ebd28 --- /dev/null +++ b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.7.2.ebuild,v 1.2 2013/05/23 15:40:05 srcs Exp $ + +EAPI=5 + +inherit eutils systemd user + +DESCRIPTION="TeamSpeak Server - Voice Communication Software" +HOMEPAGE="http://www.teamspeak.com/" +LICENSE="teamspeak3 GPL-2" +SLOT="0" +IUSE="doc pdf systemd tsdns" +KEYWORDS="~amd64 ~x86" +RESTRICT="installsources mirror strip" + +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 )" + +S="${WORKDIR}/teamspeak3-server_linux-${ARCH}" + +pkg_nofetch() { + if use amd64 ; then + einfo "Please download teamspeak3-server_linux-amd64-${PV}.tar.gz" + elif use x86 ; then + 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() { + enewuser teamspeak3 +} + +src_install() { + # Install TeamSpeak 3 server into /opt/teamspeak3 + into /opt/teamspeak3 + + dodoc -r CHANGELOG doc/*.txt + use doc && dodoc -r serverquerydocs + use pdf && dodoc doc/*.pdf + + newsbin ts3server_linux_${ARCH} ts3server-bin + dobin "${FILESDIR}/ts3server" + dobin *.sh + + # 'dolib' may install to libx32 or lib64 - we just want standard lib + #dolib.so *.so + insinto /opt/teamspeak3/lib + doins *.so + # 'libmysqlclient.so.15' is hard-coded into the ts3-server binary :( + dosym ../../../usr/$(get_libdir)/libmysqlclient.so /opt/teamspeak3/lib/libmysqlclient.so.15 + + if use tsdns; then + newdoc tsdns/README README.tsdns + newdoc tsdns/USAGE USAGE.tsdns + newsbin tsdns/tsdnsserver_linux_${ARCH} tsdnsserver + insinto /opt/teamspeak3/sbin + doins tsdns/tsdns_settings.ini.sample + fi + + insinto /opt/teamspeak3/lib + doins -r sql + + insinto /etc/teamspeak3 + doins "${FILESDIR}/server.conf" + doins "${FILESDIR}/ts3db_mysql.ini" + newinitd "${FILESDIR}/${PN}-3.0.7.1.rc" teamspeak3 + + if use systemd; then + systemd_dounit "${FILESDIR}/systemd/teamspeak3.service" + systemd_dotmpfilesd "${FILESDIR}/systemd/teamspeak3.conf" + fi + + keepdir /{etc,var/{lib,log,run}}/teamspeak3 + + # Fix up permissions + fowners teamspeak3 /{etc,var/{lib,log,run}}/teamspeak3 + fperms 700 /{etc,var/{lib,log,run}}/teamspeak3 + + fowners teamspeak3 /opt/teamspeak3 + fperms 755 /opt/teamspeak3 +} |