4359b6
%{?!with_python:      %global with_python      1}
4359b6
%{?!with_munin:       %global with_munin       0}
4359b6
%{?!with_test:        %global with_test        1}
4359b6
4359b6
%if %{with_python}
4359b6
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4359b6
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
4359b6
%endif
4359b6
4359b6
%global _hardened_build 1
4359b6
4359b6
Summary: Validating, recursive, and caching DNS(SEC) resolver
4359b6
Name: unbound
4359b6
Version: 1.6.6
4359b6
Release: 2%{?dist}
4359b6
License: BSD
4359b6
Url: https://unbound.net/
4359b6
Source: https://www.unbound.net/downloads/%{name}-%{version}.tar.gz
4359b6
Source1: unbound.service
4359b6
Source2: unbound.conf
4359b6
Source3: unbound.munin
4359b6
Source4: unbound_munin_
4359b6
Source5: root.key
4359b6
Source6: dlv.isc.org.key
4359b6
Source7: unbound-keygen.service
4359b6
Source8: tmpfiles-unbound.conf
4359b6
Source9: example.com.key
4359b6
Source10: example.com.conf
4359b6
Source11: block-example.com.conf
4359b6
Source12: https://data.iana.org/root-anchors/icannbundle.pem
4359b6
Source13: root.anchor
4359b6
Source14: unbound.sysconfig
4359b6
Source15: unbound-anchor.timer
4359b6
Source16: unbound-munin.README
4359b6
Source17: unbound-anchor.service
4359b6
4359b6
Patch1: unbound-1.6.3-longcheck-fixup.patch
4359b6
Patch3: unbound-1.6.3-print-test-fails.patch
4359b6
Patch4: unbound-1.6.3-coverity.patch
4359b6
# Randomize outgoing port too, do not fail on two running builds on one host
4359b6
Patch5: unbound-1.6.6-test-fwd_oneport.patch
4359b6
Patch6: unbound-1.6.6-fix-domain-insecure-for-stub-zone.patch
4359b6
4359b6
Group: System Environment/Daemons
4359b6
BuildRequires: openssl-devel
4359b6
%if %{with_test}
4359b6
# needed for the test suite
4359b6
BuildRequires: bind-utils
4359b6
BuildRequires: ldns
4359b6
BuildRequires: vim-common nmap-ncat
4359b6
%endif
4359b6
# needed to regenerate configparser
4359b6
BuildRequires: flex, byacc
4359b6
BuildRequires: libevent-devel expat-devel
4359b6
BuildRequires: pkgconfig
4359b6
%if %{with_python}
4359b6
BuildRequires:  python-devel swig
4359b6
%endif
4359b6
BuildRequires: systemd-units
4359b6
# Required for SVN versions
4359b6
# BuildRequires: bison
4359b6
4359b6
Requires(post): systemd
4359b6
Requires(preun): systemd
4359b6
Requires(postun): systemd
4359b6
Requires(pre): shadow-utils
4359b6
# Needed because /usr/sbin/unbound links unbound libs staticly
4359b6
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
4359b6
4359b6
%description
4359b6
Unbound is a validating, recursive, and caching DNS(SEC) resolver.
4359b6
4359b6
The C implementation of Unbound is developed and maintained by NLnet
4359b6
Labs. It is based on ideas and algorithms taken from a java prototype
4359b6
developed by Verisign labs, Nominet, Kirei and ep.net.
4359b6
4359b6
Unbound is designed as a set of modular components, so that also
4359b6
DNSSEC (secure DNS) validation and stub-resolvers (that do not run
4359b6
as a server, but are linked into an application) are easily possible.
4359b6
4359b6
%if %{with_munin}
4359b6
%package munin
4359b6
Summary: Plugin for the munin / munin-node monitoring package
4359b6
Group:     System Environment/Daemons
4359b6
Requires: munin-node
4359b6
Requires: %{name} = %{version}-%{release}, bc
4359b6
BuildArch: noarch
4359b6
4359b6
%description munin
4359b6
Plugin for the munin / munin-node monitoring package
4359b6
%endif
4359b6
4359b6
%package devel
4359b6
Summary: Development package that includes the unbound header files
4359b6
Group: Development/Libraries
4359b6
Requires: %{name}-libs%{?_isa} = %{version}-%{release}, openssl-devel
4359b6
Requires: pkgconfig
4359b6
4359b6
%description devel
4359b6
The devel package contains the unbound library and the include files
4359b6
4359b6
%package libs
4359b6
Summary: Libraries used by the unbound server and client applications
4359b6
Group: Applications/System
4359b6
Requires(post): /sbin/ldconfig
4359b6
Requires(post): systemd
4359b6
Requires(post): grep
4359b6
Requires(post): sed
4359b6
Requires(post): util-linux
4359b6
Requires(preun): systemd
4359b6
Requires(postun): /sbin/ldconfig
4359b6
Requires(postun): systemd
4359b6
Requires: openssl >= 0.9.8g-12
4359b6
4359b6
# needed to make sure the redhat-release-xxx contains the presets file
4359b6
# which enables unbound-anchor.timer.
4359b6
# See https://bugzilla.redhat.com/show_bug.cgi?id=1215645#c5
4359b6
Conflicts: redhat-release-server < 7.2-7
4359b6
Conflicts: redhat-release-workstation < 7.2-5
4359b6
Conflicts: redhat-release-computenode < 7.2-5
4359b6
Conflicts: redhat-release-client < 7.2-4
4359b6
4359b6
%description libs
4359b6
Contains libraries used by the unbound server and client applications
4359b6
4359b6
%if %{with_python}
4359b6
%package python
4359b6
Summary: Python modules and extensions for unbound
4359b6
Group: Applications/System
4359b6
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
4359b6
4359b6
%description python
4359b6
Python modules and extensions for unbound
4359b6
%endif
4359b6
4359b6
%prep
4359b6
%setup -q 
4359b6
%patch1 -p1 -b .longcheck-fixup
4359b6
%patch3 -p1 -b .testlog
4359b6
%patch4 -p1 -b .coverity
4359b6
%patch5 -p1 -b .test-fwd_oneport
4359b6
%patch6 -p1 -b .domain-insecure
4359b6
4359b6
# regrnerate config parser due to new options added
4359b6
echo "#include \"config.h\"" > util/configlexer.c || echo "Failed to create configlexer"
4359b6
echo "#include \"util/configyyrename.h\"" >> util/configlexer.c || echo "Failed to create configlexer"
4359b6
flex -i -t util/configlexer.lex >> util/configlexer.c  || echo "Failed to create configlexer"
4359b6
yacc -y -d -o util/configparser.c util/configparser.y || echo "Failed to create configparser"
4359b6
4359b6
%build
4359b6
%configure  --with-libevent --with-pthreads --with-ssl \
4359b6
            --disable-rpath --disable-static \
