Hello community,

here is the log from the commit of package ebtables for openSUSE:Factory 
checked in at 2018-09-18 11:42:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ebtables (Old)
 and      /work/SRC/openSUSE:Factory/.ebtables.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ebtables"

Tue Sep 18 11:42:29 2018 rev:41 rq:634279 version:2.0.10.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/ebtables/ebtables.changes        2018-03-20 
21:55:16.068683006 +0100
+++ /work/SRC/openSUSE:Factory/.ebtables.new/ebtables.changes   2018-09-18 
11:42:30.707968538 +0200
@@ -1,0 +2,6 @@
+Fri Aug 24 10:20:05 UTC 2018 - jeng...@inai.de
+
+- Move ebtables to ebtables-legacy and use update-alternatives to
+  offer a selection mechanism.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ebtables.spec ++++++
--- /var/tmp/diff_new_pack.IYcXyf/_old  2018-09-18 11:42:31.335967881 +0200
+++ /var/tmp/diff_new_pack.IYcXyf/_new  2018-09-18 11:42:31.343967872 +0200
@@ -25,7 +25,7 @@
 Version:        2.0.10.4
 Release:        0
 Summary:        Ethernet Bridge Tables
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Productivity/Networking/Security
 Url:            http://ebtables.sf.net/
 #Git-Clone:    git://git.netfilter.org/ebtables
@@ -47,6 +47,8 @@
 Requires:       netcfg >= 11.6
 Requires(pre):  %fillup_prereq
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %{?systemd_requires}
 
 %description
@@ -111,11 +113,21 @@
 rm -rf %{buildroot}%{_initrddir}
 # not used
 rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
+mv "%{buildroot}/%{_sbindir}/ebtables" 
"%{buildroot}/%{_sbindir}/ebtables-legacy"
+mv "%{buildroot}/%{_sbindir}/ebtables-restore" 
"%{buildroot}/%{_sbindir}/ebtables-legacy-restore"
+mv "%{buildroot}/%{_sbindir}/ebtables-save" 
"%{buildroot}/%{_sbindir}/ebtables-legacy-save"
+for i in ebtables ebtables-restore ebtables-save; do
+       ln -fsv "/etc/alternatives/$i" "%{buildroot}/%{_sbindir}/$i"
+done
 
 %pre
 %service_add_pre %{name}.service
 
 %post
+update-alternatives --force \
+       --install "%{_sbindir}/ebtables" ebtables "%{_sbindir}/ebtables-legacy" 
1 \
+       --slave "%{_sbindir}/ebtables-restore" ebtables-restore 
"%{_sbindir}/ebtables-legacy-restore" \
+       --slave "%{_sbindir}/ebtables-save" ebtables-save 
"%{_sbindir}/ebtables-legacy-save"
 %service_add_post %{name}.service
 %fillup_only
 
@@ -123,6 +135,9 @@
 %service_del_preun %{name}.service
 
 %postun
+if test "$1" = 0; then
+       update-alternatives --remove ebtables "%{_sbindir}/ebtables-legacy"
+fi
 %service_del_postun %{name}.service
 
 %files
@@ -131,6 +146,9 @@
 %{_mandir}/man8/ebtables.8*
 %{_libexecdir}/%{name}
 %{_unitdir}/%{name}.service
+%ghost %{_sysconfdir}/alternatives/ebtables
+%ghost %{_sysconfdir}/alternatives/ebtables-restore
+%ghost %{_sysconfdir}/alternatives/ebtables-save
 %ghost %{_fillupdir}/sysconfig.%{name}.filter
 %ghost %{_fillupdir}/sysconfig.%{name}.nat
 %ghost %{_fillupdir}/sysconfig.%{name}.broute
@@ -138,9 +156,7 @@
 %exclude %{_sysconfdir}/ethertypes
 %dir %{_libdir}/%{name}
 %{_libdir}/%{name}/*.so
-%{_sbindir}/ebtables
-%{_sbindir}/ebtables-restore
-%{_sbindir}/ebtables-save
+%{_sbindir}/ebtables*
 %{_sbindir}/rcebtables
 
 %changelog


Reply via email to