]>
Commit | Line | Data |
---|---|---|
1c7c561b | 1 | Summary: The userspace connection tracking table administration program |
38a68af4 | 2 | Summary(pl.UTF-8): Program przestrzeni użytkownika do zarządzania tablicą śledzenia połączeń |
1c7c561b | 3 | Name: conntrack-tools |
727b2d49 | 4 | Version: 1.2.2 |
fd1089af | 5 | Release: 1 |
b4d1581d | 6 | License: GPL v2 |
1c7c561b | 7 | Group: Applications/Networking |
8 | Source0: http://www.netfilter.org/projects/conntrack-tools/files/%{name}-%{version}.tar.bz2 | |
727b2d49 | 9 | # Source0-md5: a8afc813e16265655f83991fc0df35b6 |
d0438e6a | 10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
12 | Source3: %{name}.conf | |
87f0b5f8 | 13 | Patch0: %{name}-limits.patch |
fd1089af | 14 | Patch1: %{name}-include.patch |
24798f9f | 15 | URL: http://conntrack-tools.netfilter.org/ |
cfee1305 | 16 | BuildRequires: autoconf >= 2.50 |
60904cd6 JB |
17 | BuildRequires: automake >= 1.6 |
18 | BuildRequires: bison | |
fb2f1323 | 19 | BuildRequires: flex >= 2.5.33 |
fd1089af JB |
20 | BuildRequires: libmnl-devel >= 1.0.0 |
21 | BuildRequires: libnetfilter_conntrack-devel >= 1.0.1 | |
22 | BuildRequires: libnetfilter_cttimeout-devel >= 1.0.0 | |
fb2f1323 | 23 | BuildRequires: libnfnetlink-devel >= 1.0.0 |
1c7c561b | 24 | BuildRequires: libtool |
60904cd6 | 25 | BuildRequires: pkgconfig |
1c7c561b | 26 | BuildRequires: rpmbuild(macros) >= 1.228 |
27 | Requires(post,preun): /sbin/chkconfig | |
fd1089af JB |
28 | Requires: libmnl >= 1.0.0 |
29 | Requires: libnetfilter_conntrack >= 1.0.1 | |
30 | Requires: libnetfilter_cttimeout >= 1.0.0 | |
fb2f1323 | 31 | Requires: libnfnetlink >= 1.0.0 |
60904cd6 | 32 | Obsoletes: conntrack |
1c7c561b | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | The conntrack-tools are a set of tools targeted at system | |
37 | administrators. They are conntrack, the userspace command line | |
38 | interface, and conntrackd, the userspace daemon. The tool conntrack | |
39 | provides a full featured interface that is intended to replace the old | |
40 | /proc/net/ip_conntrack interface. Using conntrack, you can view and | |
41 | manage the in-kernel connection tracking state table from userspace. | |
42 | On the other hand, conntrackd covers the specific aspects of stateful | |
43 | firewalls to enable highly available scenarios, and can be used as | |
44 | statistics collector as well. | |
45 | ||
38a68af4 JB |
46 | %description -l pl.UTF-8 |
47 | conntrack-tools to zbiór narzędzi przeznaczonych dla administratorów | |
48 | systemów. Są to conntrack (interfejs przestrzeni użytkownika | |
49 | obsługiwany z linii poleceń) i conntrackd (demon przestrzeni | |
50 | użytkownika). Narzędzie conntrack udostępnia pełny interfejs mający za | |
51 | zadanie zastąpić stary interfejs /proc/net/ip_conntrack. Przy użyciu | |
52 | conntracka można oglądać i zarządzać z przestrzeni użytkownika tablicą | |
53 | stanów śledzienia połączeń w jądrze. Z drugiej strony conntrackd | |
54 | pokrywa specyficzne aspekty firewalli stanowych udostępniając | |
55 | scenariusze wysokiej dostępności; może także służyć do zbierania | |
56 | statystyk. | |
57 | ||
1c7c561b | 58 | %prep |
59 | %setup -q | |
87f0b5f8 | 60 | %patch0 -p1 |
fd1089af | 61 | %patch1 -p1 |
1c7c561b | 62 | |
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__automake} | |
cfee1305 JB |
68 | %configure \ |
69 | --disable-silent-rules | |
1c7c561b | 70 | %{__make} |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
d0438e6a | 78 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conntrackd |
79 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conntrackd | |
80 | install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/conntrackd/conntrackd.conf | |
1c7c561b | 81 | |
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post | |
d0438e6a | 86 | /sbin/chkconfig --add conntrackd |
87 | %service conntrackd restart | |
1c7c561b | 88 | |
89 | %preun | |
d0438e6a | 90 | if [ "$1" = "0" ]; then |
91 | %service -q conntrackd stop | |
92 | /sbin/chkconfig --del conntrackd | |
93 | fi | |
1c7c561b | 94 | |
95 | %files | |
96 | %defattr(644,root,root,755) | |
fb2f1323 | 97 | %doc AUTHORS TODO |
60904cd6 JB |
98 | %attr(755,root,root) %{_sbindir}/conntrack |
99 | %attr(755,root,root) %{_sbindir}/conntrackd | |
fd1089af | 100 | %attr(755,root,root) %{_sbindir}/nfct |
60904cd6 | 101 | %{_mandir}/man8/conntrack.8* |
c15cdd87 | 102 | %{_mandir}/man8/conntrackd.8* |
fd1089af | 103 | %{_mandir}/man8/nfct.8* |
d0438e6a | 104 | %attr(754,root,root) /etc/rc.d/init.d/conntrackd |
105 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conntrackd/conntrackd.conf | |
106 | %dir %{_sysconfdir}/conntrackd | |
107 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/conntrackd |