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