diff options
author | Christian Parpart <trapni@gentoo.org> | 2012-05-10 21:39:33 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2012-05-10 21:39:33 +0000 |
commit | e2c258cd2ed811f74f66b784eb1a4ce7890a539c (patch) | |
tree | 5a7d8e9e902d8d9cea2026b08890111795db1695 /media-sound | |
parent | Version bump thanks to Ian Delaney <johneed@hotmail.com>. Bug #415117 (diff) | |
download | gentoo-2-e2c258cd2ed811f74f66b784eb1a4ce7890a539c.tar.gz gentoo-2-e2c258cd2ed811f74f66b784eb1a4ce7890a539c.tar.bz2 gentoo-2-e2c258cd2ed811f74f66b784eb1a4ce7890a539c.zip |
added systemd support
(Portage version: 2.1.10.52/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
4 files changed, 86 insertions, 1 deletions
diff --git a/media-sound/teamspeak-server-bin/ChangeLog b/media-sound/teamspeak-server-bin/ChangeLog index d4ba39054a8b..2382cf8a3897 100644 --- a/media-sound/teamspeak-server-bin/ChangeLog +++ b/media-sound/teamspeak-server-bin/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/teamspeak-server-bin # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/ChangeLog,v 1.23 2012/05/10 20:14:34 trapni Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/ChangeLog,v 1.24 2012/05/10 21:39:33 trapni Exp $ + +*teamspeak-server-bin-3.0.5-r1 (10 May 2012) + + 10 May 2012; <trapni@gentoo.org> +files/systemd/teamspeak3.conf, + +files/systemd/teamspeak3.service, +teamspeak-server-bin-3.0.5-r1.ebuild: + added systemd support *teamspeak-server-bin-3.0.5 (10 May 2012) 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/systemd/teamspeak3.service b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.service new file mode 100644 index 000000000000..11213cc45a0f --- /dev/null +++ b/media-sound/teamspeak-server-bin/files/systemd/teamspeak3.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/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/teamspeak-server-bin-3.0.5-r1.ebuild b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r1.ebuild new file mode 100644 index 000000000000..6ba84cbfca4f --- /dev/null +++ b/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.5-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 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.5-r1.ebuild,v 1.1 2012/05/10 21:39:33 trapni Exp $ + +EAPI=4 + +inherit eutils systemd + +DESCRIPTION="TeamSpeak Server - Voice Communication Software" +HOMEPAGE="http://teamspeak.com/" +LICENSE="teamspeak3" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" +RESTRICT="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 ) +" + +DEPEND="" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewuser teamspeak3 +} + +src_install() { + local dest="${D}/opt/teamspeak3-server" + + mkdir -p "${dest}" + cp -R "${WORKDIR}/teamspeak3-server_linux-"*/* "${dest}/" || die + + mv "${dest}/ts3server_linux_"* "${dest}/ts3server-bin" || die + + exeinto /usr/sbin || die + doexe "${FILESDIR}/ts3server" || die + + # runtime FS layout ... + insinto /etc/teamspeak3-server + doins "${FILESDIR}/server.conf" + newinitd "${FILESDIR}/teamspeak3-server.rc" teamspeak3-server + + keepdir /{etc,var/{lib,log,run}}/teamspeak3-server + fowners teamspeak3 /{etc,var/{lib,log,run}}/teamspeak3-server + fperms 700 /{etc,var/{lib,log,run}}/teamspeak3-server + + fowners teamspeak3 /opt/teamspeak3-server + fperms 755 /opt/teamspeak3-server + + systemd_dounit "${FILESDIR}/systemd/teamspeak3.service" + systemd_dotmpfilesd "${FILESDIR}/systemd/teamspeak3.conf" +} |