# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="NSD is an authoritative only, high performance, simple and open source name server." HOMEPAGE="http://www.nlnetlabs.nl/nsd/" SRC_URI="http://www.nlnetlabs.nl/downloads/nsd/${P}.tar.gz" RESTRICT="mirror" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="root-server ipv6 plugins checking dnssec axfr tsig bind8-stats ssl" DEPEND="ssl? ( >=dev-libs/openssl-0.9.7i )" src_compile() { if use plugins; then echo ewarn "" einfo "Plug-ins support is highly experimental!" ewarn "Plug-ins support enabled" epause 10 fi econf \ --with-user=nsd \ --with-dbfile=/var/lib/nsd/nsd.db \ --with-pidfile=/var/run/nsd.pid \ $(use_enable root-server) \ $(use_enable ipv6) \ $(use_enable plugins) \ $(use_enable checking) \ $(use_enable bind8-stats) \ $(use_with ssl) \ $(use_enable dnssec) \ $(use_enable axfr) \ $(use_enable tsig) || die "econf failed" emake all || die "failed to compile nsd" } src_install() { make DESTDIR=${D} install || die "einstall failed" dodoc \ DIFFERENCES \ NSD-DATABASE \ README \ README.icc \ RELNOTES \ REQUIREMENTS \ CREDITS \ TODO exeinto /etc/cron.hourly newexe ${FILESDIR}/nsd.cron nsd.cron exeinto /etc/init.d newexe ${FILESDIR}/nsd.initd nsd } pkg_postinst() { enewgroup nofiles enewuser nsd -1 -1 /var/lib/nsd }