4359b6
            --enable-subnet --enable-ipsecmod \
4359b6
            --with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
4359b6
            --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid \
4359b6
%if %{with_python}
4359b6
            --with-pythonmodule --with-pyunbound \
4359b6
%endif
4359b6
            --enable-sha2 --disable-gost --enable-ecdsa \
4359b6
            --with-rootkey-file=%{_sharedstatedir}/unbound/root.key
4359b6
4359b6
%{__make} %{?_smp_mflags}
4359b6
%{__make} %{?_smp_mflags} streamtcp
4359b6
4359b6
%install
4359b6
%{__make} DESTDIR=%{buildroot} install
4359b6
%{__make} DESTDIR=%{buildroot} unbound-event-install
4359b6
install -d 0755 %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
4359b6
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/unbound.service
4359b6
install -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/unbound-keygen.service
4359b6
install -p -m 0644 %{SOURCE15} %{buildroot}%{_unitdir}/unbound-anchor.timer
4359b6
install -p -m 0644 %{SOURCE17} %{buildroot}%{_unitdir}/unbound-anchor.service
4359b6
install -p -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/unbound
4359b6
install -p -m 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/unbound
4359b6
install -p -m 0644 %{SOURCE14} %{buildroot}%{_sysconfdir}/sysconfig/unbound
4359b6
install -p -m 0644 %{SOURCE16} .
4359b6
%if %{with_munin}
4359b6
# Install munin plugin and its softlinks
4359b6
install -d -m 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
4359b6
install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/unbound
4359b6
install -d -m 0755 %{buildroot}%{_datadir}/munin/plugins/
4359b6
install -p -m 0755 %{SOURCE4} %{buildroot}%{_datadir}/munin/plugins/unbound
4359b6
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
4359b6
    ln -s unbound %{buildroot}%{_datadir}/munin/plugins/$plugin
