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