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