Gentoo Archives: gentoo-commits

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