From 3c1260178e64b72d06c43627df4ea028e8376922afca66b343c690db4db34dc5 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Fri, 4 Sep 2015 13:37:57 +0000 Subject: [PATCH] - enable event api - enable dnstap support OBS-URL: https://build.opensuse.org/package/show/server:dns/unbound?expand=0&rev=23 --- unbound.changes | 6 ++++++ unbound.spec | 17 ++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/unbound.changes b/unbound.changes index b4469ea..60ed83b 100644 --- a/unbound.changes +++ b/unbound.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 4 13:37:38 UTC 2015 - mrueckert@suse.de + +- enable event api +- enable dnstap support + ------------------------------------------------------------------- Thu Jul 9 10:16:32 UTC 2015 - michael@stroeder.com diff --git a/unbound.spec b/unbound.spec index 220e41f..784e635 100644 --- a/unbound.spec +++ b/unbound.spec @@ -20,6 +20,12 @@ %bcond_without munin %bcond_without hardened_build +%if 0%{?suse_version} > 1320 +%bcond_without dnstap +%else +%bcond_with dnstap +%endif + %if 0%{?suse_version} >= 1230 %bcond_without systemd %else @@ -58,8 +64,12 @@ BuildRequires: libevent-devel BuildRequires: libexpat-devel BuildRequires: openssl-devel BuildRequires: python-devel +%if %{with dnstap} +BuildRequires: protobuf-c >= 1.0.0 +BuildRequires: libprotobuf-c-devel >= 1.0.0 +BuildRequires: libfstrm-devel +%endif %if %{with python} -BuildRequires: python-devel BuildRequires: swig %endif PreReq: pwdutils @@ -186,6 +196,10 @@ export CXXFLAGS="%{optflags} -fPIE -pie" --enable-sha2 \ --enable-gost \ --enable-ecdsa \ + --enable-event-api \ +%if %{with dnstap} + --enable-dnstap \ +%endif --with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \ --with-pidfile=%{piddir}%{name}/%{name}.pid \ %if %{with python} @@ -368,6 +382,7 @@ systemd-tmpfiles --create %{_tmpfilesdir}/unbound.conf %files devel %defattr(-,root,root,-) %{_includedir}/unbound.h +%{_includedir}/unbound-event.h %{_libdir}/libunbound.so %{_mandir}/man3/libunbound.3* %{_mandir}/man3/ub_*.3*