1 |
commit: be928c1b6f243b8f337fd40c6d71cca0b09e9df7 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 14:59:14 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 18:19:41 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be928c1b |
7 |
|
8 |
net-dns/nsd: Bump to version 4.1.12 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-dns/nsd/Manifest | 1 + |
14 |
net-dns/nsd/nsd-4.1.12.ebuild | 97 +++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
18 |
index c0a459e..44265ba 100644 |
19 |
--- a/net-dns/nsd/Manifest |
20 |
+++ b/net-dns/nsd/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST nsd-3.2.22.tar.gz 924627 SHA256 47c2b424c719a1535f709f4e82d796bca43cad86731f5f275c9367040a474a03 SHA512 2c0cbc97eaa376dcf496ed4323d9f7afb0dbf1852fa5fc9d8c7ecbcf8aaa1b025d56b5e439d19bc36b50deaf5f753fb08109d7e25dc1f8223fe85b7d017f81c3 WHIRLPOOL 271b47a331f2a63dd51bf642fed7083f27660f618fe0418c6b3a361d7b0a7ebda1a300d12d92c1c03e21cd17560ba4f2f2cdac76f7c6793d4befc71b66646f7d |
23 |
DIST nsd-4.1.10.tar.gz 1075892 SHA256 3a757014046752a0b0b11c1a2e22a36bb796f89f6939147ed3226556b4298727 SHA512 e77c858d34002e54085f3a39eda7c6229f21f980339beb9a9d5719245d6010e5435a13dba978ac1aed9b712ed49e5a8ca75cb216cb50dd590556077d32b97a96 WHIRLPOOL 8d04b8661e821ec49c93a00a088bec83b3ca3faf7c07d9d720cba1c5c71fc2db3aafc95b5d0d3a8e848c38f11bd9daeb1a53da752bcf8314722aefbd1d55c4d5 |
24 |
DIST nsd-4.1.11.tar.gz 1080220 SHA256 c7712fd05eb0ab97040738e01d9369d02b89c0a7fa0943fd5bfc43b2111a92df SHA512 e5f4ad1d39bd75b086f3fc3281fa6ac31f4b6ba9c4a9e23bba527d1a1374dfaf0acaac24168bb5a3ad5a041829d1864331928f18ba49562a25e3f8651609a1f7 WHIRLPOOL 187088f8b1c4c92a7e67535b9f2d1520ff3d056c209535afa74079f4b680bf2afe7766e5a102b1481cfe11beb2169b4e1dedcec6d137ab3044e04cf5715fc579 |
25 |
+DIST nsd-4.1.12.tar.gz 1080273 SHA256 fd1979dff1fba55310fd4f439dc9f3f4701d435c0ec4fb9af533e12c7f27d5de SHA512 f78c0a24669ce8a0cf5640d90f5dfc8756009a840545feddd9c466a5f0b7441d470efb267f7ad38ed45321a6f8b75ad7db9b13bdaefab55b7614ebb3e9bd183b WHIRLPOOL 6304ff6b25a315cf3e340d9cf3cffee141abfdceaeb71ac94c97fe78d14698fe2164042db7785a254feeecd4170c4ad7a8fccdf165cfb5bbefbe1244fdbd4bea |
26 |
DIST nsd-4.1.7.tar.gz 1072576 SHA256 7ba8beb29b495ab795e927d9aa82a5bb1b66296a78f61ed47d6ccfe59e9b1a8a SHA512 c2bdb03a09ac06d70feef2183e2d777777ba7830777bac67ab974016f52791ad7ed9227a37a31325f5e4ab4baeacc4cb562d5af4cd85e5b6ddc83422ae5d0df8 WHIRLPOOL 4ba203a4f5e365f8f850436b9d721fa1d50dd180bfec14d6ab7ab3b89d2ff5a7fd5bc93c1f8b304a2fe5a070d4f3ae4f5786eeb8d9fbb159c53f12346d0342ba |
27 |
|
28 |
diff --git a/net-dns/nsd/nsd-4.1.12.ebuild b/net-dns/nsd/nsd-4.1.12.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000..3719d0f |
31 |
--- /dev/null |
32 |
+++ b/net-dns/nsd/nsd-4.1.12.ebuild |
33 |
@@ -0,0 +1,97 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit user systemd |
41 |
+ |
42 |
+DESCRIPTION="An authoritative only, high performance, open source name server" |
43 |
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd" |
44 |
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1 |
45 |
+MY_PV=${PV/_rc/rc} |
46 |
+MY_PV=${MY_PV/_beta/b} |
47 |
+MY_P=${PN}-${MY_PV} |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl libressl" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ virtual/yacc |
58 |
+ libevent? ( dev-libs/libevent ) |
59 |
+ ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= ) ) |
60 |
+ munin? ( net-analyzer/munin ) |
61 |
+" |
62 |
+DEPEND=" |
63 |
+ ${RDEPEND} |
64 |
+ sys-devel/flex |
65 |
+" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ # Fix the paths in the munin plugin to match our install |
69 |
+ eapply "${FILESDIR}"/nsd_munin_.patch |
70 |
+ eapply_user |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ econf \ |
75 |
+ --enable-pie \ |
76 |
+ --enable-relro-now \ |
77 |
+ --enable-largefile \ |
78 |
+ --with-logfile="${EPREFIX}"/var/log/nsd.log \ |
79 |
+ --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \ |
80 |
+ --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \ |
81 |
+ --with-xfrdir="${EPREFIX}"/var/db/nsd \ |
82 |
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state \ |
83 |
+ --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list \ |
84 |
+ --with-zonesdir="${EPREFIX}"/var/lib/nsd \ |
85 |
+ $(use_enable bind8-stats) \ |
86 |
+ $(use_enable bind8-stats zone-stats) \ |
87 |
+ $(use_enable ipv6) \ |
88 |
+ $(use_enable minimal-responses) \ |
89 |
+ $(use_enable mmap) \ |
90 |
+ $(use_enable nsec3) \ |
91 |
+ $(use_enable ratelimit) \ |
92 |
+ $(use_enable root-server) \ |
93 |
+ $(use_enable runtime-checks checking) \ |
94 |
+ $(use_with libevent) \ |
95 |
+ $(use_with ssl) |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ emake DESTDIR="${D}" install |
100 |
+ |
101 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
102 |
+ |
103 |
+ newinitd "${FILESDIR}"/nsd.initd-r1 nsd |
104 |
+ |
105 |
+ # install munin plugin and config |
106 |
+ if use munin ; then |
107 |
+ exeinto /usr/libexec/munin/plugins |
108 |
+ doexe contrib/nsd_munin_ |
109 |
+ insinto /etc/munin/plugin-conf.d |
110 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
111 |
+ fi |
112 |
+ |
113 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
114 |
+ |
115 |
+ # remove the /run directory that usually resides on tmpfs and is |
116 |
+ # being taken care of by the nsd init script anyway (checkpath) |
117 |
+ rm -r "${ED}"/run || die "Failed to remove /run" |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ # Do this in postinst to ensure the uid/gid is consistent for binpkgs |
122 |
+ enewgroup nsd |
123 |
+ enewuser nsd -1 -1 -1 nsd |
124 |
+ |
125 |
+ # database directory, writable by nsd for database updates and zone transfers |
126 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd |
127 |
+ |
128 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
129 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd |
130 |
+} |