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