# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="mysql postgres radius" DESCRIPTION="GNU H.323 gatekeeper" HOMEPAGE="http://www.gnugk.org/" SRC_URI="mirror://sourceforge/openh323gk/gnugk-${PV}.tar.gz" # S=${WORKDIR}/openh323gk MY_OS="`uname -s | tr [:upper:] [:lower:]`" SLOT="0" KEYWORDS="~x86" LICENSE="GPL-2" DEPEND="net-libs/openh323 mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql )" src_compile() { econf \ `use_enable mysql` \ `use_enable postgres pgsql` \ `use_enable radius` || die emake opt addpasswd || die } src_install() { dodir /usr/sbin /etc/gnugk dosbin obj_${MY_OS}_${ARCH}_r/gnugk dosbin obj_${MY_OS}_${ARCH}_r/addpasswd insinto /etc/gnugk doins etc/* dodoc changes.txt readme.txt copying docs/* mv ${D}/etc/gnugk/*.pl ${D}/usr/share/doc/${PF} docinto old dodoc docs/old/* exeinto /etc/init.d/ newexe ${FILESDIR}/gnugk.rc6 gnugk insinto /etc/conf.d/ newins ${FILESDIR}/gnugk.confd gnugk }