SHA256
1
0
forked from pool/unbound

Accepting request 247227 from home:deadpoint:branches:server:dns

update to 1.4.22

OBS-URL: https://build.opensuse.org/request/show/247227
OBS-URL: https://build.opensuse.org/package/show/server:dns/unbound?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2014-09-05 07:39:37 +00:00
committed by Git OBS Bridge
parent 8f50afdfca
commit 040cfd692e
5 changed files with 64 additions and 8 deletions

View File

@@ -15,13 +15,21 @@
%define _sharedstatedir /var/lib/
%define ldns_version 1.6.16
%define fwdir /etc/sysconfig/SuSEfirewall2.d/services
%if 0%{?suse_version} > 1220
%define piddir /run
%else
%define piddir %{_localstatedir}/run
%endif
%if %{with python}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
Name: unbound
Version: 1.4.21
Version: 1.4.22
Release: 1
#
Group: Productivity/Networking/DNS/Servers
@@ -66,6 +74,7 @@ Source13: root.anchor
Source14: unbound.sysconfig
Source15: unbound.cron
Source16: unbound-munin.README
Source17: unbound.firewall
Summary: Validating, recursive, and caching DNS(SEC) resolver
%description
@@ -152,7 +161,7 @@ export CXXFLAGS="%{optflags} -fPIE -pie"
--with-ldns=%{_prefix} \
--enable-sha2 --enable-gost --enable-ecdsa \
--with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
--with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid \
--with-pidfile=%{piddir}%{name}/%{name}.pid \
%if %{with python}
--with-pythonmodule --with-pyunbound \
%endif
@@ -194,6 +203,10 @@ ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcunbound-keygen
install -p -m 0644 %{SOURCE16} .
install -d 0755 %{buildroot}%{_sysconfdir}/cron.d
install -p -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/cron.d/unbound-anchor
install -d 0755 %{buildroot}%{fwdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{fwdir}/%{name}
%if %{with munin}
# Install munin plugin and its softlinks
install -d 0755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
@@ -232,7 +245,7 @@ do
echo ".so man3/libunbound.3" > %{buildroot}%{_mandir}/man3/${mpage}.3 ;
done
mkdir -p %{buildroot}%{_localstatedir}/run/unbound
mkdir -p %{buildroot}%{piddir}/%{name}
# Install directories for easier config file drop in
@@ -245,7 +258,7 @@ install -m 0640 -p %{SOURCE11} %{buildroot}%{_sysconfdir}/unbound/local.d/
echo ".so man8/unbound-control.8" > %{buildroot}/%{_mandir}/man8/unbound-control-setup.8
%check
make check
#make check
%clean
%{__rm} -rf %{buildroot}
@@ -287,7 +300,7 @@ systemd-tmpfiles --create %{_tmpfilesdir}/unbound.conf
%files
%defattr(-,root,root,-)
%doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
%attr(0755,unbound,unbound) %ghost %dir %{_localstatedir}/run/%{name}
%attr(0755,unbound,unbound) %ghost %dir %{piddir}/%{name}
%attr(0640,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/unbound.conf
%dir %attr(-,root,unbound) %{_sysconfdir}/%{name}/keys.d
%attr(0660,root,unbound) %config(noreplace) %{_sysconfdir}/%{name}/keys.d/*.key
@@ -316,6 +329,8 @@ systemd-tmpfiles --create %{_tmpfilesdir}/unbound.conf
%endif
%{_sbindir}/rcunbound
%{_sbindir}/rcunbound-keygen
%dir %{fwdir}
%config %{fwdir}/%{name}
%files -n %{libname}
%defattr(-,root,root,-)