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