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