]> git.pld-linux.org Git - packages/ebtables.git/blame - ebtables.spec
Yikes, upstream found a bug in my patch; rel 4
[packages/ebtables.git] / ebtables.spec
CommitLineData
3b11dff3
JR
1%define ver 2.0.10
2%define vermin 4
642984f6 3Summary: Ethernet Bridge Tables
c15a9ec1 4Summary(pl.UTF-8): Ethernet Bridge Tables - filtrowanie i translacja adresów dla Ethernetu
642984f6 5Name: ebtables
3b11dff3 6Version: %{ver}.%{vermin}
85a46319 7Release: 4
642984f6 8License: GPL
9Group: Networking/Daemons
3b11dff3 10Source0: http://downloads.sourceforge.net/ebtables/%{name}-v%{ver}-%{vermin}.tar.gz
b702bff0 11# Source0-md5: 506742a3d44b9925955425a659c1a8d0
3b11dff3
JR
12Source1: %{name}.init
13Source2: %{name}-config
14Patch0: ebtables-audit.patch
15Patch1: ebtables-linkfix.patch
16Patch2: ebtables-norootinst.patch
ac0f3519 17Patch3: ipv6_netmask_printing_fix.patch
b7afe0f5 18URL: http://ebtables.sourceforge.net/
7dfef2e8
ER
19BuildRequires: rpmbuild(macros) >= 1.268
20Requires(post,preun): /sbin/chkconfig
21Requires: rc-scripts
642984f6 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The ebtables project is the Linux 2.5.x (and above) Link Layer
26firewalling subsystem, a patch for 2.4.x is maintained too. It
27delivers for Linux the functionality of Ethernet frame filtering, all
28kinds of frame NAT (Network Address Translation) and frame matching.
29The ebtables infrastructure is a part of the standard Linux 2.5.x (and
30above) kernels.
31
ecac19ab
JR
32%description -l pl.UTF-8
33Projekt ebtables to podsystem firewallingu na poziomie łącza dla
34Linuksa w wersjach 2.5.x i nowszych (dostępna jest też łata do 2.4.x).
35Dostarcza dla Linuksa funkcjonalność filtrowania ramek ethernetowych,
36wszystkie rodzaje translacji adresów (NAT) dla ramek oraz
37dopasowywanie ramek. Infrastruktura ebtables jest częścią
38standardowych jąder Linuksa w wersjach 2.5.x i nowszych.
b7afe0f5 39
642984f6 40%prep
3b11dff3
JR
41%setup -q -n %{name}-v%{ver}-%{vermin}
42%patch0 -p1
43%patch1 -p1
44%patch2 -p1
ac0f3519 45%patch3 -p1
642984f6 46
47%build
7dfef2e8 48%{__make} \
3b11dff3 49 CC="%{__cc}" \
f46b9647 50 CFLAGS="%{rpmcflags}" \
3b11dff3
JR
51 LIBDIR="%{_libdir}/ebtables" \
52 BINDIR="%{_sbindir}" \
53 MANDIR="%{_mandir}"
642984f6 54
55%install
56rm -rf $RPM_BUILD_ROOT
91ae9d30 57
3b11dff3
JR
58install -d $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,%{_sysconfdir}} \
59 $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/ebtables,%{_mandir}/man8}
91ae9d30 60
f46b9647 61install ebtables{,-restore} $RPM_BUILD_ROOT%{_sbindir}
91ae9d30 62install ethertypes $RPM_BUILD_ROOT%{_sysconfdir}
63install ebtables.8 $RPM_BUILD_ROOT%{_mandir}/man8
3b11dff3
JR
64install extensions/*.so *.so $RPM_BUILD_ROOT%{_libdir}/ebtables
65install ebtables-save $RPM_BUILD_ROOT%{_sbindir}
66%{__sed} -i -e "s|__EXEC_PATH__|%{_sbindir}|g" $RPM_BUILD_ROOT%{_sbindir}/ebtables-save
91ae9d30 67
3b11dff3
JR
68install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ebtables
69install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ebtables-config
642984f6 70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
91ae9d30 74%post
75/sbin/chkconfig --add ebtables
76
77%preun
78if [ $1 -eq 0 ]; then
7dfef2e8 79 %service ebtables stop
91ae9d30 80 /sbin/chkconfig --del ebtables
81fi
82
642984f6 83%files
84%defattr(644,root,root,755)
ee927896
JB
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
b8bbfb8b 88%attr(754,root,root) /etc/rc.d/init.d/ebtables
f46b9647 89%attr(755,root,root) %{_sbindir}/ebtables*
d02f79f9 90%dir %{_libdir}/ebtables
3b11dff3 91%attr(755,root,root) %{_libdir}/ebtables/libebt*.so
ee927896 92%{_mandir}/man8/ebtables.8*
This page took 0.071836 seconds and 4 git commands to generate.