4359b6
done
4359b6
%endif
4359b6
4359b6
# install streamtcp used for monitoring / debugging unbound's port 80/443 modes
4359b6
install -m 0755 streamtcp %{buildroot}%{_sbindir}/unbound-streamtcp
4359b6
# install streamtcp man page
4359b6
install -m 0644 testcode/streamtcp.1 %{buildroot}/%{_mandir}/man1/unbound-streamtcp.1
4359b6
4359b6
install -D -m 0644 contrib/libunbound.pc %{buildroot}/%{_libdir}/pkgconfig/libunbound.pc
4359b6
4359b6
4359b6
# Install tmpfiles.d config
4359b6
install -d -m 0755 %{buildroot}%{_tmpfilesdir} %{buildroot}%{_sharedstatedir}/unbound
4359b6
install -m 0644 %{SOURCE8} %{buildroot}%{_tmpfilesdir}/unbound.conf
4359b6
4359b6
# install root and DLV key - we keep a copy of the root key in old location,
4359b6
# in case user has changed the configuration and we wouldn't update it there
4359b6
install -m 0644 %{SOURCE5} %{SOURCE6} %{buildroot}%{_sysconfdir}/unbound/
4359b6
install -m 0644 %{SOURCE13} %{buildroot}%{_sharedstatedir}/unbound/root.key
4359b6
4359b6
# remove static library from install (fedora packaging guidelines)
4359b6
rm %{buildroot}%{_libdir}/*.la
4359b6
%if %{with_python}
4359b6
rm %{buildroot}%{python_sitearch}/*.la
4359b6
%endif
4359b6
4359b6
# create softlink for all functions of libunbound man pages
4359b6
for mpage in ub_ctx ub_result ub_ctx_create ub_ctx_delete ub_ctx_set_option ub_ctx_get_option ub_ctx_config ub_ctx_set_fwd ub_ctx_resolvconf ub_ctx_hosts ub_ctx_add_ta ub_ctx_add_ta_file ub_ctx_trustedkeys ub_ctx_debugout ub_ctx_debuglevel ub_ctx_async ub_poll ub_wait ub_fd ub_process ub_resolve ub_resolve_async ub_cancel ub_resolve_free ub_strerror ub_ctx_print_local_zones ub_ctx_zone_add ub_ctx_zone_remove ub_ctx_data_add ub_ctx_data_remove;
4359b6
do
4359b6
  echo ".so man3/libunbound.3" > %{buildroot}%{_mandir}/man3/$mpage ;
4359b6
done
4359b6
4359b6
mkdir -p %{buildroot}%{_localstatedir}/run/unbound
4359b6
4359b6
# Install directories for easier config file drop in
4359b6
4359b6
mkdir -p %{buildroot}%{_sysconfdir}/unbound/{keys.d,conf.d,local.d}
4359b6
install -p %{SOURCE9} %{buildroot}%{_sysconfdir}/unbound/keys.d/
4359b6
install -p %{SOURCE10} %{buildroot}%{_sysconfdir}/unbound/conf.d/
4359b6
install -p %{SOURCE11} %{buildroot}%{_sysconfdir}/unbound/local.d/
4359b6
4359b6
# Link unbound-control-setup.8 manpage to unbound-control.8
4359b6
echo ".so man8/unbound-control.8" > %{buildroot}/%{_mandir}/man8/unbound-control-setup.8
4359b6
4359b6
%files 
4359b6
%doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
4359b6
%{_unitdir}/%{name}.service
4359b6
%{_unitdir}/%{name}-keygen.service
4359b6
%attr(0755,unbound,unbound) %dir %{_localstatedir}/run/%{name}
4359b6
%attr(0644,root,root) %{_tmpfilesdir}/unbound.conf
4359b6
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
4359b6
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
4359b6
%dir %attr(0755,root,unbound) %{_sysconfdir}/%{name}/keys.d
4359b6
%attr(0664,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/keys.d/*.key
4359b6
%dir %attr(0755,root,unbound) %{_sysconfdir}/%{name}/conf.d
4359b6
%attr(0664,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/*.conf
4359b6
%dir %attr(0755,root,unbound) %{_sysconfdir}/%{name}/local.d
4359b6
%attr(0664,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/local.d/*.conf
4359b6
%{_sbindir}/unbound
4359b6
%{_sbindir}/unbound-checkconf
4359b6
%{_sbindir}/unbound-control
4359b6
%{_sbindir}/unbound-control-setup
4359b6
%{_sbindir}/unbound-host
4359b6
%{_sbindir}/unbound-streamtcp
4359b6
%{_mandir}/man1/*
4359b6
%{_mandir}/man5/*
4359b6
%{_mandir}/man8/*
4359b6
4359b6
%if %{with_python}
4359b6
%files python
4359b6
%{python_sitearch}/*
4359b6
%doc libunbound/python/examples/*
4359b6
%doc pythonmod/examples/*
4359b6
%endif
4359b6
4359b6
%if %{with_munin}
4359b6
%files munin
4359b6
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
4359b6
%{_datadir}/munin/plugins/unbound*
4359b6
%doc unbound-munin.README
4359b6
%endif
4359b6
4359b6
%files devel
4359b6
%{_libdir}/libunbound.so
4359b6
%{_includedir}/unbound.h
4359b6
%{_includedir}/unbound-event.h
4359b6
%{_mandir}/man3/*
4359b6
%doc README
4359b6
%{_libdir}/pkgconfig/*.pc
4359b6
4359b6
%files libs
4359b6
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}
4359b6
%{_sbindir}/unbound-anchor
4359b6
%{_libdir}/libunbound.so.*
4359b6
%{_sysconfdir}/%{name}/icannbundle.pem
4359b6
%{_unitdir}/unbound-anchor.timer
4359b6
%{_unitdir}/unbound-anchor.service
4359b6
%dir %attr(0755,unbound,unbound) %{_sharedstatedir}/%{name}
4359b6
# this file will be modified always after installation
4359b6
%attr(0644,unbound,unbound) %config(noreplace) %{_sharedstatedir}/%{name}/root.key
4359b6
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/dlv.isc.org.key
4359b6
# just left for backwards compat with user changed unbound.conf files - format is different!
4359b6
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/root.key
4359b6
%doc doc/README doc/LICENSE
4359b6
4359b6
%pre libs
4359b6
getent group unbound >/dev/null || groupadd -r unbound
4359b6
getent passwd unbound >/dev/null || \
4359b6
useradd -r -g unbound -d %{_sysconfdir}/unbound -s /sbin/nologin \
4359b6
-c "Unbound DNS resolver" unbound
4359b6
exit 0
4359b6
4359b6
%post
4359b6
%systemd_post unbound.service
4359b6
%systemd_post unbound-keygen.service
4359b6
4359b6
%post libs 
4359b6
/sbin/ldconfig
4359b6
# If update contains new keys not already in database, use package keys
4359b6
if [ "$1" -eq 2 -a -f %{_sharedstatedir}/unbound/root.key.rpmnew ]; then
4359b6
        /sbin/runuser --command="
4359b6
	cp -pf %{_sharedstatedir}/unbound/root.key %{_sharedstatedir}/unbound/root.key.rpmupdate && \
4359b6
	sed -e 's/;.*//' -e '/^[[:space:]]*$/ d' %{_sharedstatedir}/unbound/root.key.rpmnew | while read KEY;
4359b6
	do
4359b6
		if ! grep -q \"\$KEY\" %{_sharedstatedir}/unbound/root.key.rpmupdate; then
