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