blob: d71aeec53db1dac7c4d33cd272c8598174fc2dc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="an authoritative only, high performance, open source name server"
HOMEPAGE="http://www.nlnetlabs.nl/nsd/"
SRC_URI="http://www.nlnetlabs.nl/downloads/nsd/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE="axfr bind8-stats checking dnssec ipv6 plugins root-server ssl tsig"
DEPEND="
ssl? ( >=dev-libs/openssl-0.9.7i )
tcpd? ( sys-apps/tcp-wrappers )
"
pkg_setup() {
enewuser nsd -1 -1 /var/lib/nsd
}
src_compile() {
if use plugins; then
echo
ewarn
einfo "Plugin support is highly experimental!"
ewarn "Plugin support enabled!"
epause 10
fi
econf \
--with-user=nsd \
--with-dbfile=/var/lib/nsd/nsd.db \
--with-pidfile=/var/run/nsd/nsd.pid \
--with-zonesdir=/var/lib/nsd \
$(use_enable axfr) \
$(use_enable bind8-stats) \
$(use_enable checking) \
$(use_enable dnssec) \
$(use_enable ipv6) \
$(use_enable plugins) \
$(use_enable root-server) \
$(use_with ssl) \
$(use_enable tsig) || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR=${D} install || die "emake install failed"
dodoc \
DIFFERENCES \
NSD-DATABASE \
README \
README.icc \
RELNOTES \
REQUIREMENTS \
CREDITS \
TODO
dobin nsdc.sh
exeinto /etc/cron.hourly
newexe ${FILESDIR}/nsd.cron nsd.cron
newinitd ${FILESDIR}/nsd.initd nsd
keepdir /var/run/nsd
fowners nsd /var/run/nsd
fperms 750 /var/run/nsd
keepdir /var/lib/nsd
fowners nsd /var/lib/nsd
fperms 750 /var/lib/nsd
}
|