2008-10-31 22:29:15 +00:00
|
|
|
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
|
|
|
Name: unbound
|
2009-01-14 14:57:11 +00:00
|
|
|
Version: 1.2.0
|
|
|
|
Release: 1%{?dist}
|
2008-10-31 22:29:15 +00:00
|
|
|
License: BSD
|
|
|
|
Url: http://www.nlnetlabs.nl/unbound/
|
|
|
|
Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
|
|
|
|
Source1: unbound.init
|
|
|
|
Source2: unbound.conf
|
2008-11-15 06:45:37 +00:00
|
|
|
Source3: unbound.munin
|
2008-10-31 22:29:15 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-01-14 15:15:35 +00:00
|
|
|
BuildRequires: flex, openssl-devel >= 0.9.8g-12, ldns-devel >= 1.4.0,
|
|
|
|
#BuildRequires libevent-devel >= 1.4.5
|
2008-10-31 22:29:15 +00:00
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): initscripts
|
|
|
|
Requires(postun): initscripts
|
2008-11-15 05:46:07 +00:00
|
|
|
Requires: ldns >= 1.4.0
|
2008-10-31 22:29:15 +00:00
|
|
|
Requires(pre): shadow-utils
|
|
|
|
# Is this obsolete?
|
|
|
|
#Provides: caching-nameserver
|
|
|
|
|
|
|
|
%description
|
|
|
|
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
|
|
|
|
|
|
|
|
The C implementation of Unbound is developed and maintained by NLnet
|
|
|
|
Labs. It is based on ideas and algorithms taken from a java prototype
|
|
|
|
developed by Verisign labs, Nominet, Kirei and ep.net.
|
|
|
|
|
|
|
|
Unbound is designed as a set of modular components, so that also
|
|
|
|
DNSSEC (secure DNS) validation and stub-resolvers (that do not run
|
|
|
|
as a server, but are linked into an application) are easily possible.
|
|
|
|
|
2008-11-15 06:45:37 +00:00
|
|
|
%package munin
|
|
|
|
Summary: Plugin for the munin / munin-node monitoring package
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: munin-node
|
2009-01-14 14:57:11 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}, bc
|
2008-11-15 06:45:37 +00:00
|
|
|
|
|
|
|
%description munin
|
|
|
|
Plugin for the munin / munin-node monitoring package
|
|
|
|
|
2008-10-31 22:29:15 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development package that includes the unbound header files
|
|
|
|
Group: Development/Libraries
|
2009-01-14 15:15:35 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}, openssl-devel, ldns-devel
|
|
|
|
#Requires: libevent-devel >= 1.4.5
|
2008-10-31 22:29:15 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The devel package contains the unbound library and the include files
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries used by the unbound server and client applications
|
|
|
|
Group: Applications/System
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
2009-01-14 14:57:11 +00:00
|
|
|
Requires: openssl >= 0.9.8g-12
|
2008-10-31 22:29:15 +00:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
Contains libraries used by the unbound server and client applications
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-01-14 15:15:35 +00:00
|
|
|
#%configure --with-ldns= -with-libevent --with-pthreads --with-ssl
|
|
|
|
%configure --with-ldns= --with-pthreads --with-ssl \
|
2008-10-31 22:29:15 +00:00
|
|
|
--disable-rpath --enable-debug --disable-static \
|
2008-11-19 23:11:51 +00:00
|
|
|
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
|
2008-10-31 22:29:15 +00:00
|
|
|
--with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid
|
|
|
|
%{__make} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" QUIET=no %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
|
|
install -d 0755 %{buildroot}%{_initrddir}
|
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/unbound
|
2008-11-19 23:11:51 +00:00
|
|
|
install -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/unbound
|
|
|
|
# Install munin plugin and its softlinks
|
2008-11-15 06:45:37 +00:00
|
|
|
install -d 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/unbound
|
|
|
|
install -d 0755 %{buildroot}%{_datadir}/munin/plugins/
|
|
|
|
install -m 0755 contrib/unbound_munin_ %{buildroot}%{_datadir}/munin/plugins/unbound
|
2008-11-19 23:11:51 +00:00
|
|
|
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
|
|
|
|
ln -s unbound %{buildroot}%{_datadir}/munin/plugins/$plugin
|
|
|
|
done
|
2008-10-31 22:29:15 +00:00
|
|
|
|
|
|
|
# remove static library from install (fedora packaging guidelines)
|
|
|
|
rm -rf %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/unbound
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
|
|
|
|
%attr(0755,root,root) %{_initrddir}/%{name}
|
2008-12-02 02:13:31 +00:00
|
|
|
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}
|
2008-10-31 22:29:15 +00:00
|
|
|
%attr(0755,unbound,unbound) %dir %{_localstatedir}/run/%{name}
|
2008-11-19 23:11:51 +00:00
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
|
2008-10-31 22:29:15 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
2008-11-15 06:45:37 +00:00
|
|
|
%files munin
|
|
|
|
%defattr(-,root,root,-)
|
2008-11-15 06:50:03 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
|
2008-11-19 23:11:51 +00:00
|
|
|
%{_datadir}/munin/plugins/unbound*
|
2008-11-15 06:45:37 +00:00
|
|
|
|
2008-10-31 22:29:15 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libunbound.so
|
|
|
|
%{_includedir}/unbound.h
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libunbound.so.*
|
|
|
|
%doc doc/README doc/LICENSE
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group unbound >/dev/null || groupadd -r unbound
|
|
|
|
getent passwd unbound >/dev/null || \
|
2008-11-28 09:46:49 +00:00
|
|
|
useradd -r -g unbound -d %{_sysconfdir}/unbound -s /sbin/nologin \
|
2008-10-31 22:29:15 +00:00
|
|
|
-c "Unbound DNS resolver" unbound
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add %{name}
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
2008-11-19 15:39:16 +00:00
|
|
|
if [ "$1" -eq 0 ]; then
|
2008-10-31 22:29:15 +00:00
|
|
|
/sbin/service %{name} stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del %{name}
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%changelog
|
2009-01-14 14:57:11 +00:00
|
|
|
* Wed Jan 14 2009 Paul Wouters <paul@xelerance.com - 1.2.0-1
|
|
|
|
- Updated to 1.2.0
|
|
|
|
- Added dependancy on minimum SSL for CVE-2008-5077
|
|
|
|
- Added dependancy on bc for unbound-munin
|
|
|
|
- Removed dependancy on selinux-policy (will get used when available)
|
|
|
|
- Enable options as per draft-wijngaards-dnsext-resolver-side-mitigation-00.txt
|
|
|
|
- Enable unwanted-reply-threshold to mitigate against a Kaminsky attack
|
|
|
|
- Enable val-clean-additional to drop addition unsigned data from signed
|
|
|
|
response.
|
2009-01-14 15:00:44 +00:00
|
|
|
- Removed patches (got merged into upstream)
|
2009-01-14 14:57:11 +00:00
|
|
|
|
2009-01-05 13:19:32 +00:00
|
|
|
* Mon Jan 5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-7
|
|
|
|
- Modified scandir patch to silently fail when wildcard matches nothing
|
|
|
|
- Patch to allow unbound-checkconf to find empty wildcard matches
|
|
|
|
|
2009-01-05 11:50:27 +00:00
|
|
|
* Mon Jan 5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-6
|
2009-01-05 11:37:42 +00:00
|
|
|
- Added scandir patch for trusted-keys-file: option, which
|
|
|
|
is used to load multiple dnssec keys in bind file format
|
|
|
|
|
2008-12-08 20:42:45 +00:00
|
|
|
* Mon Dec 8 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-4
|
|
|
|
- Added Requires: for selinux-policy >= 3.5.13-33 for proper SElinux rules.
|
|
|
|
|
2008-12-02 02:13:31 +00:00
|
|
|
* Mon Dec 1 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-3
|
|
|
|
- We did not own the /etc/unbound directory (#474020)
|
|
|
|
- Fixed cvs anomalies
|
|
|
|
|
2008-11-28 09:46:49 +00:00
|
|
|
* Fri Nov 28 2008 Adam Tkac <atkac redhat com> - 1.1.1-2
|
|
|
|
- removed all obsolete chroot related stuff
|
|
|
|
- label control certs after generation correctly
|
|
|
|
|
2008-11-20 15:10:25 +00:00
|
|
|
* Thu Nov 20 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-1
|
|
|
|
- Updated to unbound 1.1.1 which fixes a crasher and
|
|
|
|
addresses nlnetlabs bug #219
|
|
|
|
|
2008-11-19 23:11:51 +00:00
|
|
|
* Wed Nov 19 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-3
|
|
|
|
- Remove the chroot, obsoleted by SElinux
|
|
|
|
- Add additional munin plugin links supported by unbound plugin
|
|
|
|
- Move configuration directory from /var/lib/unbound to /etc/unbound
|
|
|
|
- Modified unbound.init and unbound.conf to account for chroot changes
|
|
|
|
- Updated unbound.conf with new available options
|
|
|
|
- Enabled dns-0x20 protection per default
|
|
|
|
|
2008-11-19 15:39:16 +00:00
|
|
|
* Wed Nov 19 2008 Adam Tkac <atkac redhat com> - 1.1.0-2
|
|
|
|
- unbound-1.1.0-log_open.patch
|
|
|
|
- make sure log is opened before chroot call
|
|
|
|
- tracked as http://www.nlnetlabs.nl/bugs/show_bug.cgi?id=219
|
|
|
|
- removed /dev/log and /var/run/unbound and /etc/resolv.conf from
|
|
|
|
chroot, not needed
|
|
|
|
- don't mount files in chroot, it causes problems during updates
|
|
|
|
- fixed typo in default config file
|
|
|
|
|
2008-11-15 05:46:07 +00:00
|
|
|
* Fri Nov 14 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-1
|
|
|
|
- Updated to version 1.1.0
|
2008-11-15 06:45:37 +00:00
|
|
|
- Updated unbound.conf's statistics options and remote-control
|
|
|
|
to work properly for munin
|
|
|
|
- Added unbound-munin package
|
|
|
|
- Generate unbound remote-control key/certs on first startup
|
2008-11-15 05:46:07 +00:00
|
|
|
- Required ldns is now 1.4.0
|
|
|
|
|
2008-10-31 22:29:15 +00:00
|
|
|
* Wed Oct 22 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-5
|
|
|
|
- Only call ldconfig in -libs package
|
|
|
|
- Move configure into build section
|
|
|
|
- devel subpackage should only depend on libs subpackage
|
|
|
|
|
|
|
|
* Tue Oct 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-4
|
|
|
|
- Fix CFLAGS getting lost in build
|
|
|
|
- Don't enable interface-automatic:yes because that
|
|
|
|
causes unbound to listen on 0.0.0.0 instead of 127.0.0.1
|
|
|
|
|
|
|
|
* Sun Oct 19 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-3
|
|
|
|
- Split off unbound-libs, make build verbose
|
|
|
|
|
|
|
|
* Thu Oct 9 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-2
|
|
|
|
- FSB compliance, chroot fixes, initscript fixes
|
|
|
|
|
|
|
|
* Thu Sep 11 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-1
|
|
|
|
- Upgraded to 1.0.2
|
|
|
|
|
|
|
|
* Wed Jul 16 2008 Paul Wouters <paul@xelerance.com> - 1.0.1-1
|
|
|
|
- upgraded to new release
|
|
|
|
|
|
|
|
* Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-2
|
|
|
|
- Build against ldns-1.3.0
|
|
|
|
|
|
|
|
* Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-1
|
|
|
|
- Split of -devel package, fixed dependancies, make rpmlint happy
|
|
|
|
|
|
|
|
* Thu Apr 25 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.12
|
|
|
|
- Using parts from ports collection entry by Jaap Akkerhuis.
|
|
|
|
- Using Fedoraproject wiki guidelines.
|
|
|
|
|
|
|
|
* Wed Apr 23 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.11
|
|
|
|
- Initial version.
|