Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
31d207061a | ||
|
cb4bc06367 | ||
|
d1d26b776d | ||
|
7fc509f5b1 | ||
|
840aed00b4 | ||
|
158d794178 |
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
Name: ebtables
|
Name: ebtables
|
||||||
Version: 2.0.10
|
Version: 2.0.10
|
||||||
Release: 24%{?dist}
|
Release: 28%{?dist}
|
||||||
Summary: Ethernet Bridge frame table administration tool
|
Summary: Ethernet Bridge frame table administration tool
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
|
||||||
URL: http://ebtables.sourceforge.net/
|
URL: http://ebtables.sourceforge.net/
|
||||||
|
|
||||||
Source0: http://downloads.sourceforge.net/ebtables/ebtables-v%{version}-%{ebminor}.tar.gz
|
Source0: http://downloads.sourceforge.net/ebtables/ebtables-v%{version}-%{ebminor}.tar.gz
|
||||||
Source1: ebtables-save
|
Source1: ebtables-save
|
||||||
Source2: ebtables.systemd
|
Source2: ebtables.systemd
|
||||||
@ -20,13 +20,17 @@ Patch6: 0001-add-RARP-and-update-iana-url.patch
|
|||||||
# Move lockfile to /run/ebtables.lock
|
# Move lockfile to /run/ebtables.lock
|
||||||
Patch7: ebtables-2.0.10-lockdirfix.patch
|
Patch7: ebtables-2.0.10-lockdirfix.patch
|
||||||
Patch8: ebtables-2.0.10-noflush.patch
|
Patch8: ebtables-2.0.10-noflush.patch
|
||||||
BuildRequires: systemd-units
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: systemd
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
%if 0%{?fedora} > 24
|
%if 0%{?fedora} > 24
|
||||||
Conflicts: setup < 2.10.4-1
|
Conflicts: setup < 2.10.4-1
|
||||||
%endif
|
%endif
|
||||||
|
Requires(post): %{_sbindir}/update-alternatives
|
||||||
|
Requires(postun): %{_sbindir}/update-alternatives
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ethernet bridge tables is a firewalling tool to transparently filter network
|
Ethernet bridge tables is a firewalling tool to transparently filter network
|
||||||
@ -54,7 +58,7 @@ like iptables. There are no known incompatibility issues.
|
|||||||
f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
|
f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" LIBDIR="/%{_lib}/ebtables" BINDIR="/sbin" MANDIR="%{_mandir}" LDFLAGS="${RPM_LD_FLAGS} -Wl,-z,now"
|
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" LIBDIR="/%{_lib}/ebtables" BINDIR="%{_sbindir}" MANDIR="%{_mandir}" LDFLAGS="${RPM_LD_FLAGS} -Wl,-z,now"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_initrddir}
|
mkdir -p %{buildroot}%{_initrddir}
|
||||||
@ -64,7 +68,7 @@ chmod -x %{buildroot}%{_unitdir}/*.service
|
|||||||
mkdir -p %{buildroot}%{_libexecdir}
|
mkdir -p %{buildroot}%{_libexecdir}
|
||||||
install -m0755 %{SOURCE2} %{buildroot}%{_libexecdir}/ebtables
|
install -m0755 %{SOURCE2} %{buildroot}%{_libexecdir}/ebtables
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
||||||
make DESTDIR="%{buildroot}" LIBDIR="/%{_lib}/ebtables" BINDIR="/sbin" MANDIR="%{_mandir}" install
|
make DESTDIR="%{buildroot}" LIBDIR="/%{_lib}/ebtables" BINDIR="%{_sbindir}" MANDIR="%{_mandir}" install
|
||||||
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.filter
|
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.filter
|
||||||
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.nat
|
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.nat
|
||||||
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.broute
|
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.broute
|
||||||
@ -73,30 +77,41 @@ touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.broute
|
|||||||
rm -rf %{buildroot}%{_initrddir}
|
rm -rf %{buildroot}%{_initrddir}
|
||||||
|
|
||||||
# install ebtables-save bash script
|
# install ebtables-save bash script
|
||||||
rm -f %{buildroot}/sbin/ebtables-save
|
rm -f %{buildroot}%{_sbindir}/ebtables-save
|
||||||
install %{SOURCE1} %{buildroot}/sbin/ebtables-save
|
install %{SOURCE1} %{buildroot}%{_sbindir}/ebtables-save
|
||||||
|
|
||||||
# move libebtc.so into the ldpath
|
# move libebtc.so into the ldpath
|
||||||
mv %{buildroot}/%{_lib}/ebtables/libebtc.so %{buildroot}/%{_lib}/
|
mv %{buildroot}/%{_lib}/ebtables/libebtc.so %{buildroot}/%{_lib}/
|
||||||
|
|
||||||
%if 0%{?fedora} > 24
|
|
||||||
# Remove /etc/ethertypes (now part of setup)
|
# Remove /etc/ethertypes (now part of setup)
|
||||||
rm -f %{buildroot}%{_sysconfdir}/ethertypes
|
rm -f %{buildroot}%{_sysconfdir}/ethertypes
|
||||||
%endif
|
|
||||||
|
# Prepare for Alternatives system
|
||||||
|
mv %{buildroot}%{_sbindir}/ebtables %{buildroot}%{_sbindir}/ebtables-legacy
|
||||||
|
touch %{buildroot}%{_sbindir}/ebtables
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post ebtables.service
|
%systemd_post ebtables.service
|
||||||
/sbin/ldconfig
|
%?ldconfig
|
||||||
|
if [ "$(readlink -e %{_sbindir}/ebtables)" == %{_sbindir}/ebtables ]; then
|
||||||
|
rm -f %{_sbindir}/ebtables
|
||||||
|
fi
|
||||||
|
%{_sbindir}/update-alternatives --install \
|
||||||
|
%{_sbindir}/ebtables ebtables %{_sbindir}/ebtables-legacy 10
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun ebtables.service
|
%systemd_preun ebtables.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart ebtables.service
|
%systemd_postun_with_restart ebtables.service
|
||||||
/sbin/ldconfig
|
%?ldconfig
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
%{_sbindir}/update-alternatives --remove ebtables %{_sbindir}/ebtables-legacy
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ChangeLog COPYING THANKS
|
%license COPYING
|
||||||
|
%doc ChangeLog THANKS
|
||||||
%doc %{_mandir}/man8/ebtables.8*
|
%doc %{_mandir}/man8/ebtables.8*
|
||||||
%if 0%{?fedora} <= 24
|
%if 0%{?fedora} <= 24
|
||||||
%{_sysconfdir}/ethertypes
|
%{_sysconfdir}/ethertypes
|
||||||
@ -106,12 +121,27 @@ rm -f %{buildroot}%{_sysconfdir}/ethertypes
|
|||||||
%{_libexecdir}/ebtables
|
%{_libexecdir}/ebtables
|
||||||
/%{_lib}/libebtc.so
|
/%{_lib}/libebtc.so
|
||||||
/%{_lib}/ebtables/
|
/%{_lib}/ebtables/
|
||||||
/sbin/ebtables*
|
%{_sbindir}/ebtables-*
|
||||||
|
%ghost %{_sbindir}/ebtables
|
||||||
%ghost %{_sysconfdir}/sysconfig/ebtables.filter
|
%ghost %{_sysconfdir}/sysconfig/ebtables.filter
|
||||||
%ghost %{_sysconfdir}/sysconfig/ebtables.nat
|
%ghost %{_sysconfdir}/sysconfig/ebtables.nat
|
||||||
%ghost %{_sysconfdir}/sysconfig/ebtables.broute
|
%ghost %{_sysconfdir}/sysconfig/ebtables.broute
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.10-28
|
||||||
|
- Add gcc dep, spec cleanups
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-27
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 10 2018 Phil Sutter <psutter@redhat.com> - 2.0.10-26
|
||||||
|
- Replace calls to ldconfig with newly introduced macro.
|
||||||
|
- Install binaries in /usr/sbin instead of /sbin.
|
||||||
|
- Make use of Alternatives system.
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-25
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-24
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-24
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user