Accepting request 634279 from security:netfilter
OBS-URL: https://build.opensuse.org/request/show/634279 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ebtables?expand=0&rev=41
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 24 10:20:05 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Move ebtables to ebtables-legacy and use update-alternatives to
|
||||||
|
offer a selection mechanism.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 15 13:30:35 UTC 2018 - kstreitova@suse.com
|
Thu Mar 15 13:30:35 UTC 2018 - kstreitova@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Name: ebtables
|
|||||||
Version: 2.0.10.4
|
Version: 2.0.10.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Ethernet Bridge Tables
|
Summary: Ethernet Bridge Tables
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Url: http://ebtables.sf.net/
|
Url: http://ebtables.sf.net/
|
||||||
#Git-Clone: git://git.netfilter.org/ebtables
|
#Git-Clone: git://git.netfilter.org/ebtables
|
||||||
@@ -47,6 +47,8 @@ BuildRequires: xz
|
|||||||
Requires: netcfg >= 11.6
|
Requires: netcfg >= 11.6
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -111,11 +113,21 @@ touch %{buildroot}%{_fillupdir}/sysconfig.%{name}.broute
|
|||||||
rm -rf %{buildroot}%{_initrddir}
|
rm -rf %{buildroot}%{_initrddir}
|
||||||
# not used
|
# not used
|
||||||
rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
|
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
|
%pre
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
%post
|
%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
|
%service_add_post %{name}.service
|
||||||
%fillup_only
|
%fillup_only
|
||||||
|
|
||||||
@@ -123,6 +135,9 @@ rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
|
|||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
if test "$1" = 0; then
|
||||||
|
update-alternatives --remove ebtables "%{_sbindir}/ebtables-legacy"
|
||||||
|
fi
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@@ -131,6 +146,9 @@ rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
|
|||||||
%{_mandir}/man8/ebtables.8*
|
%{_mandir}/man8/ebtables.8*
|
||||||
%{_libexecdir}/%{name}
|
%{_libexecdir}/%{name}
|
||||||
%{_unitdir}/%{name}.service
|
%{_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}.filter
|
||||||
%ghost %{_fillupdir}/sysconfig.%{name}.nat
|
%ghost %{_fillupdir}/sysconfig.%{name}.nat
|
||||||
%ghost %{_fillupdir}/sysconfig.%{name}.broute
|
%ghost %{_fillupdir}/sysconfig.%{name}.broute
|
||||||
@@ -138,9 +156,7 @@ rm -f "%{buildroot}/%{_sysconfdir}/ebtables-config"
|
|||||||
%exclude %{_sysconfdir}/ethertypes
|
%exclude %{_sysconfdir}/ethertypes
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
%{_libdir}/%{name}/*.so
|
%{_libdir}/%{name}/*.so
|
||||||
%{_sbindir}/ebtables
|
%{_sbindir}/ebtables*
|
||||||
%{_sbindir}/ebtables-restore
|
|
||||||
%{_sbindir}/ebtables-save
|
|
||||||
%{_sbindir}/rcebtables
|
%{_sbindir}/rcebtables
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user