Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/nsd/
Date: Fri, 23 Aug 2019 21:21:13
Message-Id: 1566595263.61748721dbd0136b7598a0648b6e0f8d10753430.polynomial-c@gentoo
1 commit: 61748721dbd0136b7598a0648b6e0f8d10753430
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 23 21:04:20 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 23 21:21:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61748721
7
8 net-dns/nsd: Bump to version 4.2.2
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-dns/nsd/Manifest | 1 +
14 net-dns/nsd/nsd-4.2.2.ebuild | 115 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 116 insertions(+)
16
17 diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest
18 index 7b095555077..3e7686fa6e6 100644
19 --- a/net-dns/nsd/Manifest
20 +++ b/net-dns/nsd/Manifest
21 @@ -1,3 +1,4 @@
22 DIST nsd-4.1.27.tar.gz 1131881 BLAKE2B 94a7f7efe23d130b04258faca0f73690712919e14268e6efabf4029bc30273d8ef3155259b072190776b6cde32050b61ade0584175f00eef0129e4621d5896a3 SHA512 9c75041f5a6213cdba7238c2e51fc73031f6f073e06587659f93992fed49418ee789642b25b5522d48642507050ac15021f385927eed81ce5ea649f974e66402
23 DIST nsd-4.2.0.tar.gz 1141796 BLAKE2B 3e3df373e2ff00c170b9c104e1a4ca7038f98ad613104f045c594b7df17d4d66be1473a07e545deb9096c6a3945570530c5639c7b2f4c76234f643bce8c4fb40 SHA512 caa14fcd599ddc631cb74c3a56e571044dae1deb2fa9bd6b062f143954f9207b64b42ab5eab917360161f96bae8711df932f3e18b58be98b3f7b640071e7e807
24 DIST nsd-4.2.1.tar.gz 1145713 BLAKE2B 2cb265dbe274b68e2b038b98b37cf44b4dda4eb576f0fdae1c57686a3b99b0e2cdfd7f893ce196316ea02d1d872371cb36c00a35a5ddf8f83d66a981bf5b2560 SHA512 8f40baf7cc72b72a84f3c4eb45847f03b2f91e47dd7f3dfc89270c774565a8cc692363cee3547b0a2a124e9c43b23eed8887f95ae55b2e63af96c65467b85796
25 +DIST nsd-4.2.2.tar.gz 1149182 BLAKE2B 1cbac527063f7d14da589bd5060117da10fdd6a9e34b04eb763dbb94fe6c9cf09dc351985de3d099aea3377a4c945622871566c06e7f78aede885aa0c2bc5937 SHA512 43e2ee980a11ed0ad521cc9d8be1e2d29fa8ab552bdda043ffa7e5bc71cf07ad49319629f71e93dcf1dabd315f93bcfb9fd8b5847f27b125cf151fb4f63779b2
26
27 diff --git a/net-dns/nsd/nsd-4.2.2.ebuild b/net-dns/nsd/nsd-4.2.2.ebuild
28 new file mode 100644
29 index 00000000000..0eba80ae8a8
30 --- /dev/null
31 +++ b/net-dns/nsd/nsd-4.2.2.ebuild
32 @@ -0,0 +1,115 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools 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 +KEYWORDS="~amd64 ~x86"
51 +IUSE="bind8-stats dnstap ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl systemd libressl"
52 +
53 +S="${WORKDIR}/${MY_P}"
54 +
55 +RDEPEND="
56 + acct-group/nsd
57 + acct-user/nsd
58 + dnstap? (
59 + dev-libs/fstrm
60 + dev-libs/protobuf-c
61 + )
62 + libevent? ( dev-libs/libevent )
63 + munin? ( net-analyzer/munin )
64 + ssl? (
65 + !libressl? ( dev-libs/openssl:0= )
66 + libressl? ( dev-libs/libressl:= )
67 + )
68 + systemd? ( sys-apps/systemd )
69 +"
70 +DEPEND="${RDEPEND}"
71 +BDEPEND="
72 + sys-devel/flex
73 + virtual/yacc
74 + systemd? ( virtual/pkgconfig )
75 +"
76 +
77 +PATCHES=(
78 + # Fix the paths in the munin plugin to match our install
79 + "${FILESDIR}"/nsd_munin_.patch
80 +)
81 +
82 +src_prepare() {
83 + default
84 + eautoreconf
85 +}
86 +
87 +src_configure() {
88 + local myeconfargs=(
89 + --enable-largefile
90 + --enable-pie
91 + --enable-relro-now
92 + --enable-tcp-fastopen
93 + --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db
94 + --with-logfile="${EPREFIX}"/var/log/nsd.log
95 + --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid
96 + --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state
97 + --with-xfrdir="${EPREFIX}"/var/db/nsd
98 + --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list
99 + --with-zonesdir="${EPREFIX}"/var/lib/nsd
100 + $(use_enable bind8-stats)
101 + $(use_enable bind8-stats zone-stats)
102 + $(use_enable dnstap)
103 + $(use_enable ipv6)
104 + $(use_enable minimal-responses)
105 + $(use_enable mmap)
106 + $(use_enable nsec3)
107 + $(use_enable ratelimit)
108 + $(use_enable root-server)
109 + $(use_enable runtime-checks checking)
110 + $(use_enable systemd)
111 + $(use_with libevent)
112 + $(use_with ssl)
113 + )
114 + econf "${myeconfargs[@]}"
115 +}
116 +
117 +src_install() {
118 + emake DESTDIR="${D}" install
119 +
120 + dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
121 +
122 + newinitd "${FILESDIR}"/nsd.initd-r1 nsd
123 +
124 + # install munin plugin and config
125 + if use munin ; then
126 + exeinto /usr/libexec/munin/plugins
127 + doexe contrib/nsd_munin_
128 + insinto /etc/munin/plugin-conf.d
129 + newins "${FILESDIR}"/nsd.munin-conf nsd_munin
130 + fi
131 +
132 + systemd_dounit "${FILESDIR}"/nsd.service
133 +
134 + # remove the /run directory that usually resides on tmpfs and is
135 + # being taken care of by the nsd init script anyway (checkpath)
136 + rm -r "${ED}"/run || die "Failed to remove /run"
137 +
138 + keepdir /var/db/${PN}
139 +}
140 +
141 +pkg_postinst() {
142 + # database directory, writable by nsd for database updates and zone transfers
143 + install -d -m 750 -o nsd -g nsd "${EROOT}"/var/db/nsd
144 +
145 + # zones directory, writable by nsd for zone file updates (nsd-control write)
146 + install -d -m 750 -o nsd -g nsd "${EROOT}"/var/lib/nsd
147 +}