4359b6
			echo \"\$KEY\" >> %{_sharedstatedir}/unbound/root.key.rpmupdate || exit 1;
4359b6
		fi;
4359b6
	done && \
4359b6
	mv %{_sharedstatedir}/unbound/root.key.rpmupdate %{_sharedstatedir}/unbound/root.key" --shell /bin/sh unbound || :
4359b6
fi
4359b6
%{_sbindir}/runuser  --command="%{_sbindir}/unbound-anchor -a %{_sharedstatedir}/unbound/root.key -c %{_sysconfdir}/unbound/icannbundle.pem"  --shell /bin/sh unbound ||:
4359b6
%systemd_post unbound-anchor.timer
4359b6
# the Unit is in presets, but would be started afte reboot
4359b6
/bin/systemctl start unbound-anchor.timer >/dev/null 2>&1 || :
4359b6
4359b6
%preun
4359b6
%systemd_preun unbound.service
4359b6
%systemd_preun unbound-keygen.service
4359b6
4359b6
%preun libs
4359b6
%systemd_preun unbound-anchor.timer
4359b6
4359b6
%postun 
4359b6
%systemd_postun_with_restart unbound.service
4359b6
%systemd_postun unbound-keygen.service
4359b6
4359b6
%postun libs
4359b6
/sbin/ldconfig
4359b6
%systemd_postun_with_restart unbound-anchor.timer
4359b6
4359b6
%triggerun -- unbound < 1.4.12-4
4359b6
# Save the current service runlevel info
4359b6
# User must manually run systemd-sysv-convert --apply unbound
4359b6
# to migrate them to systemd targets
4359b6
/usr/bin/systemd-sysv-convert --save unbound >/dev/null 2>&1 ||:
4359b6
4359b6
# Run these because the SysV package being removed won't do them
4359b6
/sbin/chkconfig --del unbound >/dev/null 2>&1 || :
4359b6
/bin/systemctl try-restart unbound.service >/dev/null 2>&1 || :
4359b6
/bin/systemctl try-restart unbound-keygen.service >/dev/null 2>&1 || :
4359b6
4359b6
4359b6
%check
4359b6
%if %{with_test}
4359b6
  make check
4359b6
  make longcheck
