Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/nsd: nsd-3.2.18.ebuild nsd-4.1.0.ebuild ChangeLog nsd-3.2.17.ebuild nsd-4.0.3.ebuild nsd-3.2.16.ebuild nsd-4.0.0.ebuild
Date: Sun, 28 Sep 2014 18:12:54
Message-Id: 20140928181251.6863413A7@oystercatcher.gentoo.org
1 floppym 14/09/28 18:12:51
2
3 Modified: ChangeLog
4 Added: nsd-3.2.18.ebuild nsd-4.1.0.ebuild
5 Removed: nsd-3.2.17.ebuild nsd-4.0.3.ebuild
6 nsd-3.2.16.ebuild nsd-4.0.0.ebuild
7 Log:
8 Version bumps, remove old. Install systemd unit, bug 522290. Move user creation to pkg_postinst for improved binpkg handling.
9
10 (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
11
12 Revision Changes Path
13 1.11 net-dns/nsd/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?rev=1.11&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?rev=1.11&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/ChangeLog?r1=1.10&r2=1.11
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v
22 retrieving revision 1.10
23 retrieving revision 1.11
24 diff -u -r1.10 -r1.11
25 --- ChangeLog 26 Mar 2014 07:50:41 -0000 1.10
26 +++ ChangeLog 28 Sep 2014 18:12:51 -0000 1.11
27 @@ -1,6 +1,15 @@
28 # ChangeLog for net-dns/nsd
29 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v 1.10 2014/03/26 07:50:41 wschlich Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v 1.11 2014/09/28 18:12:51 floppym Exp $
32 +
33 +*nsd-3.2.18 (28 Sep 2014)
34 +*nsd-4.1.0 (28 Sep 2014)
35 +
36 + 28 Sep 2014; Mike Gilbert <floppym@g.o> +files/nsd.service,
37 + +nsd-3.2.18.ebuild, +nsd-4.1.0.ebuild, -nsd-3.2.16.ebuild, -nsd-3.2.17.ebuild,
38 + -nsd-4.0.0.ebuild, -nsd-4.0.3.ebuild:
39 + Version bumps, remove old. Install systemd unit, bug 522290. Move user
40 + creation to pkg_postinst for improved binpkg handling.
41
42 26 Mar 2014; Wolfram Schlich <wschlich@g.o> files/nsd.munin-conf:
43 munin config update by tom@×××××××××.net (bug #505360, comment 3)
44
45
46
47 1.1 net-dns/nsd/nsd-3.2.18.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-3.2.18.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-3.2.18.ebuild?rev=1.1&content-type=text/plain
51
52 Index: nsd-3.2.18.ebuild
53 ===================================================================
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/nsd-3.2.18.ebuild,v 1.1 2014/09/28 18:12:51 floppym Exp $
57
58 EAPI=5
59
60 inherit user
61
62 DESCRIPTION="An authoritative only, high performance, open source name server"
63 HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
64 MY_PV=${PV/_rc/rc}
65 MY_PV=${MY_PV/_beta/b}
66 MY_P=${PN}-${MY_PV}
67 S="${WORKDIR}/${MY_P}"
68 SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
69
70 LICENSE="BSD"
71 SLOT="0"
72 KEYWORDS="~amd64 ~x86"
73 IUSE="bind8-stats ipv6 minimal-responses mmap +nsec3 ratelimit root-server runtime-checks zone-stats"
74
75 RDEPEND="
76 dev-libs/openssl
77 virtual/yacc
78 "
79 DEPEND="
80 ${RDEPEND}
81 sys-devel/flex
82 "
83
84 src_configure() {
85 # ebuild.sh sets localstatedir to /var/lib, but nsd expects /var in several locations
86 # some of these cannot be changed by arguments to econf/configure, f.i. logfile
87 econf \
88 --localstatedir="${EPREFIX}/var" \
89 --with-pidfile="${EPREFIX}/var/run/nsd/nsd.pid" \
90 --with-zonesdir="${EPREFIX}/var/lib/nsd" \
91 --enable-largefile \
92 $(use_enable bind8-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 zone-stats)
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install
105
106 dodoc doc/{ChangeLog,CREDITS,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
107
108 insinto /usr/share/nsd
109 doins contrib/nsd.zones2nsd.conf
110
111 exeinto /etc/cron.daily
112 newexe "${FILESDIR}"/nsd3-patch.cron nsd-patch.cron
113
114 newinitd "${FILESDIR}"/nsd3.initd-r1 nsd
115
116 # remove /var/run data created by Makefile, handled by initd script
117 rm -r "${D}"/var/run || die "could not remove /var/run/ directory"
118
119 }
120
121 pkg_postinst() {
122 enewgroup nsd
123 enewuser nsd -1 -1 -1 nsd
124
125 # database directory, writable by nsd for database updates and zone transfers
126 install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd
127
128 # zones directory, writable by root for 'nsdc patch'
129 install -d -m 750 -o root -g nsd "${EROOT%/}"/var//nsd
130 }
131
132
133
134 1.1 net-dns/nsd/nsd-4.1.0.ebuild
135
136 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-4.1.0.ebuild?rev=1.1&view=markup
137 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/nsd/nsd-4.1.0.ebuild?rev=1.1&content-type=text/plain
138
139 Index: nsd-4.1.0.ebuild
140 ===================================================================
141 # Copyright 1999-2014 Gentoo Foundation
142 # Distributed under the terms of the GNU General Public License v2
143 # $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/nsd-4.1.0.ebuild,v 1.1 2014/09/28 18:12:51 floppym Exp $
144
145 EAPI=5
146
147 inherit user eutils systemd
148
149 DESCRIPTION="An authoritative only, high performance, open source name server"
150 HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
151 # version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1
152 MY_PV=${PV/_rc/rc}
153 MY_PV=${MY_PV/_beta/b}
154 MY_P=${PN}-${MY_PV}
155 S="${WORKDIR}/${MY_P}"
156 SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
157
158 LICENSE="BSD"
159 SLOT="0"
160 KEYWORDS="~amd64 ~x86"
161 IUSE="bind8-stats ipv6 libevent minimal-responses mmap munin +nsec3 ratelimit root-server runtime-checks ssl"
162
163 RDEPEND="
164 dev-libs/openssl
165 virtual/yacc
166 libevent? ( dev-libs/libevent )
167 ssl? ( dev-libs/openssl )
168 munin? ( net-analyzer/munin )
169 "
170 DEPEND="
171 ${RDEPEND}
172 sys-devel/flex
173 "
174
175 src_prepare() {
176 # Fix the paths in the munin plugin to match our install
177 epatch "${FILESDIR}"/nsd_munin_.patch
178 }
179
180 src_configure() {
181 econf \
182 --enable-largefile \
183 --with-logfile="${EPREFIX}"/var/log/nsd.log \
184 --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \
185 --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \
186 --with-xfrdir="${EPREFIX}"/var/db/nsd \
187 --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.state \
188 --with-zonelistfile="${EPREFIX}"/var/db/nsd/zone.list \
189 --with-zonesdir="${EPREFIX}"/var/lib/nsd \
190 $(use_enable bind8-stats) \
191 $(use_enable ipv6) \
192 $(use_enable minimal-responses) \
193 $(use_enable mmap) \
194 $(use_enable nsec3) \
195 $(use_enable ratelimit) \
196 $(use_enable root-server) \
197 $(use_enable runtime-checks checking) \
198 $(use_with libevent) \
199 $(use_with ssl)
200 }
201
202 src_install() {
203 emake DESTDIR="${D}" install
204
205 dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
206
207 newinitd "${FILESDIR}"/nsd.initd nsd
208
209 # install munin plugin and config
210 if use munin; then
211 exeinto /usr/libexec/munin/plugins
212 doexe contrib/nsd_munin_
213 insinto /etc/munin/plugin-conf.d
214 newins "${FILESDIR}"/nsd.munin-conf nsd_munin
215 fi
216
217 systemd_dounit "${FILESDIR}"/nsd.service
218
219 # remove the /run directory that usually resides on tmpfs and is
220 # being taken care of by the nsd init script anyway (checkpath)
221 rm -rf "${D}"/run || die "Failed to remove /run"
222 }
223
224 pkg_postinst() {
225 # Do this in postinst to ensure the uid/gid is consistent for binpkgs
226 enewgroup nsd
227 enewuser nsd -1 -1 -1 nsd
228
229 # database directory, writable by nsd for database updates and zone transfers
230 install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/db/nsd
231
232 # zones directory, writable by nsd for zone file updates (nsd-control write)
233 install -d -m 750 -o nsd -g nsd "${EROOT%/}"/var/lib/nsd
234 }