1 |
commit: 97c7434f63ce603ca88cbb50cc42ff343ef03960 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 31 08:42:43 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 08:44:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c7434f |
7 |
|
8 |
net-dns/nsd: Security bump to version 4.1.23 |
9 |
|
10 |
Bumped straight to stable. |
11 |
|
12 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
13 |
|
14 |
net-dns/nsd/Manifest | 1 + |
15 |
net-dns/nsd/nsd-4.1.23.ebuild | 103 ++++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 104 insertions(+) |
17 |
|
18 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
19 |
index 451a9425538..5cbf0856149 100644 |
20 |
--- a/net-dns/nsd/Manifest |
21 |
+++ b/net-dns/nsd/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST nsd-4.1.21.tar.gz 1099021 BLAKE2B 129fd3145308c108ef2bd06b854aaf7cdb7ae7cce7a635c2028d210f87bc9591c89d8724b4d7a23d72e06e2ed73287c1379573f8cb3571cc63a47987db4f6b65 SHA512 1e37f433ff5cd4869145a575a89d6eaca6b17c0e029302e233277b400c5f0f0b76ea018d48178d6b8a75b72328f0ded9e885be836c0bb32367d6861ff11c7150 |
24 |
DIST nsd-4.1.22.tar.gz 1099463 BLAKE2B 955973e9ee01c1a5ed0a7cff38f881c775785b17452538db468f874d032b426a197b3709693c2df148de4a0f87259754b64c7ea02e53d9d96974f8c723267e19 SHA512 cab025b80955a15d174592ba5f0955c59333a988bf11b094c166a80206b51b6fcef65e2e976cd77009bf3fded257719efa4674a3a3a9d859ebc14e35fca2ecfb |
25 |
+DIST nsd-4.1.23.tar.gz 1102038 BLAKE2B 673146931421ba7be5e90b6f60db23f9e61f42687e4f0aac2d6624125f09067dab535a3badfd00d795a3948319467f3924ca24cc0697b0c203591c2d6efb1834 SHA512 7eb44658be6a3b94855d1a84201e5f20a02c8d85786ac0b1f82a3a67e6bc3c22602d03a8976c2bcb68ea68f0bcf72f1d9fe688e1fd1f9fbe6a774c97bdcf7939 |
26 |
|
27 |
diff --git a/net-dns/nsd/nsd-4.1.23.ebuild b/net-dns/nsd/nsd-4.1.23.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..85ea02fc2f0 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/nsd/nsd-4.1.23.ebuild |
32 |
@@ -0,0 +1,103 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit user 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 ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl libressl" |
52 |
+ |
53 |
+S="${WORKDIR}/${MY_P}" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ libevent? ( dev-libs/libevent ) |
57 |
+ ssl? ( |
58 |
+ !libressl? ( dev-libs/openssl:0= ) |
59 |
+ libressl? ( dev-libs/libressl:= ) |
60 |
+ ) |
61 |
+ munin? ( net-analyzer/munin ) |
62 |
+" |
63 |
+DEPEND=" |
64 |
+ ${RDEPEND} |
65 |
+ sys-devel/flex |
66 |
+ virtual/yacc |
67 |
+" |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ # Fix the paths in the munin plugin to match our install |
71 |
+ "${FILESDIR}"/nsd_munin_.patch |
72 |
+) |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local myeconfargs=( |
76 |
+ --enable-largefile |
77 |
+ --enable-pie |
78 |
+ --enable-relro-now |
79 |
+ --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db |
80 |
+ --with-logfile="${EPREFIX}"/var/log/nsd.log |
81 |
+ --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid |
82 |
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state |
83 |
+ --with-xfrdir="${EPREFIX}"/var/db/nsd |
84 |
+ --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list |
85 |
+ --with-zonesdir="${EPREFIX}"/var/lib/nsd |
86 |
+ $(use_enable bind8-stats) |
87 |
+ $(use_enable bind8-stats zone-stats) |
88 |
+ $(use_enable ipv6) |
89 |
+ $(use_enable minimal-responses) |
90 |
+ $(use_enable mmap) |
91 |
+ $(use_enable nsec3) |
92 |
+ $(use_enable ratelimit) |
93 |
+ $(use_enable root-server) |
94 |
+ $(use_enable runtime-checks checking) |
95 |
+ $(use_with libevent) |
96 |
+ $(use_with ssl) |
97 |
+ ) |
98 |
+ econf "${myeconfargs[@]}" |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ emake DESTDIR="${D}" install |
103 |
+ |
104 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
105 |
+ |
106 |
+ newinitd "${FILESDIR}"/nsd.initd-r1 nsd |
107 |
+ |
108 |
+ # install munin plugin and config |
109 |
+ if use munin ; then |
110 |
+ exeinto /usr/libexec/munin/plugins |
111 |
+ doexe contrib/nsd_munin_ |
112 |
+ insinto /etc/munin/plugin-conf.d |
113 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
114 |
+ fi |
115 |
+ |
116 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
117 |
+ |
118 |
+ # remove the /run directory that usually resides on tmpfs and is |
119 |
+ # being taken care of by the nsd init script anyway (checkpath) |
120 |
+ rm -r "${ED%/}"/run || die "Failed to remove /run" |
121 |
+ |
122 |
+ keepdir /var/db/${PN} |
123 |
+} |
124 |
+ |
125 |
+pkg_postinst() { |
126 |
+ # Do this in postinst to ensure the uid/gid is consistent for binpkgs |
127 |
+ enewgroup nsd |
128 |
+ enewuser nsd -1 -1 -1 nsd |
129 |
+ |
130 |
+ # database directory, writable by nsd for database updates and zone transfers |
131 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd |
132 |
+ |
133 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
134 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd |
135 |
+} |