1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="an authoritative only, high performance, open source name server"
8 HOMEPAGE="http://www.nlnetlabs.nl/nsd/"
9 SRC_URI="http://www.nlnetlabs.nl/downloads/nsd/${P}.tar.gz"
14 IUSE="axfr bind8-stats checking dnssec ipv6 nsec3 nsid plugins root-server ssl tcpd tsig"
16 DEPEND="ssl? ( >=dev-libs/openssl-0.9.7i )
17 tcpd? ( sys-apps/tcp-wrappers )"
20 enewuser nsd -1 -1 /var/lib/nsd
26 ewarn "Plugin support is highly experimental!"
27 ewarn "Plugin support enabled!"
33 --with-dbfile=/var/lib/nsd/nsd.db \
34 --with-pidfile=/var/run/nsd/nsd.pid \
35 --with-zonesdir=/var/lib/nsd \
36 --with-difffile=/var/run/nsd/ \
37 --with-xfrdfile==/var/run/nsd/ \
39 $(use_enable bind8-stats) \
40 $(use_enable checking) \
41 $(use_enable dnssec) \
45 $(use_enable plugins) \
46 $(use_enable root-server) \
48 $(use_enable tsig) || die "econf failed"
50 emake || die "emake failed"
54 emake DESTDIR="${D}" install || die "emake install failed"
57 dodoc contrib/nsd.zones2nsd.conf
61 exeinto /etc/cron.hourly
62 newexe "${FILESDIR}"/nsd.cron nsd.cron
64 newinitd "${FILESDIR}"/nsd.initd nsd
67 fowners nsd /var/run/nsd
68 fperms 750 /var/run/nsd
71 fowners nsd /var/lib/nsd
72 fperms 750 /var/lib/nsd