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: Thu, 30 Nov 2017 19:05:34
Message-Id: 1512068727.44eaa7f81365ae42635ca3fa6b82681d211b2cf7.polynomial-c@gentoo
1 commit: 44eaa7f81365ae42635ca3fa6b82681d211b2cf7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 30 19:04:51 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 19:05:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44eaa7f8
7
8 net-dns/nsd: Bump to version 4.1.18
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 net-dns/nsd/Manifest | 1 +
13 net-dns/nsd/nsd-4.1.18.ebuild | 102 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 103 insertions(+)
15
16 diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest
17 index b72cf6904af..1dc776ef4be 100644
18 --- a/net-dns/nsd/Manifest
19 +++ b/net-dns/nsd/Manifest
20 @@ -1,2 +1,3 @@
21 DIST nsd-4.1.16.tar.gz 1088633 SHA256 7f8367ad23cc5cddffa885e7e2f549123c8b4123db9726df41d99f255d6baab2 SHA512 51135bbf412cdc5d6d9be02af9fef16513f0529155c102debfd6bd68b025d289c684777a8fca57de86b25f68bc94aef89d2cfefb871b8d63048d262f6c8eb8e3 WHIRLPOOL 030da2551abef8cb29e16574155605eb9377836f1a43422e200ba5bc6ede319893d4293018cf0be242d1ac0cfad4c3b40f566c7ad587792186c64102d8c9785f
22 DIST nsd-4.1.17.tar.gz 1089526 SHA256 107fa506d18ed6fd0a922d1b96774afd9270ec38ec6b17cd7c46fb9433a03a6c SHA512 4cffa261b1832d0daac095e92542359ffd725918f07ec605c78a9346b1cf4a4bc21bdc59ab388eb7324a170bbd8b122cfa75e7448015b38572b47d18add24a8f WHIRLPOOL c8892dca5f5c625d435cfde3f556ccc7518f3e37b7242892f9c101f4ffa5da1a2ea09083a30942bb1dad91ab70b40b2647339b2a4988f08478db9b6dd2b1c3df
23 +DIST nsd-4.1.18.tar.gz 1095673 BLAKE2B e3dc86e64614323dbefb334769a8095dc674f422f8e62c91e2918f4622ceac0ebef7dec42d5a714b15ad2f3af368ba817239a0027d3a685abf603cf00e9fa9d1 SHA512 d9939b8813677127ccd3e87e709b27a8a4f96cc0221ab77563d9349cb6dd56ae39bb7349ede9aed9aaa07de9310bcaeb8be8b17f608e9c4714b4fb084f2e756f
24
25 diff --git a/net-dns/nsd/nsd-4.1.18.ebuild b/net-dns/nsd/nsd-4.1.18.ebuild
26 new file mode 100644
27 index 00000000000..4a7e4dbabe2
28 --- /dev/null
29 +++ b/net-dns/nsd/nsd-4.1.18.ebuild
30 @@ -0,0 +1,102 @@
31 +# Copyright 1999-2017 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 +
122 +pkg_postinst() {
123 + # Do this in postinst to ensure the uid/gid is consistent for binpkgs
124 + enewgroup nsd
125 + enewuser nsd -1 -1 -1 nsd
126 +
127 + # database directory, writable by nsd for database updates and zone transfers
128 + install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd
129 +
130 + # zones directory, writable by nsd for zone file updates (nsd-control write)
131 + install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd
132 +}