1 |
commit: 0b980b1faaced32793c78d63ae9ae20124e38758 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 23:35:59 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 23:36:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b980b1f |
7 |
|
8 |
net-dns/nsd: Bump to version 4.3.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.11, Repoman-3.0.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-dns/nsd/Manifest | 1 + |
14 |
net-dns/nsd/nsd-4.3.4.ebuild | 111 +++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 112 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
18 |
index 73e80de8cb5..fffeb59f1d6 100644 |
19 |
--- a/net-dns/nsd/Manifest |
20 |
+++ b/net-dns/nsd/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST nsd-4.2.4.tar.gz 1148826 BLAKE2B e2508c225d0bebeb9134c6eb3f00dfaf00d2de1a545cf9719b3bf04de8cf4a173ed744ebe5ff50a7062f5fb3135f4e476b9111736442fa358eb6ce20faac8406 SHA512 5d4f546a2a4484b182c65d3337d44596e935bca074c0eda2947b9d128a56db08a00240c6ec9ce22bc9a436e009c00c3283c4a5cbd1163ca4a429eaa92ec54208 |
23 |
DIST nsd-4.3.2.tar.gz 1177939 BLAKE2B 3c1eac9065c5c8aae3b0a98d43cdbc5d757712656efc7ed912b51b91f4b3b84672a15de8476eba40642d766abd9499bbdeaf71aa6e6720a67ac83a1ed0ea274c SHA512 0423aeddc7f60e04718b6ee0954fbdc274576b6ef61472324256e5db696f41e47899b645cbc4d6d8cc2a7dd00190b72f3ef0476c4640dbb80d36ec39f1c9f5c8 |
24 |
DIST nsd-4.3.3.tar.gz 1181082 BLAKE2B 611027e015f89a6aef0bc9e0b74242e683a1475f5cd2a79dc16a30011989c33a4d3bd21aced24dc6040469a304414b7e775261b097beb007e06c3c025dbf2b9e SHA512 5e7e2037e0939af20af137c913943904e36cf7da517292d40dbbd4f7ebc878b0e97acd7f6cbbaaebbb525a84f6d6ae9e82c34df9c8482075653c4802777a9fa6 |
25 |
+DIST nsd-4.3.4.tar.gz 1182467 BLAKE2B 10c06be9df393774627a42a7cf254202fe9800e7cd5048d392fbf90a65321a4596e742165b1157b3a0ce0645a80ae5425f7d43eb0a453077e45bff06d52347d4 SHA512 fe332caecfd3c6bb8ae1a92fec26984a7953e5e462515e8622c1079b217c962728e841826cdf7899f47f9ac24af1dd383f8ba7981541b05a2338cd288c40b0a7 |
26 |
|
27 |
diff --git a/net-dns/nsd/nsd-4.3.4.ebuild b/net-dns/nsd/nsd-4.3.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..26d8ed0e769 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/nsd/nsd-4.3.4.ebuild |
32 |
@@ -0,0 +1,111 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit systemd |
39 |
+ |
40 |
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1 |
41 |
+MY_PV="${PV/_beta/b}" |
42 |
+MY_PV="${MY_PV/_rc/rc}" |
43 |
+MY_P="${PN}-${MY_PV}" |
44 |
+ |
45 |
+DESCRIPTION="An authoritative only, high performance, open source name server" |
46 |
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd" |
47 |
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz" |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \ |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="bind8-stats dnstap ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl systemd libressl" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ acct-group/nsd |
58 |
+ acct-user/nsd |
59 |
+ dnstap? ( |
60 |
+ dev-libs/fstrm |
61 |
+ dev-libs/protobuf-c |
62 |
+ ) |
63 |
+ libevent? ( dev-libs/libevent ) |
64 |
+ munin? ( net-analyzer/munin ) |
65 |
+ ssl? ( |
66 |
+ !libressl? ( dev-libs/openssl:0= ) |
67 |
+ libressl? ( dev-libs/libressl:= ) |
68 |
+ ) |
69 |
+ systemd? ( sys-apps/systemd ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+BDEPEND=" |
73 |
+ sys-devel/flex |
74 |
+ virtual/yacc |
75 |
+ systemd? ( virtual/pkgconfig ) |
76 |
+" |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ # Fix the paths in the munin plugin to match our install |
80 |
+ "${FILESDIR}"/nsd_munin_.patch |
81 |
+) |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local myeconfargs=( |
85 |
+ --enable-largefile |
86 |
+ --enable-pie |
87 |
+ --enable-relro-now |
88 |
+ --enable-tcp-fastopen |
89 |
+ --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db |
90 |
+ --with-logfile="${EPREFIX}"/var/log/nsd.log |
91 |
+ --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid |
92 |
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state |
93 |
+ --with-xfrdir="${EPREFIX}"/var/db/nsd |
94 |
+ --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list |
95 |
+ --with-zonesdir="${EPREFIX}"/var/lib/nsd |
96 |
+ $(use_enable bind8-stats) |
97 |
+ $(use_enable bind8-stats zone-stats) |
98 |
+ $(use_enable dnstap) |
99 |
+ $(use_enable ipv6) |
100 |
+ $(use_enable minimal-responses) |
101 |
+ $(use_enable mmap) |
102 |
+ $(use_enable nsec3) |
103 |
+ $(use_enable ratelimit) |
104 |
+ $(use_enable root-server) |
105 |
+ $(use_enable runtime-checks checking) |
106 |
+ $(use_enable systemd) |
107 |
+ $(use_with libevent) |
108 |
+ $(use_with ssl) |
109 |
+ ) |
110 |
+ econf "${myeconfargs[@]}" |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ emake DESTDIR="${D}" install |
115 |
+ |
116 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
117 |
+ |
118 |
+ newinitd "${FILESDIR}"/nsd.initd-r1 nsd |
119 |
+ |
120 |
+ # install munin plugin and config |
121 |
+ if use munin ; then |
122 |
+ exeinto /usr/libexec/munin/plugins |
123 |
+ doexe contrib/nsd_munin_ |
124 |
+ insinto /etc/munin/plugin-conf.d |
125 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
126 |
+ fi |
127 |
+ |
128 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
129 |
+ |
130 |
+ # remove the /run directory that usually resides on tmpfs and is |
131 |
+ # being taken care of by the nsd init script anyway (checkpath) |
132 |
+ rm -r "${ED}"/run || die "Failed to remove /run" |
133 |
+ |
134 |
+ keepdir /var/db/${PN} |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst() { |
138 |
+ # database directory, writable by nsd for database updates and zone transfers |
139 |
+ install -d -m 750 -o nsd -g nsd "${EROOT}"/var/db/nsd |
140 |
+ |
141 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
142 |
+ install -d -m 750 -o nsd -g nsd "${EROOT}"/var/lib/nsd |
143 |
+} |