1 |
commit: 53b13a92beb14c6356ed4fb8bc72161b0827dfca |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 14 10:41:16 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 14 10:41:16 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b13a92 |
7 |
|
8 |
net-dns/nsd: Bump to versions 3.2.20 and 4.1.7 (bug #541036). |
9 |
|
10 |
Proxy commit for Tom Hendrikx. |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
net-dns/nsd/Manifest | 2 + |
16 |
net-dns/nsd/nsd-3.2.20.ebuild | 81 ++++++++++++++++++++++++++++++++++++ |
17 |
net-dns/nsd/nsd-4.1.7.ebuild | 96 +++++++++++++++++++++++++++++++++++++++++++ |
18 |
3 files changed, 179 insertions(+) |
19 |
|
20 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
21 |
index 806cd1e..d339e70 100644 |
22 |
--- a/net-dns/nsd/Manifest |
23 |
+++ b/net-dns/nsd/Manifest |
24 |
@@ -1,2 +1,4 @@ |
25 |
DIST nsd-3.2.18.tar.gz 924566 SHA256 541047c2114466d6fa7d7b9f397f632e542750475f1fcef5339da86a1ebdfcdb SHA512 888618b51f8ec85413a95a9733198a5affc420b1a8c3b00ed18c8f73f1a0d0654b334ff22076adab23bac56ccb3684cb551ebec426d3d0df939eee24ae66044f WHIRLPOOL 0d4ea8d6e26fc517404e6ebc427774a9c1f4ec7c7c096f7adc5ba51f3fa218215f666dd848a48650bba502ceb4d2795ecb264014f5f31409290937b089b4f062 |
26 |
+DIST nsd-3.2.20.tar.gz 925600 SHA256 cc3f04291a043d5350e67e1590003429ebf64975367858f70b3bf623ce609e16 SHA512 9decbdde984ec6b8d491f57a2a38441415721f108898f552a19740ed51c56e049cb01059952937841a2f8ea9574e3ee6a03177a4c23e827295c1fd6afbcd3d99 WHIRLPOOL 713d1d596c1176983e40a658f1033ba1275d23abcde9f3902c76823a2071ee3230baa21b9dc5af65c8abe270fbb242fb521b4246caee3d128dddd18fe530c69c |
27 |
DIST nsd-4.1.0.tar.gz 1056649 SHA256 ec3f6902f6f26a6b9248dcd7e9f42472fa52755740b4ba6b9d3bd08910b39b62 SHA512 1e49c14108b201ff8f14f58a9aae8ee4a69fba2e9494bdffc20ac079bff437ce91b069852d0aac639ec860a258b0b222b72269e62ad7b433c3df8d06afea8f03 WHIRLPOOL 6041ed2292412c91d3a7828727b5cf5f85cc6a0088e51cb791d2f56cfab2b8358627e1af7517091c3f119ce83218763dbd54279c88137c509bcf9e48c3049f94 |
28 |
+DIST nsd-4.1.7.tar.gz 1072576 SHA256 7ba8beb29b495ab795e927d9aa82a5bb1b66296a78f61ed47d6ccfe59e9b1a8a SHA512 c2bdb03a09ac06d70feef2183e2d777777ba7830777bac67ab974016f52791ad7ed9227a37a31325f5e4ab4baeacc4cb562d5af4cd85e5b6ddc83422ae5d0df8 WHIRLPOOL 4ba203a4f5e365f8f850436b9d721fa1d50dd180bfec14d6ab7ab3b89d2ff5a7fd5bc93c1f8b304a2fe5a070d4f3ae4f5786eeb8d9fbb159c53f12346d0342ba |
29 |
|
30 |
diff --git a/net-dns/nsd/nsd-3.2.20.ebuild b/net-dns/nsd/nsd-3.2.20.ebuild |
31 |
new file mode 100644 |
32 |
index 0000000..94a89c9 |
33 |
--- /dev/null |
34 |
+++ b/net-dns/nsd/nsd-3.2.20.ebuild |
35 |
@@ -0,0 +1,81 @@ |
36 |
+# Copyright 1999-2015 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+# $Id$ |
39 |
+ |
40 |
+EAPI=5 |
41 |
+ |
42 |
+inherit user |
43 |
+ |
44 |
+DESCRIPTION="An authoritative only, high performance, open source name server" |
45 |
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd" |
46 |
+MY_PV=${PV/_rc/rc} |
47 |
+MY_PV=${MY_PV/_beta/b} |
48 |
+MY_P=${PN}-${MY_PV} |
49 |
+S="${WORKDIR}/${MY_P}" |
50 |
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="bind8-stats ipv6 minimal-responses mmap +nsec3 ratelimit root-server runtime-checks zone-stats" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ dev-libs/openssl:0= |
59 |
+ virtual/yacc |
60 |
+" |
61 |
+DEPEND=" |
62 |
+ ${RDEPEND} |
63 |
+ sys-devel/flex |
64 |
+" |
65 |
+ |
66 |
+pkg_setup() { |
67 |
+ enewgroup nsd |
68 |
+ enewuser nsd -1 -1 -1 nsd |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ # ebuild.sh sets localstatedir to /var/lib, but nsd expects /var in several locations |
73 |
+ # some of these cannot be changed by arguments to econf/configure, f.i. logfile |
74 |
+ econf \ |
75 |
+ --localstatedir="${EPREFIX}/var" \ |
76 |
+ --with-pidfile="${EPREFIX}/var/run/nsd/nsd.pid" \ |
77 |
+ --with-zonesdir="${EPREFIX}/var/lib/nsd" \ |
78 |
+ --enable-largefile \ |
79 |
+ $(use_enable bind8-stats) \ |
80 |
+ $(use_enable ipv6) \ |
81 |
+ $(use_enable minimal-responses) \ |
82 |
+ $(use_enable mmap) \ |
83 |
+ $(use_enable nsec3) \ |
84 |
+ $(use_enable ratelimit) \ |
85 |
+ $(use_enable root-server) \ |
86 |
+ $(use_enable runtime-checks checking) \ |
87 |
+ $(use_enable zone-stats) |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ emake DESTDIR="${D}" install |
92 |
+ |
93 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
94 |
+ |
95 |
+ insinto /usr/share/nsd |
96 |
+ doins contrib/nsd.zones2nsd.conf |
97 |
+ |
98 |
+ exeinto /etc/cron.daily |
99 |
+ newexe "${FILESDIR}"/nsd3-patch.cron nsd-patch.cron |
100 |
+ |
101 |
+ newinitd "${FILESDIR}"/nsd3.initd-r1 nsd |
102 |
+ |
103 |
+ # database directory, writable by nsd for database updates and zone transfers |
104 |
+ dodir /var/db/nsd |
105 |
+ fowners nsd:nsd /var/db/nsd |
106 |
+ fperms 750 /var/db/nsd |
107 |
+ |
108 |
+ # zones directory, writable by root for 'nsdc patch' |
109 |
+ dodir /var/lib/nsd |
110 |
+ fowners root:nsd /var/lib/nsd |
111 |
+ fperms 750 /var/lib/nsd |
112 |
+ |
113 |
+ # remove /var/run data created by Makefile, handled by initd script |
114 |
+ rm -r "${ED}"/var/run || die "could not remove /var/run/ directory" |
115 |
+ |
116 |
+} |
117 |
\ No newline at end of file |
118 |
|
119 |
diff --git a/net-dns/nsd/nsd-4.1.7.ebuild b/net-dns/nsd/nsd-4.1.7.ebuild |
120 |
new file mode 100644 |
121 |
index 0000000..6eeec8b |
122 |
--- /dev/null |
123 |
+++ b/net-dns/nsd/nsd-4.1.7.ebuild |
124 |
@@ -0,0 +1,96 @@ |
125 |
+# Copyright 1999-2015 Gentoo Foundation |
126 |
+# Distributed under the terms of the GNU General Public License v2 |
127 |
+# $Id$ |
128 |
+ |
129 |
+EAPI=5 |
130 |
+ |
131 |
+inherit user eutils systemd |
132 |
+ |
133 |
+DESCRIPTION="An authoritative only, high performance, open source name server" |
134 |
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd" |
135 |
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1 |
136 |
+MY_PV=${PV/_rc/rc} |
137 |
+MY_PV=${MY_PV/_beta/b} |
138 |
+MY_P=${PN}-${MY_PV} |
139 |
+S="${WORKDIR}/${MY_P}" |
140 |
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz" |
141 |
+ |
142 |
+LICENSE="BSD" |
143 |
+SLOT="0" |
144 |
+KEYWORDS="~amd64 ~x86" |
145 |
+IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl" |
146 |
+ |
147 |
+RDEPEND=" |
148 |
+ virtual/yacc |
149 |
+ libevent? ( dev-libs/libevent ) |
150 |
+ ssl? ( dev-libs/openssl:0= ) |
151 |
+ munin? ( net-analyzer/munin ) |
152 |
+" |
153 |
+DEPEND=" |
154 |
+ ${RDEPEND} |
155 |
+ sys-devel/flex |
156 |
+" |
157 |
+ |
158 |
+src_prepare() { |
159 |
+ # Fix the paths in the munin plugin to match our install |
160 |
+ epatch "${FILESDIR}"/nsd_munin_.patch |
161 |
+} |
162 |
+ |
163 |
+src_configure() { |
164 |
+ econf \ |
165 |
+ --enable-pie \ |
166 |
+ --enable-relro-now \ |
167 |
+ --enable-largefile \ |
168 |
+ --with-logfile="${EPREFIX}"/var/log/nsd.log \ |
169 |
+ --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \ |
170 |
+ --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \ |
171 |
+ --with-xfrdir="${EPREFIX}"/var/db/nsd \ |
172 |
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state \ |
173 |
+ --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list \ |
174 |
+ --with-zonesdir="${EPREFIX}"/var/lib/nsd \ |
175 |
+ $(use_enable bind8-stats) \ |
176 |
+ $(use_enable bind8-stats zone-stats) \ |
177 |
+ $(use_enable ipv6) \ |
178 |
+ $(use_enable minimal-responses) \ |
179 |
+ $(use_enable mmap) \ |
180 |
+ $(use_enable nsec3) \ |
181 |
+ $(use_enable ratelimit) \ |
182 |
+ $(use_enable root-server) \ |
183 |
+ $(use_enable runtime-checks checking) \ |
184 |
+ $(use_with libevent) \ |
185 |
+ $(use_with ssl) |
186 |
+} |
187 |
+ |
188 |
+src_install() { |
189 |
+ emake DESTDIR="${D}" install |
190 |
+ |
191 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
192 |
+ |
193 |
+ newinitd "${FILESDIR}"/nsd.initd nsd |
194 |
+ |
195 |
+ # install munin plugin and config |
196 |
+ if use munin; then |
197 |
+ exeinto /usr/libexec/munin/plugins |
198 |
+ doexe contrib/nsd_munin_ |
199 |
+ insinto /etc/munin/plugin-conf.d |
200 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
201 |
+ fi |
202 |
+ |
203 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
204 |
+ |
205 |
+ # remove the /run directory that usually resides on tmpfs and is |
206 |
+ # being taken care of by the nsd init script anyway (checkpath) |
207 |
+ rm -rf "${ED}"/run || die "Failed to remove /run" |
208 |
+} |
209 |
+ |
210 |
+pkg_postinst() { |
211 |
+ # Do this in postinst to ensure the uid/gid is consistent for binpkgs |
212 |
+ enewgroup nsd |
213 |
+ enewuser nsd -1 -1 -1 nsd |
214 |
+ |
215 |
+ # database directory, writable by nsd for database updates and zone transfers |
216 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd |
217 |
+ |
218 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
219 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd |
220 |
+} |