]> git.pld-linux.org Git - packages/xtables-addons.git/blame - xtables-addons.spec
- xt version of iptables-geoip-dbpath.patch
[packages/xtables-addons.git] / xtables-addons.spec
CommitLineData
2741a7bf 1#
8bb72a08 2# TODO
0330c995 3# - kernel modules package (or not, 2 packages with mutual R?)
4# - descriptions
8bb72a08 5#
2741a7bf
AM
6# Conditional build:
7%bcond_without dist_kernel # without distribution kernel
7ad03426 8%bcond_without kernel
9%bcond_without userspace
2741a7bf 10#
2741a7bf
AM
11%define rel 0.1
12Summary: Extensible packet filtering system && extensible NAT system
13Summary(pl.UTF-8): System filtrowania pakietów oraz system translacji adresów (NAT)
14Summary(pt_BR.UTF-8): Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x
15Summary(ru.UTF-8): Утилиты для управления пакетными фильтрами ядра Linux
16Summary(uk.UTF-8): Утиліти для керування пакетними фільтрами ядра Linux
17Summary(zh_CN.UTF-8): Linux内核包过滤管理工具
18Name: xtables-addons
0330c995 19Version: 1.5.4.1
20Release: %{rel}@%{_kernel_ver_str}
2741a7bf
AM
21License: GPL
22Group: Networking/Daemons
23Source0: http://dev.computergmbh.de/files/xtables/%{name}-%{version}.tar.bz2
0330c995 24# Source0-md5: f78352e9021986347cd347edc82c40c2
7ad03426 25Patch0: %{name}-libs.patch
0330c995 26#BuildRequires: xtables-devel >= 1.5.2
27BuildRequires: iptables-devel >= 1.4.1
28%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.25}
29BuildRequires: rpmbuild(macros) >= 1.379
30%{?with_dist_kernel:%requires_releq_kernel}
31Requires(post,postun): /sbin/depmod
2741a7bf
AM
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35An extensible NAT system, and an extensible packet filtering system.
36Replacement of ipchains in 2.6 and higher kernels.
37
38%description -l pl.UTF-8
39Wydajny system translacji adresów (NAT) oraz system filtrowania
40pakietów. Zamiennik ipchains w jądrach 2.6 i nowszych.
41
42%description -l pt_BR.UTF-8
43Esta é a ferramenta que controla o código de filtragem de pacotes do
44kernel 2.6, obsoletando ipchains. Com esta ferramenta você pode
45configurar filtros de pacotes, NAT, mascaramento (masquerading),
46regras dinâmicas (stateful inspection), etc.
47
48%description -l ru.UTF-8
49xtables-addons управляют кодом фильтрации сетевых пакетов в ядре
50Linux. Они позволяют вам устанавливать межсетевые экраны (firewalls) и
51IP маскарадинг, и т.п.
52
53%description -l uk.UTF-8
54xtables-addons управляють кодом фільтрації пакетів мережі в ядрі
55Linux. Вони дозволяють вам встановлювати міжмережеві екрани
56(firewalls) та IP маскарадинг, тощо.
57
58%prep
59%setup -q
7ad03426 60%patch0 -p1
2741a7bf
AM
61
62%build
63%configure \
2659fab6 64 --with-kbuild=%{_kernelsrcdir} \
2741a7bf 65 --with-ksource=%{_kernelsrcdir}
8bb72a08 66export XA_TOPSRCDIR=$PWD
7ad03426 67
68%if %{with kernel}
8bb72a08 69%build_kernel_modules -C extensions -m compat_xtables
7ad03426 70%endif
71
72%if %{with userspace}
73%{__make} -C extensions libs
74%endif
2741a7bf
AM
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
7ad03426 79%if %{with kernel}
8bb72a08 80%install_kernel_modules -m extensions/compat_xtables -d kernel/net/netfilter
81install extensions/xt_*ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/netfilter
7ad03426 82%endif
83%if %{with userspace}
84%{__make} -C extensions libs_install \
2741a7bf 85 DESTDIR=$RPM_BUILD_ROOT
7ad03426 86%endif
2741a7bf
AM
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
0330c995 91%post
92%depmod %{_kernel_ver}
93
94%postun
95%depmod %{_kernel_ver}
96
2741a7bf
AM
97%files
98%defattr(644,root,root,755)
7ad03426 99%if %{with userspace}
0330c995 100%attr(755,root,root) %{_libdir}/xtables/libxt_CHAOS.so
101%attr(755,root,root) %{_libdir}/xtables/libxt_DELUDE.so
102%attr(755,root,root) %{_libdir}/xtables/libxt_IPMARK.so
103%attr(755,root,root) %{_libdir}/xtables/libxt_LOGMARK.so
104%attr(755,root,root) %{_libdir}/xtables/libxt_TARPIT.so
105%attr(755,root,root) %{_libdir}/xtables/libxt_TEE.so
106%attr(755,root,root) %{_libdir}/xtables/libxt_condition.so
107%attr(755,root,root) %{_libdir}/xtables/libxt_geoip.so
108%attr(755,root,root) %{_libdir}/xtables/libxt_ipp2p.so
109%attr(755,root,root) %{_libdir}/xtables/libxt_portscan.so
7ad03426 110%endif
111%if %{with kernel}
8bb72a08 112/lib/modules/%{_kernel_ver}/kernel/net/netfilter/*
7ad03426 113%endif
This page took 0.065198 seconds and 4 git commands to generate.