1 |
commit: 75f77c551bbbbd9d1180ae815245842f062b9ffb |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 26 07:54:35 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 26 07:54:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75f77c55 |
7 |
|
8 |
net-dns/nsd: Bump to version 4.1.25 |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
|
12 |
net-dns/nsd/Manifest | 1 + |
13 |
net-dns/nsd/nsd-4.1.25.ebuild | 111 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 112 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest |
17 |
index 7593b6fdcb2..9a5655bd11d 100644 |
18 |
--- a/net-dns/nsd/Manifest |
19 |
+++ b/net-dns/nsd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST nsd-4.1.23.tar.gz 1102038 BLAKE2B 673146931421ba7be5e90b6f60db23f9e61f42687e4f0aac2d6624125f09067dab535a3badfd00d795a3948319467f3924ca24cc0697b0c203591c2d6efb1834 SHA512 7eb44658be6a3b94855d1a84201e5f20a02c8d85786ac0b1f82a3a67e6bc3c22602d03a8976c2bcb68ea68f0bcf72f1d9fe688e1fd1f9fbe6a774c97bdcf7939 |
22 |
DIST nsd-4.1.24.tar.gz 1107574 BLAKE2B 9e22d6a07bc7c63efb41b0b4e1a0e1e36d94db9bf79f31a704bd1ec7ba371b059669feebca4b6ed9427ba41017f661ebd8a30a26ee433b45374df75d2c182cb2 SHA512 68f7f62c740e5a73d1b9da4b6d593ff1b728bc398ad126a75febaa523a2117c80315bf90ca6a60aabf38539181e00524cedb106a32b4883aa8ed021462d47762 |
23 |
+DIST nsd-4.1.25.tar.gz 1108285 BLAKE2B 29428e59c0913e9eb6936b577c02b03136ae51e47d58f5d476368b4e6614e240a735a29ec5f224dbca6f76068fa81f0eed32fad75bf647673f35641ac414e3a6 SHA512 3a1de59d799a94aeb236139bf52f1d2e2139002ec8a033948a2324680df513e6c333e3564f526ca4fa106b42e50ae2bc67edadaeee72f608dabed962aacb5423 |
24 |
|
25 |
diff --git a/net-dns/nsd/nsd-4.1.25.ebuild b/net-dns/nsd/nsd-4.1.25.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9a5fc16aa9b |
28 |
--- /dev/null |
29 |
+++ b/net-dns/nsd/nsd-4.1.25.ebuild |
30 |
@@ -0,0 +1,111 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools user systemd |
37 |
+ |
38 |
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1 |
39 |
+MY_PV="${PV/_beta/b}" |
40 |
+MY_PV="${MY_PV/_rc/rc}" |
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 systemd libressl" |
50 |
+ |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ libevent? ( dev-libs/libevent ) |
55 |
+ munin? ( net-analyzer/munin ) |
56 |
+ ssl? ( |
57 |
+ !libressl? ( dev-libs/openssl:0= ) |
58 |
+ libressl? ( dev-libs/libressl:= ) |
59 |
+ ) |
60 |
+ systemd? ( sys-apps/systemd ) |
61 |
+" |
62 |
+DEPEND=" |
63 |
+ ${RDEPEND} |
64 |
+ sys-devel/flex |
65 |
+ virtual/yacc |
66 |
+ systemd? ( virtual/pkgconfig ) |
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_prepare() { |
75 |
+ default |
76 |
+ eautoreconf |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local myeconfargs=( |
81 |
+ --enable-largefile |
82 |
+ --enable-pie |
83 |
+ --enable-relro-now |
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 |
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state |
88 |
+ --with-xfrdir="${EPREFIX}"/var/db/nsd |
89 |
+ --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list |
90 |
+ --with-zonesdir="${EPREFIX}"/var/lib/nsd |
91 |
+ $(use_enable bind8-stats) |
92 |
+ $(use_enable bind8-stats zone-stats) |
93 |
+ $(use_enable ipv6) |
94 |
+ $(use_enable minimal-responses) |
95 |
+ $(use_enable mmap) |
96 |
+ $(use_enable nsec3) |
97 |
+ $(use_enable ratelimit) |
98 |
+ $(use_enable root-server) |
99 |
+ $(use_enable runtime-checks checking) |
100 |
+ $(use_enable systemd) |
101 |
+ $(use_with libevent) |
102 |
+ $(use_with ssl) |
103 |
+ ) |
104 |
+ econf "${myeconfargs[@]}" |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ emake DESTDIR="${D}" install |
109 |
+ |
110 |
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS} |
111 |
+ |
112 |
+ newinitd "${FILESDIR}"/nsd.initd-r1 nsd |
113 |
+ |
114 |
+ # install munin plugin and config |
115 |
+ if use munin ; then |
116 |
+ exeinto /usr/libexec/munin/plugins |
117 |
+ doexe contrib/nsd_munin_ |
118 |
+ insinto /etc/munin/plugin-conf.d |
119 |
+ newins "${FILESDIR}"/nsd.munin-conf nsd_munin |
120 |
+ fi |
121 |
+ |
122 |
+ systemd_dounit "${FILESDIR}"/nsd.service |
123 |
+ |
124 |
+ # remove the /run directory that usually resides on tmpfs and is |
125 |
+ # being taken care of by the nsd init script anyway (checkpath) |
126 |
+ rm -r "${ED%/}"/run || die "Failed to remove /run" |
127 |
+ |
128 |
+ keepdir /var/db/${PN} |
129 |
+} |
130 |
+ |
131 |
+pkg_postinst() { |
132 |
+ # Do this in postinst to ensure the uid/gid is consistent for binpkgs |
133 |
+ enewgroup nsd |
134 |
+ enewuser nsd -1 -1 -1 nsd |
135 |
+ |
136 |
+ # database directory, writable by nsd for database updates and zone transfers |
137 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd |
138 |
+ |
139 |
+ # zones directory, writable by nsd for zone file updates (nsd-control write) |
140 |
+ install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd |
141 |
+} |