Dominique Leuenberger 2018-01-22 15:21:11 +00:00 committed by Git OBS Bridge
commit 9ca94ae6be
2 changed files with 23 additions and 5 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jan 22 13:03:55 UTC 2018 - mrueckert@suse.de
- enable json stats and config dump support
new BR: pkgconfig(json-c)
- disable dynamic loading of libipset and link it instead
- enable stacktrace support
- turn on snmp-rfcv2 and snmp-rfcv3 support
- do not reference the keepalived.socket in the rpm scriptlets
-------------------------------------------------------------------
Fri Jan 12 08:53:51 UTC 2018 - lars@linux-schulserver.de

View File

@ -50,6 +50,7 @@ BuildRequires: snmp-mibs
%if 0%{?suse_version} > 1110
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libipset)
BuildRequires: pkgconfig(libiptc)
BuildRequires: pkgconfig(libnl-3.0)
@ -106,6 +107,9 @@ export CFLAGS="%optflags -DOPENSSL_NO_SSL_INTERN"
%endif
--enable-snmp \
--enable-snmp-vrrp \
--enable-snmp-rfc \
--enable-snmp-rfcv2 \
--enable-snmp-rfcv3 \
%if %{with dbus}
--enable-dbus \
--enable-dbus-create-instance \
@ -121,7 +125,11 @@ export CFLAGS="%optflags -DOPENSSL_NO_SSL_INTERN"
--enable-sha1 \
--enable-routes \
--enable-libiptc \
--enable-libipset
--enable-libipset \
--disable-libipset-dynamic \
--enable-libnl \
--enable-stacktrace \
--enable-json
make %{?_smp_mflags}
%install
@ -153,26 +161,26 @@ getent passwd %{name} >/dev/null || \
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "Keepalived" \
-d %{_var}/lib/%{name} %{name}
%if %{with systemd}
%service_add_pre %{name}.service %{name}.socket
%service_add_pre %{name}.service
%endif
%preun
%stop_on_removal %{name}
%if %{with systemd}
%service_del_preun %{name}.service %{name}.socket
%service_del_preun %{name}.service
%endif
%post
%fillup_only %{name}
%if %{with systemd}
%service_add_post %{name}.service %{name}.socket
%service_add_post %{name}.service
%endif
%postun
%insserv_cleanup
%restart_on_update %{name}
%if %{with systemd}
%service_del_postun %{name}.service %{name}.socket
%service_del_postun %{name}.service
%endif
%files