rework u-a links again

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ebtables?expand=0&rev=55
This commit is contained in:
Jan Engelhardt 2018-09-07 12:56:57 +00:00 committed by Git OBS Bridge
parent 5eb1bdfcb0
commit e4e99e7a93

View File

@ -116,9 +116,9 @@ 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"
ln -s ebtables-legacy "%{buildroot}/%{_sbindir}/ebtables"
ln -s ebtables-legacy-restore "%{buildroot}/%{_sbindir}/ebtables-restore"
ln -s ebtables-legacy-save "%{buildroot}/%{_sbindir}/ebtables-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