|
Lines 1-60
Link Here
|
| 1 |
# Copyright 1999-2011 Gentoo Foundation |
|
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-server-bin/teamspeak-server-bin-3.0.0_beta30.ebuild,v 1.1 2011/02/27 19:45:07 trapni Exp $ |
| 4 |
|
| 5 |
# NOTE: The comments in this file are for instruction and documentation. |
| 6 |
# They're not meant to appear with your final, production ebuild. Please |
| 7 |
# remember to remove them before submitting or committing your ebuild. That |
| 8 |
# doesn't mean you can't add your own comments though. |
| 9 |
|
| 10 |
# The 'Header' on the third line should just be left alone. When your ebuild |
| 11 |
# will be committed to cvs, the details on that line will be automatically |
| 12 |
# generated to contain the correct data. |
| 13 |
|
| 14 |
EAPI=1 |
| 15 |
|
| 16 |
inherit eutils |
| 17 |
|
| 18 |
DESCRIPTION="TeamSpeak Server - Voice Communication Software" |
| 19 |
HOMEPAGE="http://teamspeak.com/" |
| 20 |
LICENSE="teamspeak3" |
| 21 |
SLOT="0" |
| 22 |
IUSE="" |
| 23 |
KEYWORDS="~amd64 ~x86" |
| 24 |
RESTRICT="strip" |
| 25 |
|
| 26 |
SRC_URI=" |
| 27 |
amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/beta-${PV/3.0.0_beta/}/teamspeak3-server_linux-amd64-${PV/_/-}.tar.gz ) |
| 28 |
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/beta-${PV/3.0.0_beta/}/teamspeak3-server_linux-x86-${PV/_/-}.tar.gz ) |
| 29 |
" |
| 30 |
|
| 31 |
DEPEND="" |
| 32 |
RDEPEND="${DEPEND}" |
| 33 |
|
| 34 |
pkg_setup() { |
| 35 |
enewuser teamspeak3 |
| 36 |
} |
| 37 |
|
| 38 |
src_install() { |
| 39 |
local dest="${D}/opt/teamspeak3-server" |
| 40 |
|
| 41 |
mkdir -p "${dest}" |
| 42 |
cp -R "${WORKDIR}/teamspeak3-server_linux-"*/* "${dest}/" || die |
| 43 |
|
| 44 |
mv "${dest}/ts3server_linux_"* "${dest}/ts3server-bin" || die |
| 45 |
|
| 46 |
exeinto /usr/sbin || die |
| 47 |
doexe "${FILESDIR}/ts3server" || die |
| 48 |
|
| 49 |
# runtime FS layout ... |
| 50 |
insinto /etc/teamspeak3-server |
| 51 |
doins "${FILESDIR}/server.conf" |
| 52 |
newinitd "${FILESDIR}/teamspeak3-server.rc" teamspeak3-server |
| 53 |
|
| 54 |
keepdir /{etc,var/{lib,log,run}}/teamspeak3-server |
| 55 |
fowners teamspeak3 /{etc,var/{lib,log,run}}/teamspeak3-server |
| 56 |
fperms 700 /{etc,var/{lib,log,run}}/teamspeak3-server |
| 57 |
|
| 58 |
fowners teamspeak3 /opt/teamspeak3-server |
| 59 |
fperms 755 /opt/teamspeak3-server |
| 60 |
} |