4359b6
%endif
4359b6
4359b6
%changelog
4359b6
* Thu Jul 25 2019 Martin Osvald <mosvald@redhat.com> - 1.6.6-2
4359b6
- Do not search for DNSSEC info when domain-insecure is set
4359b6
  for stub zone (#1678550)
4359b6
- Remove KSK-2010 from configuration files - it has been revoked (#1665503)
4359b6
4359b6
* Wed Oct 11 2017 Petr Menšík <pemensik@redhat.com> - 1.6.6-1
4359b6
- Rebase to 1.6.6
4359b6
- Enable RFC 8145 Trust Anchor Signaling to help the root zone get keytag statistics
4359b6
- Enable ipsecmod support
4359b6
4359b6
* Sun Sep 17 2017 Petr Menšík <pemensik@redhat.com> - 1.6.3-3
4359b6
- Update project website and ICANN key
4359b6
4359b6
* Wed Aug 30 2017 Petr Menšík <pemensik@redhat.com> - 1.6.3-2
4359b6
- Install unbound-event.h
4359b6
4359b6
* Fri Aug 18 2017 Petr Menšík <pemensik@redhat.com> - 1.6.3-1
4359b6
- Rebase to 1.6.3
4359b6
4359b6
* Fri Jun 02 2017 Petr Menšík <pemensik@redhat.com> - 1.4.20-34
4359b6
- Make merge of updated database more safe
4359b6
4359b6
* Wed May 24 2017 Petr Menšík <pemensik@redhat.com> - 1.4.20-33
4359b6
- Update also built-in digest in unbound-anchor
4359b6
4359b6
* Wed May 24 2017 Petr Menšík <pemensik@redhat.com> - 1.4.20-32
4359b6
- Update trust anchors (#1452636)
4359b6
- Update managed keys from trigger
4359b6
4359b6
* Mon Mar 27 2017 Tomas Hozza <thozza@redhat.com> - 1.4.20-31
4359b6
- Run internal test suite during build (#1383722)
4359b6
4359b6
* Thu Feb 02 2017 Tomas Hozza <thozza@redhat.com> - 1.4.20-30
4359b6
- Added cache-max-negative-ttl option to the default configuration file (#1382383)
4359b6
4359b6
* Tue Oct 11 2016 Tomas Hozza <thozza@redhat.com> - 1.4.20-29
4359b6
- Added cache-max-negative-ttl option (#1382383)
4359b6
4359b6
* Fri May 20 2016 Pavel Å imerda <psimerda@redhat.com> - 1.4.20-28
4359b6
- Related: #1245250 - depend on the right ldns version
4359b6
4359b6
* Thu May 19 2016 Pavel Å imerda <psimerda@redhat.com> - 1.4.20-27
4359b6
- Resolves: #1245250 - enable ecdsa
4359b6
4359b6
* Tue Sep 22 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-26
4359b6
- Added Conficts on redhat-release packages without unbound-anchor.timer in presets (Related #1215645)
4359b6
4359b6
* Tue Sep 15 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-25
4359b6
- Resolve ordering loop with nss-lookup.target and ntpdate (#1259806)
4359b6
4359b6
* Wed Aug 19 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-24
4359b6
- Fix CVE-2014-8602 (#1253961)
4359b6
4359b6
* Tue May 26 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-23
4359b6
- Removed usage of DLV from the default configuration (#1223339)
4359b6
4359b6
* Wed May 13 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-22
4359b6
- unbound.service now Wants unbound-anchor.timer (Related: #1180267)
4359b6
4359b6
* Tue May 12 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-21
4359b6
- Fix dependencies and minor scriptlet issues due to systemd timer unit (Related: #1180267)
4359b6
4359b6
* Mon Apr 27 2015 Tomas Hozza <thozza@redhat.com> - 1.4.20-20
4359b6
- Install tmpfiles configuration into /usr/lib/tmpfiles.d (#1180995)
4359b6
- Fix root key management to comply to RFC5011 (#1180267)
4359b6
4359b6
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4.20-19
4359b6
- Mass rebuild 2014-01-24
4359b6
4359b6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.20-18
4359b6
- Mass rebuild 2013-12-27
4359b6
4359b6
* Wed Sep 04 2013 Tomas Hozza <thozza@redhat.com> - 1.4.20-17
4359b6
- Don't build unbound-munin package (#1002874)
4359b6
4359b6
* Mon Aug 26 2013 Tomas Hozza <thozza@redhat.com> - 1.4.20-16
4359b6
- Fix errors found by static analysis of source
4359b6
4359b6
* Mon Jul 22 2013 Tomas Hozza <thozza@redhat.com> - 1.4.20-15
4359b6
- provide man page for unbound-streamtcp
4359b6
4359b6
* Wed Jul 03 2013 Tomas Hozza <thozza@redhat.com> - 1.4.20-14
4359b6
- remove missing unbound-rootkey.service from post/preun/postun sections
4359b6
- don't hardcode hardening flags, let hardened build macro handles it
4359b6
4359b6
* Sat Jun 01 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-13
4359b6
- Run unbound-anchor as user unbound in unbound.service
4359b6
4359b6
* Tue May 28 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-12
4359b6
- Enable round-robin (with noths() patch)
4359b6
- Change cron and systemd service to use root.key, not root.anchor
4359b6
4359b6
* Sat May 25 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-10
4359b6
- Use /var/lib/unbound/root.key (more consistent with other distros)
4359b6
- Enable minimal responses
4359b6
4359b6
* Mon Apr 22 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-8
4359b6
- Refix
4359b6
4359b6
* Fri Apr 19 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-7
4359b6
- Fix runuser call in post.
4359b6
4359b6
* Tue Apr 16 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-6
4359b6
- /var/lib/unbound should be owned by unbound. group write is not enough
4359b6
4359b6
* Fri Apr 12 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-5
4359b6
- Fix cron job syntax (rhbz#951725)
4359b6
- Use install -p to prevent .rpmnew files that are identical to originals
4359b6
4359b6
* Mon Apr 8 2013 Paul Wouters <pwouters@redhat.com> - 1.4.20-4
4359b6
- Updated to 1.4.20
4359b6
- Build with full RELRO (not use -z,relro but with -z,relo,-z,now)
4359b6
- Fixup man page for unbound-control-setup
4359b6
- unbound.service should start before nss-lookup.target (rhbz#919955)
4359b6
- Removed patch for rhbz#888759 merged in upstream
4359b6
- Move root.anchor to /var/lib/unbound to make selinux policy easier for updating (rhbz#896599/rhbz#891008)
4359b6
- Move cronjob for root.anchor from unbound to unbound-libs, require crontabs
4359b6
- /etc/unbound (and all) should be owned by unbound-libs (rhbz#909691)
4359b6
- Remove Obsolete/Provides for dnssec-conf which was last seen in f13
4359b6
- Ensure any unbound-anchor failure in post is ignored
4359b6
4359b6
* Tue Mar 05 2013 Adam Tkac <atkac redhat com> - 1.4.19-5
4359b6
- build with full RELRO
4359b6
- symlink unbound-control-setup.8 manpage to unbound-control.8
4359b6
4359b6
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.19-4
4359b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4359b6
4359b6
* Wed Dec 12 2012 Paul Wouters <pwouters@redhat.com> - 1.4.19-3
4359b6
- Updated to 1.4.19 - this integrates all existing patches
4359b6
- Patch for unbound-anchor (rhbz#888759)
4359b6
4359b6
* Fri Nov 09 2012 Paul Wouters <pwouters@redhat.com> - 1.4.18-6
4359b6
- Patch to ensure stube-zone's aren't lost when using dnssec-triggerd
4359b6
- added unbound-munin.README file
4359b6
4359b6
* Wed Sep 26 2012 Paul Wouters <pwouters@redhat.com> - 1.4.18-5
4359b6
- Patch to allow wildcards in include: statements
4359b6
- Add directories /etc/unbound/keys.d,conf.d,local.d with
4359b6
  example entries
4359b6
- Added /etc/unbound/root.anchor, maintained by unbound-anchor
4359b6
  which is installed as monthly cron and PreExec in systemd config
4359b6
  (root.key is unused, but left installed in case people depend on it)
4359b6
- Native systemd (simple) and /etc/sysconfig/unbound support
4359b6
- Run unbound-checkconf in PreExec
4359b6
- Moved trust anchor related files to unbound-libs, as they can
4359b6
  be used without the daemon.
4359b6
- sub packages now depends on base package of same arch
4359b6
- Build munin package as noarch
4359b6
- unbound-anchor moved to unbound-libs package. It is needed
4359b6
  to update the root.anchor key file.
4359b6
4359b6
* Tue Sep 04 2012 Paul Wouters <pwouters@redhat.com> - 1.4.18-3
4359b6
- Fix openssl thread locking bug under high query load
4359b6
4359b6
* Thu Aug 23 2012 Paul Wouters <pwouters@redhat.com> - 1.4.18-2
4359b6
- Use new systemd-rpm macros (rhbz#850351)
4359b6
- Clean up old obsoleted dnssec-conf from < fedora 15
4359b6
4359b6
* Fri Aug 03 2012 Paul Wouters <pwouters@redhat.com> - 1.4.18-1
4359b6
- Updated to 1.4.18 (FIPS related fixes mostly)
4359b6
- Removed patches that were merged in upstream
4359b6
- Added comment to root.key
4359b6
4359b6
* Mon Jul 23 2012 Paul Wouters <pwouters@redhat.com> - 1.4.17-5
4359b6
- Fix for unbound crasher (upstream bug #452)
4359b6
- Support libunbound functions in man pages and place in -devel
4359b6
4359b6
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-4
4359b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4359b6
4359b6
* Tue Jul 03 2012 Paul Wouters <pwouters@redhat.com> - 1.4.17-3
4359b6
- unbound FIPS patches for MD5,randomness (rhbz#835106)
4359b6
4359b6
* Fri Jun 15 2012 Adam Tkac <atkac redhat com> - 1.4.17-2
4359b6
- don't build unbound-munin on RHEL
4359b6
4359b6
* Thu May 24 2012 Paul Wouters <pwouters@redhat.com> - 1.4.17-1
4359b6
- Updated to 1.4.17 (which mostly brings in patches we already
4359b6
  applied from svn trunk)
4359b6
4359b6
* Wed Feb 29 2012 Paul Wouters <pwouters@redhat.com> - 1.4.16-3 
4359b6
- Since the daemon links to the libs staticly, add Requires:
4359b6
  (this is rhbz#745288)
4359b6
- Package up streamtcp as unbound-streamtcp (for monitoring)
4359b6
4359b6
* Mon Feb 27 2012 Paul Wouters <pwouters@redhat.com> - 1.4.16-2
4359b6
- Don't ghost the directory (rhbz#788805)
4359b6
- Patch for unbound to support unbound-control forward_zone
4359b6
  (needed for openswan in XAUTH mode)
4359b6
4359b6
* Thu Feb 02 2012 Paul Wouters <paul@nohats.ca> - 1.4.16-1
4359b6
- Upgraded to 1.4.16, which was relesed due to the soname
4359b6
  and some DNSSEC validation failures
4359b6
4359b6
* Wed Feb 01 2012 Paul Wouters <paul@nohats.ca> - 1.4.15-2
4359b6
- Patch for SONAME version (libtool's -version-number vs -version-info)
4359b6
4359b6
* Fri Jan 27 2012 Paul Wouters <pwouters@redhat.com> - 1.4.15-1
4359b6
- Upgraded to 1.4.15
4359b6
- Updated unbound.conf to show how to configure listening on tls443
4359b6
4359b6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.14-2
4359b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4359b6
4359b6
* Mon Dec 19 2011 Paul Wouters <paul@cypherpunks.ca> - 1.4.14-1
4359b6
- Upgraded to 1.4.14 for CVE-2011-4528 / VU#209659
4359b6
- SSL-wrapped query support for dnssec-trigger
4359b6
- EDNS handling changes
4359b6
- Removed integrated EDNS patches
4359b6
- Disabled use-caps-for-id, GoDaddy domains now break on it
4359b6
- Enabled new harden-below-nxdomain
4359b6
4359b6
* Thu Sep 15 2011 Paul Wouters <paul@xelerance.com> - 1.4.13-1
4359b6
- Upgraded to 1.4.13
4359b6
- Removed merged in pythonmod patch
4359b6
- Added EDNS1480 patch to fix unbound on broken EDNS/UDP networks
4359b6
- Fix python to go into sitearch instead of sitelib
4359b6
4359b6
* Wed Sep 14 2011 Tom Callaway <spot@fedoraproject.org> - 1.4.12-4
4359b6
- convert to systemd, tmpfiles.d
4359b6
4359b6
* Mon Aug 08 2011 Paul Wouters <paul@xelerance.com> - 1.4.12-3
4359b6
- Added pythonmod docs and examples
4359b6
4359b6
* Mon Aug 08 2011 Paul Wouters <paul@xelerance.com> - 1.4.12-2
4359b6
- Fix for python module load in the server (Tom Hendrikx)
4359b6
- No longer enable --enable-debug as it causes degraded  performance
4359b6
  under load.
4359b6
4359b6
* Mon Jul 18 2011 Paul Wouters <paul@xelerance.com> - 1.4.12-1
4359b6
- Updated to 1.4.12
4359b6
4359b6
* Sun Jul 03 2011 Paul Wouters <paul@xelerance.com> - 1.4.11-1
4359b6
- Updated to 1.4.11
4359b6
- removed integrated CVE patch
4359b6
- updated stock unbound.conf for new options introduced
4359b6
4359b6
* Mon Jun 06 2011 Paul Wouters <paul@xelerance.com> - 1.4.10-1
4359b6
- Added ghost for /var/run/unbound (bz#656710)
4359b6
4359b6
* Mon Jun 06 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-3
4359b6
- rebuilt
4359b6
4359b6
* Wed May 25 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-2
4359b6
- Applied patch for CVE-2011-1922 DoS vulnerability
4359b6
4359b6
* Sun Mar 27 2011 Paul Wouters <paul@xelerance.com> - 1.4.9-1
4359b6
- Updated to 1.4.9
4359b6
4359b6
* Sat Feb 12 2011 Paul Wouters <paul@xelerance.com> - 1.4.8-2
4359b6
- rebuilt
4359b6
4359b6
* Tue Jan 25 2011 Paul Wouters <paul@xelerance.com> - 1.4.8-1
4359b6
- Updated to 1.4.8
4359b6
- Enable root key for DNSSEC
4359b6
- Fix unbound-munin to use proper file (could cause excessive logging)
4359b6
- Build unbound-python per default
4359b6
- Disable gost as Fedora/EPEL does not allow ECC and has mangled openssl
4359b6
4359b6
* Tue Oct 26 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-4
4359b6
- Revert last build - it was on the wrong branch
4359b6
4359b6
* Tue Oct 26 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-3
4359b6
- Disable do-ipv6 per default - causes severe degradation on non-ipv6 machines
4359b6
  (see comments in inbound.conf)
4359b6
4359b6
* Tue Jun 15 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-2
4359b6
- Bump release - forgot to upload the new tar ball.
4359b6
4359b6
* Tue Jun 15 2010 Paul Wouters <paul@xelerance.com> - 1.4.5-1
4359b6
- Upgraded to 1.4.5
4359b6
4359b6
* Mon May 31 2010 Paul Wouters <paul@xelerance.com> - 1.4.4-2
4359b6
- Added accidentally omitted svn patches to cvs 
4359b6
4359b6
* Mon May 31 2010 Paul Wouters <paul@xelerance.com> - 1.4.4-1
4359b6
- Upgraded to 1.4.4 with svn patches
4359b6
- Obsolete dnssec-conf to ensure it is de-installed
4359b6
4359b6
* Thu Mar 11 2010 Paul Wouters <paul@xelerance.com> - 1.4.3-1
4359b6
- Update to 1.4.3 that fixes 64bit crasher
4359b6
4359b6
* Tue Mar 09 2010 Paul Wouters <paul@xelerance.com> - 1.4.2-1
4359b6
- Updated to 1.4.2 
4359b6
- Updated unbound.conf with new options
4359b6
- Enabled pre-fetching DNSKEY records (DNSSEC speedup)
4359b6
- Enabled re-fetching popular records before they expire
4359b6
- Enabled logging of DNSSEC validation errors
4359b6
4359b6
* Mon Mar 01 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-5
4359b6
- Overriding -D_GNU_SOURCE is no longer needed. This fixes DSO issues
4359b6
  with pthreads
4359b6
4359b6
* Wed Feb 24 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-3
4359b6
- Change make/configure lines to attempt to fix -lphtread linking issue
4359b6
4359b6
* Thu Feb 18 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-2
4359b6
- Removed dependancy for dnssec-conf
4359b6
- Added ISC DLV key (formerly in dnssec-conf)
4359b6
- Fixup old DLV locations in unbound.conf file via %%post
4359b6
- Fix parent child disagreement handling and no-ipv6 present [svn r1953]
4359b6
4359b6
* Tue Jan 05 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-1
4359b6
- Updated to 1.4.1
4359b6
- Changed %%define to %%global
4359b6
4359b6
* Thu Oct 08 2009 Paul Wouters <paul@xelerance.com> - 1.3.4-2
4359b6
- Bump version
4359b6
4359b6
* Thu Oct 08 2009 Paul Wouters <paul@xelerance.com> - 1.3.4-1
4359b6
- Upgraded to 1.3.4. Security fix with validating NSEC3 records
4359b6
4359b6
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.3.3-2
4359b6
- rebuilt with new openssl
4359b6
4359b6
* Mon Aug 17 2009 Paul Wouters <paul@xelerance.com> - 1.3.3-1
4359b6
- Updated to 1.3.3
4359b6
4359b6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
4359b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4359b6
4359b6
* Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-2
4359b6
- Added missing glob patch to cvs
4359b6
- Place python macros within the %%with_python check
4359b6
4359b6
* Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-1
4359b6
- Updated to 1.3.0
4359b6
- Added unbound-python sub package. disabled for now
4359b6
- Patch from svn to fix DLV lookups
4359b6
- Patches from svn to detect wrong truncated response from BIND 9.6.1 with
4359b6
  minimal-responses)
4359b6
- Added Default-Start and Default-Stop to unbound.init
4359b6
- Re-enabled --enable-sha2
4359b6
- Re-enabled glob.patch
4359b6
4359b6
* Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-7
4359b6
- unbound-iterator.patch was not commited
4359b6
4359b6
* Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-6
4359b6
- Fix for https://bugzilla.redhat.com/show_bug.cgi?id=499793
4359b6
4359b6
* Tue Mar 17 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-5
4359b6
- Use --nocheck to avoid giving an error on missing unbound-remote certs/keys
4359b6
4359b6
* Tue Mar 10 2009 Adam Tkac <atkac redhat com> - 1.2.1-4
4359b6
- enable DNSSEC only if it is enabled in sysconfig/dnssec
4359b6
4359b6
* Mon Mar 09 2009 Adam Tkac <atkac redhat com> - 1.2.1-3
4359b6
- add DNSSEC support to initscript and enabled it per default
4359b6
- add requires dnssec-conf
4359b6
4359b6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
4359b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4359b6
4359b6
* Tue Feb 10 2009 Paul Wouters 
4359b6
- updated to 1.2.1
4359b6
4359b6
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2
4359b6
- rebuild with new openssl
4359b6
4359b6
* Wed Jan 14 2009 Paul Wouters 
4359b6
- Updated to 1.2.0
4359b6
- Added dependancy on minimum SSL for CVE-2008-5077
4359b6
- Added dependancy on bc for unbound-munin
4359b6
- Added minimum requirement of libevent 1.4.5. Crashes with older versions
4359b6
  (note: libevent is stale in EL-4 and not in EL-5, needs fixing there)
4359b6
- Removed dependancy on selinux-policy (will get used when available)
4359b6
- Enable options as per draft-wijngaards-dnsext-resolver-side-mitigation-00.txt
4359b6
- Enable unwanted-reply-threshold to mitigate against a Kaminsky attack
4359b6
- Enable val-clean-additional to drop addition unsigned data from signed
4359b6
  response.
4359b6
- Removed patches (got merged into upstream)
4359b6
4359b6
* Mon Jan  5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-7
4359b6
- Modified scandir patch to silently fail when wildcard matches nothing
4359b6
- Patch to allow unbound-checkconf to find empty wildcard matches
4359b6
4359b6
* Mon Jan  5 2009 Paul Wouters <paul@xelerance.com> - 1.1.1-6
4359b6
- Added scandir patch for trusted-keys-file: option, which
4359b6
  is used to load multiple dnssec keys in bind file format
4359b6
4359b6
* Mon Dec  8 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-4
4359b6
- Added Requires: for selinux-policy >= 3.5.13-33 for proper SElinux rules.
4359b6
4359b6
* Mon Dec  1 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-3
4359b6
- We did not own the /etc/unbound directory (#474020)
4359b6
- Fixed cvs anomalies
4359b6
4359b6
* Fri Nov 28 2008 Adam Tkac <atkac redhat com> - 1.1.1-2
4359b6
- removed all obsolete chroot related stuff
4359b6
- label control certs after generation correctly
4359b6
4359b6
* Thu Nov 20 2008 Paul Wouters <paul@xelerance.com> - 1.1.1-1
4359b6
- Updated to unbound 1.1.1 which fixes a crasher and
4359b6
  addresses nlnetlabs bug #219
4359b6
4359b6
* Wed Nov 19 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-3
4359b6
- Remove the chroot, obsoleted by SElinux
4359b6
- Add additional munin plugin links supported by unbound plugin
4359b6
- Move configuration directory from /var/lib/unbound to /etc/unbound
4359b6
- Modified unbound.init and unbound.conf to account for chroot changes
4359b6
- Updated unbound.conf with new available options
4359b6
- Enabled dns-0x20 protection per default
4359b6
4359b6
* Wed Nov 19 2008 Adam Tkac <atkac redhat com> - 1.1.0-2
4359b6
- unbound-1.1.0-log_open.patch
4359b6
  - make sure log is opened before chroot call
4359b6
  - tracked as http://www.nlnetlabs.nl/bugs/show_bug.cgi?id=219
4359b6
- removed /dev/log and /var/run/unbound and /etc/resolv.conf from
4359b6
  chroot, not needed
4359b6
- don't mount files in chroot, it causes problems during updates
4359b6
- fixed typo in default config file
4359b6
4359b6
* Fri Nov 14 2008 Paul Wouters <paul@xelerance.com> - 1.1.0-1
4359b6
- Updated to version 1.1.0
4359b6
- Updated unbound.conf's statistics options and remote-control
4359b6
  to work properly for munin
4359b6
- Added unbound-munin package
4359b6
- Generate unbound remote-control  key/certs on first startup
4359b6
- Required ldns is now 1.4.0
4359b6
4359b6
* Wed Oct 22 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-5
4359b6
- Only call ldconfig in -libs package
4359b6
- Move configure into build section
4359b6
- devel subpackage should only depend on libs subpackage
4359b6
4359b6
* Tue Oct 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-4
4359b6
- Fix CFLAGS getting lost in build
4359b6
- Don't enable interface-automatic:yes because that
4359b6
  causes unbound to listen on 0.0.0.0 instead of 127.0.0.1
4359b6
4359b6
* Sun Oct 19 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-3
4359b6
- Split off unbound-libs, make build verbose 
4359b6
4359b6
* Thu Oct  9 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-2
4359b6
- FSB compliance, chroot fixes, initscript fixes
4359b6
4359b6
* Thu Sep 11 2008 Paul Wouters <paul@xelerance.com> - 1.0.2-1
4359b6
- Upgraded to 1.0.2
4359b6
4359b6
* Wed Jul 16 2008 Paul Wouters <paul@xelerance.com> - 1.0.1-1
4359b6
- upgraded to new release
4359b6
4359b6
* Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-2
4359b6
- Build against ldns-1.3.0
4359b6
4359b6
* Wed May 21 2008 Paul Wouters <paul@xelerance.com> - 1.0.0-1
4359b6
- Split of -devel package, fixed dependancies, make rpmlint happy
4359b6
4359b6
* Thu Apr 25 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.12
4359b6
- Using parts from ports collection entry by Jaap Akkerhuis.
4359b6
- Using Fedoraproject wiki guidelines.
4359b6
4359b6
* Wed Apr 23 2008 Wouter Wijngaards <wouter@nlnetlabs.nl> - 0.11
4359b6
- Initial version.