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