1 Summary: Validating, recursive, and caching DNS resolver
6 Url: http://www.nlnetlabs.nl/unbound/
7 Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
9 Group: System Environment/Daemons
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 BuildRequires: flex, openssl-devel, expat-devel, ldns-devel
15 Unbound is a validating, recursive, and caching DNS resolver.
17 The C implementation of Unbound is developed and maintained by NLnet
18 Labs. It is based on ideas and algorithms taken from a java prototype
19 developed by Verisign labs, Nominet, Kirei and ep.net.
21 Unbound is designed as a set of modular components, so that also
22 DNSSEC (secure DNS) validation and stub-resolvers (that do not run
23 as a server, but are linked into an application) are easily possible.
25 The source code is under a BSD License.
30 # configure with /var/unbound/unbound.conf so that all default chroot,
31 # pidfile and config file are in /var/unbound, ready for chroot jail set up.
32 %configure --with-conf-file=%{_localstatedir}/%{name}/unbound.conf --disable-rpath
35 #%{__make} %{?_smp_mflags}
40 %{__make} DESTDIR=%{buildroot} install
41 install -d 0700 %{buildroot}%{_localstatedir}/%{name}
42 install -d 0755 %{buildroot}%{_initrddir}
43 install -m 0755 contrib/unbound.init %{buildroot}%{_initrddir}/unbound
44 # add symbolic link from /etc/unbound.conf -> /var/unbound/unbound.conf
45 ln -s %{_localstatedir}/unbound/unbound.conf %{buildroot}%{_sysconfdir}/unbound.conf
46 # remove static library from install (fedora packaging guidelines)
47 rm -f %{buildroot}%{_libdir}/libunbound.a %{buildroot}%{_libdir}/libunbound.la
50 rm -rf ${RPM_BUILD_ROOT}
53 %defattr(-,root,root,-)
54 %doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
55 %attr(0755,root,root) %{_initrddir}/%{name}
56 %attr(0700,%{name},%{name}) %dir %{_localstatedir}/%{name}
57 %attr(0644,%{name},%{name}) %config(noreplace) %{_localstatedir}/%{name}/unbound.conf
58 %attr(0644,%{name},%{name}) %config(noreplace) %{_sysconfdir}/unbound.conf
62 %{_libdir}/libunbound*
65 getent group unbound >/dev/null || groupadd -r unbound
66 getent passwd unbound >/dev/null || \
67 useradd -r -g unbound -d /var/unbound -s /sbin/nologin \
68 -c "unbound name daemon" unbound
72 # This adds the proper /etc/rc*.d links for the script
73 /sbin/chkconfig --add %{name}
77 /sbin/service %{name} stop >/dev/null 2>&1
78 /sbin/chkconfig --del %{name}
80 rm -f /var/unbound/dev/log /var/unbound/dev/random /var/unbound/etc/localtime /var/unbound/etc/resolv.conf >/dev/null 2>&1
81 rmdir /var/unbound/dev >/dev/null 2>&1 || :
82 rmdir /var/unbound/etc >/dev/null 2>&1 || :
83 rmdir /var/unbound >/dev/null 2>&1 || :
87 if [ "$1" -ge "1" ]; then
88 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
92 * Thu Jul 13 2011 Wouter Wijngaards <wouter@nlnetlabs.nl> - 1.4.8
93 - ldns required and ldns-devel required for build, no more ldns-builtin.
95 * Thu Mar 17 2011 Wouter Wijngaards <wouter@nlnetlabs.nl> - 1.4.8
96 - removed --disable-gost, assume recent openssl on the destination platform.
98 * Wed Mar 16 2011 Harold Jones <hajones@verisign.com> - 1.4.8
99 - Bump version number to latest
100 - Add expat-devel to BuildRequires
101 - Added --disable-gost for building on CentOS 5.x
102 - Added --with-ldns-builtin for CentOS 5.x
104 * Thu May 22 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 1.0.0
105 - contrib changes from Patrick Vande Walle.
107 * Thu Apr 25 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.12
108 - Using parts from ports collection entry by Jaap Akkerhuis.
109 - Using Fedoraproject wiki guidelines.
111 * Wed Apr 23 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.11