Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/nsd/
Date: Wed, 29 Jun 2022 17:49:37
Message-Id: 1656524961.93228c2489743e2c043c4243967b4732a82c4de7.sam@gentoo
1 commit: 93228c2489743e2c043c4243967b4732a82c4de7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 17:39:24 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 17:49:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93228c24
7
8 net-dns/nsd: modernise
9
10 - Use more skel.ebuild-like structure
11 - Use HTTPS
12 - Drop USE=ipv6 (introduces no deps)
13 - Rename USE=runtime-checks -> USE=debug (it's for controlling assertions)
14
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 .../nsd/{nsd-9999.ebuild => nsd-4.5.0-r1.ebuild} | 36 +++++++++++++---------
18 net-dns/nsd/nsd-9999.ebuild | 36 +++++++++++++---------
19 2 files changed, 44 insertions(+), 28 deletions(-)
20
21 diff --git a/net-dns/nsd/nsd-9999.ebuild b/net-dns/nsd/nsd-4.5.0-r1.ebuild
22 similarity index 82%
23 copy from net-dns/nsd/nsd-9999.ebuild
24 copy to net-dns/nsd/nsd-4.5.0-r1.ebuild
25 index a41057e6300d..d3d5d3b51e9d 100644
26 --- a/net-dns/nsd/nsd-9999.ebuild
27 +++ b/net-dns/nsd/nsd-4.5.0-r1.ebuild
28 @@ -6,10 +6,9 @@ EAPI=8
29 inherit autotools systemd
30
31 DESCRIPTION="An authoritative only, high performance, open source name server"
32 -HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
33 -LICENSE="BSD"
34 -SLOT="0"
35 -if [[ "${PV}" == *9999 ]] ; then
36 +HOMEPAGE="https://www.nlnetlabs.nl/projects/nsd"
37 +
38 +if [[ ${PV} == *9999 ]] ; then
39 inherit git-r3
40 EGIT_REPO_URI="https://github.com/NLnetLabs/nsd.git"
41 else
42 @@ -18,12 +17,17 @@ else
43 MY_PV="${MY_PV/_rc/rc}"
44 MY_P="${PN}-${MY_PV}"
45
46 - [[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
47 - KEYWORDS="~amd64 ~x86"
48 - SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
49 - S="${WORKDIR}/${MY_P}"
50 + if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
51 + SRC_URI="https://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
52 + S="${WORKDIR}"/${MY_P}
53 +
54 + KEYWORDS="~amd64 ~x86"
55 + fi
56 fi
57 -IUSE="bind8-stats dnstap ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl systemd"
58 +
59 +LICENSE="BSD"
60 +SLOT="0"
61 +IUSE="bind8-stats debug dnstap libevent minimal-responses mmap munin +nsec3 ratelimit root-server ssl systemd"
62
63 RDEPEND="
64 acct-group/nsd
65 @@ -51,17 +55,20 @@ PATCHES=(
66
67 src_prepare() {
68 default
69 +
70 # Required to get correct pkg-config macros with USE="systemd"
71 - # see bugs #663618 and #758050
72 + # See bugs #663618 and #758050
73 eautoreconf
74 }
75
76 src_configure() {
77 local myeconfargs=(
78 + --enable-ipv6
79 --enable-largefile
80 --enable-pie
81 --enable-relro-now
82 --enable-tcp-fastopen
83 +
84 --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db
85 --with-logfile="${EPREFIX}"/var/log/nsd.log
86 --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid
87 @@ -69,20 +76,21 @@ src_configure() {
88 --with-xfrdir="${EPREFIX}"/var/db/nsd
89 --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list
90 --with-zonesdir="${EPREFIX}"/var/lib/nsd
91 +
92 $(use_enable bind8-stats)
93 $(use_enable bind8-stats zone-stats)
94 + $(use_enable debug checking)
95 $(use_enable dnstap)
96 - $(use_enable ipv6)
97 $(use_enable minimal-responses)
98 $(use_enable mmap)
99 $(use_enable nsec3)
100 $(use_enable ratelimit)
101 $(use_enable root-server)
102 - $(use_enable runtime-checks checking)
103 $(use_enable systemd)
104 $(use_with libevent)
105 $(use_with ssl)
106 )
107 +
108 econf "${myeconfargs[@]}"
109 }
110
111 @@ -93,7 +101,7 @@ src_install() {
112
113 newinitd "${FILESDIR}"/nsd.initd-r1 nsd
114
115 - # install munin plugin and config
116 + # Install munin plugin and config
117 if use munin ; then
118 exeinto /usr/libexec/munin/plugins
119 doexe contrib/nsd_munin_
120 @@ -103,7 +111,7 @@ src_install() {
121
122 systemd_dounit "${FILESDIR}"/nsd.service
123
124 - # remove the /run directory that usually resides on tmpfs and is
125 + # Remove the /run directory that usually resides on tmpfs and is
126 # being taken care of by the nsd init script anyway (checkpath)
127 rm -r "${ED}"/run || die "Failed to remove /run"
128
129
130 diff --git a/net-dns/nsd/nsd-9999.ebuild b/net-dns/nsd/nsd-9999.ebuild
131 index a41057e6300d..d3d5d3b51e9d 100644
132 --- a/net-dns/nsd/nsd-9999.ebuild
133 +++ b/net-dns/nsd/nsd-9999.ebuild
134 @@ -6,10 +6,9 @@ EAPI=8
135 inherit autotools systemd
136
137 DESCRIPTION="An authoritative only, high performance, open source name server"
138 -HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
139 -LICENSE="BSD"
140 -SLOT="0"
141 -if [[ "${PV}" == *9999 ]] ; then
142 +HOMEPAGE="https://www.nlnetlabs.nl/projects/nsd"
143 +
144 +if [[ ${PV} == *9999 ]] ; then
145 inherit git-r3
146 EGIT_REPO_URI="https://github.com/NLnetLabs/nsd.git"
147 else
148 @@ -18,12 +17,17 @@ else
149 MY_PV="${MY_PV/_rc/rc}"
150 MY_P="${PN}-${MY_PV}"
151
152 - [[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
153 - KEYWORDS="~amd64 ~x86"
154 - SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
155 - S="${WORKDIR}/${MY_P}"
156 + if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
157 + SRC_URI="https://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
158 + S="${WORKDIR}"/${MY_P}
159 +
160 + KEYWORDS="~amd64 ~x86"
161 + fi
162 fi
163 -IUSE="bind8-stats dnstap ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl systemd"
164 +
165 +LICENSE="BSD"
166 +SLOT="0"
167 +IUSE="bind8-stats debug dnstap libevent minimal-responses mmap munin +nsec3 ratelimit root-server ssl systemd"
168
169 RDEPEND="
170 acct-group/nsd
171 @@ -51,17 +55,20 @@ PATCHES=(
172
173 src_prepare() {
174 default
175 +
176 # Required to get correct pkg-config macros with USE="systemd"
177 - # see bugs #663618 and #758050
178 + # See bugs #663618 and #758050
179 eautoreconf
180 }
181
182 src_configure() {
183 local myeconfargs=(
184 + --enable-ipv6
185 --enable-largefile
186 --enable-pie
187 --enable-relro-now
188 --enable-tcp-fastopen
189 +
190 --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db
191 --with-logfile="${EPREFIX}"/var/log/nsd.log
192 --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid
193 @@ -69,20 +76,21 @@ src_configure() {
194 --with-xfrdir="${EPREFIX}"/var/db/nsd
195 --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list
196 --with-zonesdir="${EPREFIX}"/var/lib/nsd
197 +
198 $(use_enable bind8-stats)
199 $(use_enable bind8-stats zone-stats)
200 + $(use_enable debug checking)
201 $(use_enable dnstap)
202 - $(use_enable ipv6)
203 $(use_enable minimal-responses)
204 $(use_enable mmap)
205 $(use_enable nsec3)
206 $(use_enable ratelimit)
207 $(use_enable root-server)
208 - $(use_enable runtime-checks checking)
209 $(use_enable systemd)
210 $(use_with libevent)
211 $(use_with ssl)
212 )
213 +
214 econf "${myeconfargs[@]}"
215 }
216
217 @@ -93,7 +101,7 @@ src_install() {
218
219 newinitd "${FILESDIR}"/nsd.initd-r1 nsd
220
221 - # install munin plugin and config
222 + # Install munin plugin and config
223 if use munin ; then
224 exeinto /usr/libexec/munin/plugins
225 doexe contrib/nsd_munin_
226 @@ -103,7 +111,7 @@ src_install() {
227
228 systemd_dounit "${FILESDIR}"/nsd.service
229
230 - # remove the /run directory that usually resides on tmpfs and is
231 + # Remove the /run directory that usually resides on tmpfs and is
232 # being taken care of by the nsd init script anyway (checkpath)
233 rm -r "${ED}"/run || die "Failed to remove /run"