]> git.pld-linux.org Git - packages/ebtables.git/blame_incremental - ebtables.spec
- package missing dir
[packages/ebtables.git] / ebtables.spec
... / ...
CommitLineData
1%define ver 2.0.10
2%define vermin 4
3Summary: Ethernet Bridge Tables
4Summary(pl.UTF-8): Ethernet Bridge Tables - filtrowanie i translacja adresów dla Ethernetu
5Name: ebtables
6Version: %{ver}.%{vermin}
7Release: 2
8License: GPL
9Group: Networking/Daemons
10Source0: http://downloads.sourceforge.net/ebtables/%{name}-v%{ver}-%{vermin}.tar.gz
11# Source0-md5: 506742a3d44b9925955425a659c1a8d0
12Source1: %{name}.init
13Source2: %{name}-config
14Patch0: ebtables-audit.patch
15Patch1: ebtables-linkfix.patch
16Patch2: ebtables-norootinst.patch
17URL: http://ebtables.sourceforge.net/
18BuildRequires: rpmbuild(macros) >= 1.268
19Requires(post,preun): /sbin/chkconfig
20Requires: rc-scripts
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
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.
38
39%prep
40%setup -q -n %{name}-v%{ver}-%{vermin}
41%patch0 -p1
42%patch1 -p1
43%patch2 -p1
44
45%build
46%{__make} \
47 CC="%{__cc}" \
48 CFLAGS="%{rpmcflags}" \
49 LIBDIR="%{_libdir}/ebtables" \
50 BINDIR="%{_sbindir}" \
51 MANDIR="%{_mandir}"
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56install -d $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,%{_sysconfdir}} \
57 $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/ebtables,%{_mandir}/man8}
58
59install ebtables{,-restore} $RPM_BUILD_ROOT%{_sbindir}
60install ethertypes $RPM_BUILD_ROOT%{_sysconfdir}
61install ebtables.8 $RPM_BUILD_ROOT%{_mandir}/man8
62install extensions/*.so *.so $RPM_BUILD_ROOT%{_libdir}/ebtables
63install ebtables-save $RPM_BUILD_ROOT%{_sbindir}
64%{__sed} -i -e "s|__EXEC_PATH__|%{_sbindir}|g" $RPM_BUILD_ROOT%{_sbindir}/ebtables-save
65
66install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ebtables
67install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ebtables-config
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%post
73/sbin/chkconfig --add ebtables
74
75%preun
76if [ $1 -eq 0 ]; then
77 %service ebtables stop
78 /sbin/chkconfig --del ebtables
79fi
80
81%files
82%defattr(644,root,root,755)
83%doc ChangeLog INSTALL THANKS
84%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ethertypes
85%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ebtables-config
86%attr(754,root,root) /etc/rc.d/init.d/ebtables
87%attr(755,root,root) %{_sbindir}/ebtables*
88%dir %{_libdir}/ebtables
89%attr(755,root,root) %{_libdir}/ebtables/libebt*.so
90%{_mandir}/man8/ebtables.8*
This page took 0.024595 seconds and 4 git commands to generate.