1 |
commit: e038812013482aa04e9bf2666416e7716f71ceb1 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 12 08:02:05 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 12 08:03:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0388120 |
7 |
|
8 |
net-dns/nsd: Bump to version 4.1.22 |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
net-dns/nsd/Manifest | 1 + |
13 |
net-dns/nsd/nsd-4.1.22.ebuild | 104 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
17 |
index 8d96cd35f71..478c1c6fc01 100644 |
18 |
--- a/net-dns/nsd/Manifest |
19 |
+++ b/net-dns/nsd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST nsd-4.1.20.tar.gz 1096797 BLAKE2B aa1415933f8d1d1415349407c54cfdec581304ca27733110b45bc109288506ad2a92c110565695ac7cb4afae3b955fe09fe740196f268c810e0be992e4f55353 SHA512 4e646303d9da920a9ad567ea3e04a06d8b66bc0d84117908ae69126c131321d660548f32e7bb54e248dae4f48d5152c0a204bf8bf9262ac4394371c05305b21e |
22 |
DIST nsd-4.1.21.tar.gz 1099021 BLAKE2B 129fd3145308c108ef2bd06b854aaf7cdb7ae7cce7a635c2028d210f87bc9591c89d8724b4d7a23d72e06e2ed73287c1379573f8cb3571cc63a47987db4f6b65 SHA512 1e37f433ff5cd4869145a575a89d6eaca6b17c0e029302e233277b400c5f0f0b76ea018d48178d6b8a75b72328f0ded9e885be836c0bb32367d6861ff11c7150 |
23 |
+DIST nsd-4.1.22.tar.gz 1099463 BLAKE2B 955973e9ee01c1a5ed0a7cff38f881c775785b17452538db468f874d032b426a197b3709693c2df148de4a0f87259754b64c7ea02e53d9d96974f8c723267e19 SHA512 cab025b80955a15d174592ba5f0955c59333a988bf11b094c166a80206b51b6fcef65e2e976cd77009bf3fded257719efa4674a3a3a9d859ebc14e35fca2ecfb |
24 |
|
25 |
diff --git a/net-dns/nsd/nsd-4.1.22.ebuild b/net-dns/nsd/nsd-4.1.22.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6e71f765df8 |
28 |
--- /dev/null |
29 |
+++ b/net-dns/nsd/nsd-4.1.22.ebuild |
30 |
@@ -0,0 +1,104 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit user systemd |
37 |
+ |
38 |
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1 |
39 |
+MY_PV="${PV/_rc/rc}" |
40 |
+MY_PV="${MY_PV/_beta/b}" |
41 |
+MY_P="${PN}-${MY_PV}" |
42 |
+ |
43 |
+DESCRIPTION="An authoritative only, high performance, open source name server" |
44 |
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd" |
45 |
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz" |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl libressl" |
50 |
+ |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ virtual/yacc |
55 |
+ libevent? ( dev-libs/libevent ) |
56 |
+ ssl? ( |
57 |
+ !libressl? ( dev-libs/openssl:0= ) |
58 |
+ libressl? ( dev-libs/libressl:= ) |
59 |
+ ) |
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 |
+ local myeconfargs=( |
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 |
+ econf "${myeconfargs[@]}" |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ emake DESTDIR="${D}" install |
102 |
+ |
103 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
104 |
+ |
105 |
+ newinitd "${FILESDIR}"/nsd.initd-r1 nsd |
106 |
+ |
107 |
+ # install munin plugin and config |
108 |
+ if use munin ; then |
109 |
+ exeinto /usr/libexec/munin/plugins |
110 |
+ doexe contrib/nsd_munin_ |
111 |
+ insinto /etc/munin/plugin-conf.d |
112 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
113 |
+ fi |
114 |
+ |
115 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
116 |
+ |
117 |
+ # remove the /run directory that usually resides on tmpfs and is |
118 |
+ # being taken care of by the nsd init script anyway (checkpath) |
119 |
+ rm -r "${ED%/}"/run || die "Failed to remove /run" |
120 |
+ |
121 |
+ keepdir /var/db/${PN} |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ # Do this in postinst to ensure the uid/gid is consistent for binpkgs |
126 |
+ enewgroup nsd |
127 |
+ enewuser nsd -1 -1 -1 nsd |
128 |
+ |
129 |
+ # database directory, writable by nsd for database updates and zone transfers |
130 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd |
131 |
+ |
132 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
133 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd |
134 |
+} |