# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/perl/Gentoo-Probe/t/sandbox/usr/portage/net-dns/pdns/pdns-2.9.12.ebuild,v 1.1 2004/06/20 09:09:36 linguist Exp $
DESCRIPTION="The PowerDNS Daemon."
SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
HOMEPAGE="http://www.powerdns.com/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="mysql static"
DEPEND="virtual/glibc
mysql? ( >=dev-db/mysql-3.23.54a )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${P}
src_compile() {
local myconf=""
local modules=""
use static && myconf="$myconf --enable-static-binaries"
use mysql && modules="gmysql $modules"
myconf="$myconf --with-modules=$modules"
econf $myconf || die "econf failed"
emake || die "emake failed"
}
src_install () {
make DESTDIR=${D} install || die
dodoc ChangeLog HACKING INSTALL README TODO WARNING pdns/COPYING
exeinto /etc/init.d
doexe ${FILESDIR}/pdns
mv ${D}/etc/pdns.conf-dist ${D}/etc/pdns.conf
}