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