]>
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 |
9c3d092a | 4 | Version: 1.4.0 |
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 | |
9c3d092a | 9 | # Source0-md5: ee737c774e01349f75e935228a2d851b |
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 |
9c3d092a JB |
20 | BuildRequires: libmnl-devel >= 1.0.3 |
21 | BuildRequires: libnetfilter_conntrack-devel >= 1.0.2 | |
22 | BuildRequires: libnetfilter_cthelper-devel >= 1.0.0 | |
fd1089af | 23 | BuildRequires: libnetfilter_cttimeout-devel >= 1.0.0 |
9c3d092a JB |
24 | BuildRequires: libnetfilter_queue-devel >= 1.0.2 |
25 | BuildRequires: libnfnetlink-devel >= 1.0.1 | |
1c7c561b | 26 | BuildRequires: libtool |
60904cd6 | 27 | BuildRequires: pkgconfig |
1c7c561b | 28 | BuildRequires: rpmbuild(macros) >= 1.228 |
29 | Requires(post,preun): /sbin/chkconfig | |
9c3d092a JB |
30 | Requires: libmnl >= 1.0.3 |
31 | Requires: libnetfilter_conntrack >= 1.0.2 | |
32 | Requires: libnetfilter_cthelper >= 1.0.0 | |
fd1089af | 33 | Requires: libnetfilter_cttimeout >= 1.0.0 |
9c3d092a JB |
34 | Requires: libnetfilter_queue-devel >= 1.0.2 |
35 | Requires: libnfnetlink >= 1.0.1 | |
60904cd6 | 36 | Obsoletes: conntrack |
1c7c561b | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | The conntrack-tools are a set of tools targeted at system | |
41 | administrators. They are conntrack, the userspace command line | |
42 | interface, and conntrackd, the userspace daemon. The tool conntrack | |
43 | provides a full featured interface that is intended to replace the old | |
44 | /proc/net/ip_conntrack interface. Using conntrack, you can view and | |
45 | manage the in-kernel connection tracking state table from userspace. | |
46 | On the other hand, conntrackd covers the specific aspects of stateful | |
47 | firewalls to enable highly available scenarios, and can be used as | |
48 | statistics collector as well. | |
49 | ||
38a68af4 JB |
50 | %description -l pl.UTF-8 |
51 | conntrack-tools to zbiór narzędzi przeznaczonych dla administratorów | |
52 | systemów. Są to conntrack (interfejs przestrzeni użytkownika | |
53 | obsługiwany z linii poleceń) i conntrackd (demon przestrzeni | |
54 | użytkownika). Narzędzie conntrack udostępnia pełny interfejs mający za | |
55 | zadanie zastąpić stary interfejs /proc/net/ip_conntrack. Przy użyciu | |
56 | conntracka można oglądać i zarządzać z przestrzeni użytkownika tablicą | |
57 | stanów śledzienia połączeń w jądrze. Z drugiej strony conntrackd | |
58 | pokrywa specyficzne aspekty firewalli stanowych udostępniając | |
59 | scenariusze wysokiej dostępności; może także służyć do zbierania | |
60 | statystyk. | |
61 | ||
1c7c561b | 62 | %prep |
63 | %setup -q | |
87f0b5f8 | 64 | %patch0 -p1 |
fd1089af | 65 | %patch1 -p1 |
1c7c561b | 66 | |
67 | %build | |
68 | %{__libtoolize} | |
69 | %{__aclocal} | |
70 | %{__autoconf} | |
71 | %{__automake} | |
cfee1305 JB |
72 | %configure \ |
73 | --disable-silent-rules | |
1c7c561b | 74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
d0438e6a | 82 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conntrackd |
83 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conntrackd | |
84 | install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/conntrackd/conntrackd.conf | |
1c7c561b | 85 | |
9c3d092a JB |
86 | # dlopened modules |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/conntrack-tools/*.la | |
88 | ||
1c7c561b | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post | |
d0438e6a | 93 | /sbin/chkconfig --add conntrackd |
94 | %service conntrackd restart | |
1c7c561b | 95 | |
96 | %preun | |
d0438e6a | 97 | if [ "$1" = "0" ]; then |
98 | %service -q conntrackd stop | |
99 | /sbin/chkconfig --del conntrackd | |
100 | fi | |
1c7c561b | 101 | |
102 | %files | |
103 | %defattr(644,root,root,755) | |
fb2f1323 | 104 | %doc AUTHORS TODO |
60904cd6 JB |
105 | %attr(755,root,root) %{_sbindir}/conntrack |
106 | %attr(755,root,root) %{_sbindir}/conntrackd | |
fd1089af | 107 | %attr(755,root,root) %{_sbindir}/nfct |
9c3d092a JB |
108 | %dir %{_libdir}/conntrack-tools |
109 | %attr(755,root,root) %{_libdir}/conntrack-tools/ct_helper_ftp.so | |
110 | %attr(755,root,root) %{_libdir}/conntrack-tools/ct_helper_rpc.so | |
111 | %attr(755,root,root) %{_libdir}/conntrack-tools/ct_helper_tns.so | |
112 | %dir %{_sysconfdir}/conntrackd | |
113 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conntrackd/conntrackd.conf | |
114 | %attr(754,root,root) /etc/rc.d/init.d/conntrackd | |
115 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/conntrackd | |
60904cd6 | 116 | %{_mandir}/man8/conntrack.8* |
c15cdd87 | 117 | %{_mandir}/man8/conntrackd.8* |
fd1089af | 118 | %{_mandir}/man8/nfct.8* |