# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils 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="-* ~x86 ~amd64" RESTRICT="fetch" S=${WORKDIR} DEPEND="amd64? ( app-emulation/emul-linux-x86-baselibs )" pkg_nofetch() { einfo "Please visit http://www.ventrilo.com/download.php" einfo "and download the Linux i386 - 32bit ${PV} server." einfo "Just save it in ${DISTDIR} !" } pkg_setup() { enewgroup ventrilo enewuser ventrilo -1 -1 /dev/null ventrilo } src_install() { cd ${S}/ventsrv exeinto /usr/sbin doexe ventrilo_{srv,status} # Move config files to /etc/ventrilo and rename prefix to ventrilo.* insinto /etc/ventrilo doins ventrilo_srv.ini mv ${D}/etc/ventrilo/ventrilo_srv.ini $D/etc/ventrilo/ventrilo.ini fowners ventrilo:ventrilo /etc/ventrilo dohtml ventrilo_srv.htm # Create symlink so the log appears in /var/log keepdir /var/log touch ${D}/var/log/ventrilo.log fowners ventrilo:ventrilo /var/log/ventrilo.log fperms 600 /var/log/ventrilo.log dosym /var/log/ventrilo.log /etc/ventrilo/ventrilo.log newinitd "${FILESDIR}"/init.d.ventrilo ventrilo newconfd "${FILESDIR}"/conf.d.ventrilo ventrilo }