blob: c80fd2760ef7489c817fedc47d1c2a8c293932ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/ventrilo-server-bin/ventrilo-server-bin-3.0.3.ebuild,v 1.5 2012/06/09 23:25:48 zmedico Exp $
inherit eutils user
IUSE=""
DESCRIPTION="The Ventrilo Voice Communication Server"
HOMEPAGE="http://www.ventrilo.com/"
SRC_URI="ventrilo_srv-${PV}-Linux-i386.tar.gz"
LICENSE="ventrilo"
SLOT="0"
KEYWORDS="-* amd64 x86"
RESTRICT="fetch"
S=${WORKDIR}
DEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs )"
RDEPEND="${DEPEND}"
QA_PRESTRIPPED="opt/ventrilo-server/ventrilo_srv
opt/ventrilo-server/ventrilo_status"
pkg_setup() {
enewgroup ventrilo 3784
enewuser ventrilo 3784 -1 /dev/null ventrilo
}
pkg_nofetch() {
elog "Please visit http://www.ventrilo.com/download.php"
elog "and download the Linux i386 - 32bit ${PV} server."
elog "Just save it in ${DISTDIR} !"
}
src_install() {
cd "${S}/ventsrv"
exeinto /opt/ventrilo-server
doexe ventrilo_{srv,status}
newinitd "${FILESDIR}"/${PV}-init.d.ventrilo ventrilo
newconfd "${FILESDIR}"/${PV}-conf.d.ventrilo ventrilo
insinto /opt/ventrilo-server
doins ventrilo_srv.ini
dohtml ventrilo_srv.htm
fowners ventrilo:ventrilo /opt/ventrilo-server
}
|