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: Tue, 27 Sep 2016 22:34:36
Message-Id: 1475015661.53951248874a1f427c8ccd4e06706469dec9ffcd.polynomial-c@gentoo
1 commit: 53951248874a1f427c8ccd4e06706469dec9ffcd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 22:32:42 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 22:34:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53951248
7
8 net-dns/nsd: Bump to version 4.1.13
9
10 Package-Manager: portage-2.3.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-dns/nsd/Manifest | 1 +
14 net-dns/nsd/nsd-4.1.13.ebuild | 97 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 98 insertions(+)
16
17 diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest
18 index 7457ed8..62bfb39 100644
19 --- a/net-dns/nsd/Manifest
20 +++ b/net-dns/nsd/Manifest
21 @@ -2,3 +2,4 @@ DIST nsd-3.2.22.tar.gz 924627 SHA256 47c2b424c719a1535f709f4e82d796bca43cad86731
22 DIST nsd-4.1.10.tar.gz 1075892 SHA256 3a757014046752a0b0b11c1a2e22a36bb796f89f6939147ed3226556b4298727 SHA512 e77c858d34002e54085f3a39eda7c6229f21f980339beb9a9d5719245d6010e5435a13dba978ac1aed9b712ed49e5a8ca75cb216cb50dd590556077d32b97a96 WHIRLPOOL 8d04b8661e821ec49c93a00a088bec83b3ca3faf7c07d9d720cba1c5c71fc2db3aafc95b5d0d3a8e848c38f11bd9daeb1a53da752bcf8314722aefbd1d55c4d5
23 DIST nsd-4.1.11.tar.gz 1080220 SHA256 c7712fd05eb0ab97040738e01d9369d02b89c0a7fa0943fd5bfc43b2111a92df SHA512 e5f4ad1d39bd75b086f3fc3281fa6ac31f4b6ba9c4a9e23bba527d1a1374dfaf0acaac24168bb5a3ad5a041829d1864331928f18ba49562a25e3f8651609a1f7 WHIRLPOOL 187088f8b1c4c92a7e67535b9f2d1520ff3d056c209535afa74079f4b680bf2afe7766e5a102b1481cfe11beb2169b4e1dedcec6d137ab3044e04cf5715fc579
24 DIST nsd-4.1.12.tar.gz 1080273 SHA256 fd1979dff1fba55310fd4f439dc9f3f4701d435c0ec4fb9af533e12c7f27d5de SHA512 f78c0a24669ce8a0cf5640d90f5dfc8756009a840545feddd9c466a5f0b7441d470efb267f7ad38ed45321a6f8b75ad7db9b13bdaefab55b7614ebb3e9bd183b WHIRLPOOL 6304ff6b25a315cf3e340d9cf3cffee141abfdceaeb71ac94c97fe78d14698fe2164042db7785a254feeecd4170c4ad7a8fccdf165cfb5bbefbe1244fdbd4bea
25 +DIST nsd-4.1.13.tar.gz 1085701 SHA256 c45cd4ba2101a027e133b2be44db9378e27602e05f09a5ef25019e1ae45291af SHA512 f355402273480b2befe914ab2e933c37ec35e5c8e747f85ba03bf8928e42ab809bb6b21cf2b8bf11e8d422a795254e1d916b154156243bc94752a01fb540525e WHIRLPOOL f5d7d3386649b82bf2f7eb6ab2f0c50b2f11e4e545931d99352a63317cda127278e5d9219763dc51a5e3a73daa0ab04e45b037eea738cad20cabf284068e9c7c
26
27 diff --git a/net-dns/nsd/nsd-4.1.13.ebuild b/net-dns/nsd/nsd-4.1.13.ebuild
28 new file mode 100644
29 index 00000000..3719d0f
30 --- /dev/null
31 +++ b/net-dns/nsd/nsd-4.1.13.ebuild
32 @@ -0,0 +1,97 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit user systemd
40 +
41 +DESCRIPTION="An authoritative only, high performance, open source name server"
42 +HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
43 +# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1
44 +MY_PV=${PV/_rc/rc}
45 +MY_PV=${MY_PV/_beta/b}
46 +MY_P=${PN}-${MY_PV}
47 +S="${WORKDIR}/${MY_P}"
48 +SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
49 +
50 +LICENSE="BSD"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl libressl"
54 +
55 +RDEPEND="
56 + virtual/yacc
57 + libevent? ( dev-libs/libevent )
58 + ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= ) )
59 + munin? ( net-analyzer/munin )
60 +"
61 +DEPEND="
62 + ${RDEPEND}
63 + sys-devel/flex
64 +"
65 +
66 +src_prepare() {
67 + # Fix the paths in the munin plugin to match our install
68 + eapply "${FILESDIR}"/nsd_munin_.patch
69 + eapply_user
70 +}
71 +
72 +src_configure() {
73 + econf \
74 + --enable-pie \
75 + --enable-relro-now \
76 + --enable-largefile \
77 + --with-logfile="${EPREFIX}"/var/log/nsd.log \
78 + --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \
79 + --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \
80 + --with-xfrdir="${EPREFIX}"/var/db/nsd \
81 + --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state \
82 + --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list \
83 + --with-zonesdir="${EPREFIX}"/var/lib/nsd \
84 + $(use_enable bind8-stats) \
85 + $(use_enable bind8-stats zone-stats) \
86 + $(use_enable ipv6) \
87 + $(use_enable minimal-responses) \
88 + $(use_enable mmap) \
89 + $(use_enable nsec3) \
90 + $(use_enable ratelimit) \
91 + $(use_enable root-server) \
92 + $(use_enable runtime-checks checking) \
93 + $(use_with libevent) \
94 + $(use_with ssl)
95 +}
96 +
97 +src_install() {
98 + emake DESTDIR="${D}" install
99 +
100 + dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
101 +
102 + newinitd "${FILESDIR}"/nsd.initd-r1 nsd
103 +
104 + # install munin plugin and config
105 + if use munin ; then
106 + exeinto /usr/libexec/munin/plugins
107 + doexe contrib/nsd_munin_
108 + insinto /etc/munin/plugin-conf.d
109 + newins "${FILESDIR}"/nsd.munin-conf nsd_munin
110 + fi
111 +
112 + systemd_dounit "${FILESDIR}"/nsd.service
113 +
114 + # remove the /run directory that usually resides on tmpfs and is
115 + # being taken care of by the nsd init script anyway (checkpath)
116 + rm -r "${ED}"/run || die "Failed to remove /run"
117 +}
118 +
119 +pkg_postinst() {
120 + # Do this in postinst to ensure the uid/gid is consistent for binpkgs
121 + enewgroup nsd
122 + enewuser nsd -1 -1 -1 nsd
123 +
124 + # database directory, writable by nsd for database updates and zone transfers
125 + install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd
126 +
127 + # zones directory, writable by nsd for zone file updates (nsd-control write)
128 + install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd
129 +}