# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/gnugk-2.0.6.ebuild,v 1.4 2004/09/06 00:24:04 ciaranm Exp $ inherit eutils IUSE="mysql pgsql radius" DESCRIPTION="Advanced H.323 gatekeeper" HOMEPAGE="http://www.gnugk.org/" SRC_URI="mirror://sourceforge/openh323gk/gnugk-${PV}-${PR/r/}.tgz" #S=${WORKDIR}/openh323gk # avoid problems when using portage on e.g. freebsd MY_OS="`uname -s | tr [:upper:] [:lower:]`" SLOT="0" KEYWORDS="~x86" LICENSE="GPL-2" DEPEND=">=net-libs/openh323-1.12.2-r1 mysql? ( >=dev-db/mysql++-1.7.9-r2 ) pgsql? ( dev-db/postgresql )" #pkg_setup() { # if ! built_with_use net-libs/openh323 debug ; then # eerror "net-libs/openh323 NEED to be compiled with debug support" # die # fi #} src_unpack() { unpack ${A} cd ${S} # change include path for mysql++ #epatch ${FILESDIR}/gnugk-${PV}-gentoo.diff } src_compile() { local myconf myconf="${myconf} $( use_enable pgsql )" myconf="${myconf} $( use_enable mysql )" myconf="${myconf} $( use_enable radius )" econf ${myconf} || die emake || die } src_install() { dodir /usr/sbin /etc/gnugk dosbin obj_${MY_OS}_${ARCH}_r/gnugk insinto /etc/gnugk doins etc/* dodoc changes.txt readme.txt copying docs/* mv ${D}/etc/gnugk/*.pl ${D}/usr/share/doc/${PF} # install old documentation files, # they may be useful... docinto old dodoc docs/old/* exeinto /etc/init.d/ newexe ${FILESDIR}/gnugk.rc6 gnugk insinto /etc/conf.d/ newins ${FILESDIR}/gnugk.confd gnugk }