2 %{?!with_python: %global with_python 1}
5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
9 Summary: Validating, recursive, and caching DNS(SEC) resolver
14 Url: http://www.nlnetlabs.nl/unbound/
15 Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
18 Source3: unbound.munin
19 Source4: unbound_munin_
21 Patch1: unbound-1.2-glob.patch
23 Group: System Environment/Daemons
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25 BuildRequires: flex, openssl-devel , ldns-devel >= 1.5.0,
26 BuildRequires: libevent-devel expat-devel
28 BuildRequires: python-devel swig
30 # Required for SVN versions
31 # BuildRequires: bison
33 Requires(post): chkconfig
34 Requires(preun): chkconfig
35 Requires(preun): initscripts
36 Requires(postun): initscripts
37 Requires: ldns >= 1.5.0
38 Requires(pre): shadow-utils
40 Obsoletes: dnssec-conf < 1.27-2
41 Provides: dnssec-conf = 1.27-1
44 Unbound is a validating, recursive, and caching DNS(SEC) resolver.
46 The C implementation of Unbound is developed and maintained by NLnet
47 Labs. It is based on ideas and algorithms taken from a java prototype
48 developed by Verisign labs, Nominet, Kirei and ep.net.
50 Unbound is designed as a set of modular components, so that also
51 DNSSEC (secure DNS) validation and stub-resolvers (that do not run
52 as a server, but are linked into an application) are easily possible.
55 Summary: Plugin for the munin / munin-node monitoring package
56 Group: System Environment/Daemons
58 Requires: %{name} = %{version}-%{release}, bc
61 Plugin for the munin / munin-node monitoring package
64 Summary: Development package that includes the unbound header files
65 Group: Development/Libraries
66 Requires: %{name}-libs = %{version}-%{release}, openssl-devel, ldns-devel
69 The devel package contains the unbound library and the include files
72 Summary: Libraries used by the unbound server and client applications
73 Group: Applications/System
74 Requires(post): /sbin/ldconfig
75 Requires(postun): /sbin/ldconfig
79 Contains libraries used by the unbound server and client applications
83 Summary: Python modules and extensions for unbound
84 Group: Applications/System
85 Requires: %{name}-libs = %{version}-%{release}
88 Python modules and extensions for unbound
96 %configure --with-ldns= --with-libevent --with-pthreads --with-ssl \
97 --disable-rpath --disable-static \
98 --with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
99 --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid \
101 --with-pythonmodule --with-pyunbound \
103 --enable-sha2 --disable-gost
104 %{__make} %{?_smp_mflags}
108 %{__make} DESTDIR=%{buildroot} install
109 install -d 0755 %{buildroot}%{_initrddir}
110 install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/unbound
111 install -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/unbound
112 # Install munin plugin and its softlinks
113 install -d 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
114 install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/unbound
115 install -d 0755 %{buildroot}%{_datadir}/munin/plugins/
116 install -m 0755 %{SOURCE4} %{buildroot}%{_datadir}/munin/plugins/unbound
117 for plugin in unbound_munin_hits unbound_munin_queue unbound_munin_memory unbound_munin_by_type unbound_munin_by_class unbound_munin_by_opcode unbound_munin_by_rcode unbound_munin_by_flags unbound_munin_histogram; do
118 ln -s unbound %{buildroot}%{_datadir}/munin/plugins/$plugin
121 # install root and DLV key
122 install -m 0644 %{SOURCE5} %{SOURCE6} %{buildroot}%{_sysconfdir}/unbound/
124 # remove static library from install (fedora packaging guidelines)
125 rm %{buildroot}%{_libdir}/*.la
127 rm %{buildroot}%{python_sitearch}/*.la
130 mkdir -p %{buildroot}%{_localstatedir}/run/unbound
133 rm -rf ${RPM_BUILD_ROOT}
136 %defattr(-,root,root,-)
137 %doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
138 %attr(0755,root,root) %{_initrddir}/%{name}
139 %attr(0755,root,root) %dir %{_sysconfdir}/%{name}
140 %ghost %attr(0755,unbound,unbound) %dir %{_localstatedir}/run/%{name}
141 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
142 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/root.key
148 %defattr(-,root,root,-)
150 %doc libunbound/python/examples/*
151 %doc pythonmod/examples/*
155 %defattr(-,root,root,-)
156 %config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
157 %{_datadir}/munin/plugins/unbound*
160 %defattr(-,root,root,-)
161 %{_libdir}/libunbound.so
162 %{_includedir}/unbound.h
166 %defattr(-,root,root,-)
167 %{_libdir}/libunbound.so.*
168 %doc doc/README doc/LICENSE
171 getent group unbound >/dev/null || groupadd -r unbound
172 getent passwd unbound >/dev/null || \
173 useradd -r -g unbound -d %{_sysconfdir}/unbound -s /sbin/nologin \
174 -c "Unbound DNS resolver" unbound
178 /sbin/chkconfig --add %{name}
180 %post libs -p /sbin/ldconfig
183 if [ "$1" -eq 0 ]; then
184 /sbin/service %{name} stop >/dev/null 2>&1
185 /sbin/chkconfig --del %{name}
189 if [ "$1" -ge "1" ]; then
190 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
193 %postun libs -p /sbin/ldconfig
196 * Tue Sep 06 2011 Paul Wouters <paul@xelerance.com> - 1.4.13-1
198 - Fix install location of pythonmod from sitelib to sitearch
199 - Removed patches merged in by upstream
200 - Removed versioned openssl dep, it differs per branch
202 * Mon Aug 08 2011 Paul Wouters <paul@xelerance.com> - 1.4.12-3
203 - Added pythonmod docs and examples
204 - Fix for python module load in the server (Tom Hendrikx)
205 - No longer enable --enable-debug as it causes degraded performance
208 * Mon Jul 18 2011 Paul Wouters <paul@xelerance.com> - 1.4.12-1
211 * Sun Jul 03 2011 Paul Wouters <paul@xelerance.com> - 1.4.11-1
213 - removed integrated CVE patch
214 - updated stock unbound.conf for new options introduced
216 * Mon Jun 06 2011 Paul Wouters <paul@xelerance.com> - 1.4.10-1
217 - Added ghost for /var/run/unbound (bz#656710)
219 * Mon Jun 06 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-3
222 * Wed May 25 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-2
223 - Applied patch for CVE-2011-1922 DoS vulnerability
225 * Sun Mar 27 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-1
228 * Sat Feb 12 2011 Paul Wouters <paul@xelerance.com> - 1.4.8-2
231 * Tue Jan 25 2011 Paul Wouters <paul@xelerance.com> - 1.4.8-1
233 - Enable root key for DNSSEC
234 - Fix unbound-munin to use proper file (could cause excessive logging)
235 - Build unbound-python per default
236 - Disable gost as Fedora/EPEL does not allow ECC and has mangled openssl
238 * Tue Oct 26 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-4
239 - Revert last build - it was on the wrong branch
241 * Tue Oct 26 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-3
242 - Disable do-ipv6 per default - causes severe degradation on non-ipv6 machines
243 (see comments in inbound.conf)
245 * Tue Jun 15 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-2
246 - Bump release - forgot to upload the new tar ball.
248 * Tue Jun 15 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-1
251 * Mon May 31 2010 Paul Wouters <paul@xelerance.com> - 1.4.4-2
252 - Added accidentally omitted svn patches to cvs
254 * Mon May 31 2010 Paul Wouters <paul@xelerance.com> - 1.4.4-1
255 - Upgraded to 1.4.4 with svn patches
256 - Obsolete dnssec-conf to ensure it is de-installed
258 * Thu Mar 11 2010 Paul Wouters <paul@xelerance.com> - 1.4.3-1
259 - Update to 1.4.3 that fixes 64bit crasher
261 * Tue Mar 09 2010 Paul Wouters <paul@xelerance.com> - 1.4.2-1
263 - Updated unbound.conf with new options
264 - Enabled pre-fetching DNSKEY records (DNSSEC speedup)
265 - Enabled re-fetching popular records before they expire
266 - Enabled logging of DNSSEC validation errors
268 * Mon Mar 01 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-5
269 - Overriding -D_GNU_SOURCE is no longer needed. This fixes DSO issues
272 * Wed Feb 24 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-3
273 - Change make/configure lines to attempt to fix -lphtread linking issue
275 * Thu Feb 18 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-2
276 - Removed dependency for dnssec-conf
277 - Added ISC DLV key (formerly in dnssec-conf)
278 - Fixup old DLV locations in unbound.conf file via %%post
279 - Fix parent child disagreement handling and no-ipv6 present [svn r1953]
281 * Tue Jan 05 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-1
283 - Changed %%define to %%global
285 * Thu Oct 08 2009 Paul Wouters <paul@xelerance.com> - 1.3.4-2
288 * Thu Oct 08 2009 Paul Wouters <paul@xelerance.com> - 1.3.4-1
289 - Upgraded to 1.3.4. Security fix with validating NSEC3 records
291 * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.3.3-2
292 - rebuilt with new openssl
294 * Mon Aug 17 2009 Paul Wouters <paul@xelerance.com> - 1.3.3-1
297 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
298 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
300 * Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-2
301 - Added missing glob patch to cvs
302 - Place python macros within the %%with_python check
304 * Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-1
306 - Added unbound-python sub package. disabled for now
307 - Patch from svn to fix DLV lookups
308 - Patches from svn to detect wrong truncated response from BIND 9.6.1 with
310 - Added Default-Start and Default-Stop to unbound.init
311 - Re-enabled --enable-sha2
312 - Re-enabled glob.patch
314 * Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-7
315 - unbound-iterator.patch was not committed
317 * Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-6
318 - Fix for https://bugzilla.redhat.com/show_bug.cgi?id=499793
320 * Tue Mar 17 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-5
321 - Use --nocheck to avoid giving an error on missing unbound-remote certs/keys
323 * Tue Mar 10 2009 Adam Tkac <atkac redhat com> - 1.2.1-4
324 - enable DNSSEC only if it is enabled in sysconfig/dnssec
326 * Mon Mar 09 2009 Adam Tkac <atkac redhat com> - 1.2.1-3
327 - add DNSSEC support to initscript and enabled it per default
328 - add requires dnssec-conf
330 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
331 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
333 * Tue Feb 10 2009 Paul Wouters <paul@xelerance.com - 1.2.1-1
336 * Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2
337 - rebuild with new openssl
339 * Wed Jan 14 2009 Paul Wouters <paul@xelerance.com - 1.2.0-1
341 - Added dependency on minimum SSL for CVE-2008-5077
342 - Added dependency on bc for unbound-munin
343 - Added minimum requirement of libevent 1.4.5. Crashes with older versions
344 (note: libevent is stale in EL-4 and not in EL-5, needs fixing there)
345 - Removed dependency on selinux-policy (will get used when available)
346 - Enable options as per draft-wijngaards-dnsext-resolver-side-mitigation-00.txt
347 - Enable unwanted-reply-threshold to mitigate against a Kaminsky attack
348 - Enable val-clean-additional to drop addition unsigned data from signed
350 - Removed patches (got merged into upstream)
352 * Mon Jan 5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-7
353 - Modified scandir patch to silently fail when wildcard matches nothing
354 - Patch to allow unbound-checkconf to find empty wildcard matches
356 * Mon Jan 5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-6
357 - Added scandir patch for trusted-keys-file: option, which
358 is used to load multiple dnssec keys in bind file format
360 * Mon Dec 8 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-4
361 - Added Requires: for selinux-policy >= 3.5.13-33 for proper SElinux rules.
363 * Mon Dec 1 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-3
364 - We did not own the /etc/unbound directory (#474020)
365 - Fixed cvs anomalies
367 * Fri Nov 28 2008 Adam Tkac <atkac redhat com> - 1.1.1-2
368 - removed all obsolete chroot related stuff
369 - label control certs after generation correctly
371 * Thu Nov 20 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-1
372 - Updated to unbound 1.1.1 which fixes a crasher and
373 addresses nlnetlabs bug #219
375 * Wed Nov 19 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-3
376 - Remove the chroot, obsoleted by SElinux
377 - Add additional munin plugin links supported by unbound plugin
378 - Move configuration directory from /var/lib/unbound to /etc/unbound
379 - Modified unbound.init and unbound.conf to account for chroot changes
380 - Updated unbound.conf with new available options
381 - Enabled dns-0x20 protection per default
383 * Wed Nov 19 2008 Adam Tkac <atkac redhat com> - 1.1.0-2
384 - unbound-1.1.0-log_open.patch
385 - make sure log is opened before chroot call
386 - tracked as http://www.nlnetlabs.nl/bugs/show_bug.cgi?id=219
387 - removed /dev/log and /var/run/unbound and /etc/resolv.conf from
389 - don't mount files in chroot, it causes problems during updates
390 - fixed typo in default config file
392 * Fri Nov 14 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-1
393 - Updated to version 1.1.0
394 - Updated unbound.conf's statistics options and remote-control
395 to work properly for munin
396 - Added unbound-munin package
397 - Generate unbound remote-control key/certs on first startup
398 - Required ldns is now 1.4.0
400 * Wed Oct 22 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-5
401 - Only call ldconfig in -libs package
402 - Move configure into build section
403 - devel subpackage should only depend on libs subpackage
405 * Tue Oct 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-4
406 - Fix CFLAGS getting lost in build
407 - Don't enable interface-automatic:yes because that
408 causes unbound to listen on 0.0.0.0 instead of 127.0.0.1
410 * Sun Oct 19 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-3
411 - Split off unbound-libs, make build verbose
413 * Thu Oct 9 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-2
414 - FSB compliance, chroot fixes, initscript fixes
416 * Thu Sep 11 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-1
419 * Wed Jul 16 2008 Paul Wouters <paul@xelerance.com> - 1.0.1-1
420 - upgraded to new release
422 * Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-2
423 - Build against ldns-1.3.0
425 * Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-1
426 - Split of -devel package, fixed dependencies, make rpmlint happy
428 * Thu Apr 25 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.12
429 - Using parts from ports collection entry by Jaap Akkerhuis.
430 - Using Fedoraproject wiki guidelines.
432 * Wed Apr 23 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.11