3 Summary: Ethernet Bridge Tables
4 Summary(pl.UTF-8): Ethernet Bridge Tables - filtrowanie i translacja adresów dla Ethernetu
6 Version: %{ver}.%{vermin}
9 Group: Networking/Daemons
10 Source0: http://downloads.sourceforge.net/ebtables/%{name}-v%{ver}-%{vermin}.tar.gz
11 # Source0-md5: 506742a3d44b9925955425a659c1a8d0
13 Source2: %{name}-config
14 Patch0: ebtables-audit.patch
15 Patch1: ebtables-linkfix.patch
16 Patch2: ebtables-norootinst.patch
17 Patch3: ipv6_netmask_printing_fix.patch
18 URL: http://ebtables.sourceforge.net/
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires(post,preun): /sbin/chkconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The ebtables project is the Linux 2.5.x (and above) Link Layer
26 firewalling subsystem, a patch for 2.4.x is maintained too. It
27 delivers for Linux the functionality of Ethernet frame filtering, all
28 kinds of frame NAT (Network Address Translation) and frame matching.
29 The ebtables infrastructure is a part of the standard Linux 2.5.x (and
32 %description -l pl.UTF-8
33 Projekt ebtables to podsystem firewallingu na poziomie łącza dla
34 Linuksa w wersjach 2.5.x i nowszych (dostępna jest też łata do 2.4.x).
35 Dostarcza dla Linuksa funkcjonalność filtrowania ramek ethernetowych,
36 wszystkie rodzaje translacji adresów (NAT) dla ramek oraz
37 dopasowywanie ramek. Infrastruktura ebtables jest częścią
38 standardowych jąder Linuksa w wersjach 2.5.x i nowszych.
41 %setup -q -n %{name}-v%{ver}-%{vermin}
50 CFLAGS="%{rpmcflags}" \
51 LIBDIR="%{_libdir}/ebtables" \
52 BINDIR="%{_sbindir}" \
56 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,%{_sysconfdir}} \
59 $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/ebtables,%{_mandir}/man8}
61 install ebtables{,-restore} $RPM_BUILD_ROOT%{_sbindir}
62 install ethertypes $RPM_BUILD_ROOT%{_sysconfdir}
63 install ebtables.8 $RPM_BUILD_ROOT%{_mandir}/man8
64 install extensions/*.so *.so $RPM_BUILD_ROOT%{_libdir}/ebtables
65 install ebtables-save $RPM_BUILD_ROOT%{_sbindir}
66 %{__sed} -i -e "s|__EXEC_PATH__|%{_sbindir}|g" $RPM_BUILD_ROOT%{_sbindir}/ebtables-save
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ebtables
69 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ebtables-config
72 rm -rf $RPM_BUILD_ROOT
75 /sbin/chkconfig --add ebtables
79 %service ebtables stop
80 /sbin/chkconfig --del ebtables
84 %defattr(644,root,root,755)
85 %doc ChangeLog INSTALL THANKS
86 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ethertypes
87 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ebtables-config
88 %attr(754,root,root) /etc/rc.d/init.d/ebtables
89 %attr(755,root,root) %{_sbindir}/ebtables*
90 %dir %{_libdir}/ebtables
91 %attr(755,root,root) %{_libdir}/ebtables/libebt*.so
92 %{_mandir}/man8/ebtables.8*