]> git.pld-linux.org Git - packages/conntrack-tools.git/blob - conntrack-tools.spec
16aec0dc700b24452b3fad010c795b3bdfbb6d6f
[packages/conntrack-tools.git] / conntrack-tools.spec
1 Summary:        The userspace connection tracking table administration program
2 Summary(pl.UTF-8):      Program przestrzeni użytkownika do zarządzania tablicą śledzenia połączeń
3 Name:           conntrack-tools
4 Version:        1.2.0
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Networking
8 Source0:        http://www.netfilter.org/projects/conntrack-tools/files/%{name}-%{version}.tar.bz2
9 # Source0-md5:  8e20330d6ca3a3f23552aa900b1d467c
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Source3:        %{name}.conf
13 Patch0:         %{name}-limits.patch
14 Patch1:         %{name}-include.patch
15 Patch2:         %{name}-timeout.patch
16 URL:            http://conntrack-tools.netfilter.org/
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake >= 1.6
19 BuildRequires:  bison
20 BuildRequires:  flex >= 2.5.33
21 BuildRequires:  libmnl-devel >= 1.0.0
22 BuildRequires:  libnetfilter_conntrack-devel >= 1.0.1
23 BuildRequires:  libnetfilter_cttimeout-devel >= 1.0.0
24 BuildRequires:  libnfnetlink-devel >= 1.0.0
25 BuildRequires:  libtool
26 BuildRequires:  pkgconfig
27 BuildRequires:  rpmbuild(macros) >= 1.228
28 Requires(post,preun):   /sbin/chkconfig
29 Requires:       libmnl >= 1.0.0
30 Requires:       libnetfilter_conntrack >= 1.0.1
31 Requires:       libnetfilter_cttimeout >= 1.0.0
32 Requires:       libnfnetlink >= 1.0.0
33 Obsoletes:      conntrack
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 The conntrack-tools are a set of tools targeted at system
38 administrators. They are conntrack, the userspace command line
39 interface, and conntrackd, the userspace daemon. The tool conntrack
40 provides a full featured interface that is intended to replace the old
41 /proc/net/ip_conntrack interface. Using conntrack, you can view and
42 manage the in-kernel connection tracking state table from userspace.
43 On the other hand, conntrackd covers the specific aspects of stateful
44 firewalls to enable highly available scenarios, and can be used as
45 statistics collector as well.
46
47 %description -l pl.UTF-8
48 conntrack-tools to zbiór narzędzi przeznaczonych dla administratorów
49 systemów. Są to conntrack (interfejs przestrzeni użytkownika
50 obsługiwany z linii poleceń) i conntrackd (demon przestrzeni
51 użytkownika). Narzędzie conntrack udostępnia pełny interfejs mający za
52 zadanie zastąpić stary interfejs /proc/net/ip_conntrack. Przy użyciu
53 conntracka można oglądać i zarządzać z przestrzeni użytkownika tablicą
54 stanów śledzienia połączeń w jądrze. Z drugiej strony conntrackd
55 pokrywa specyficzne aspekty firewalli stanowych udostępniając
56 scenariusze wysokiej dostępności; może także służyć do zbierania
57 statystyk.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --disable-silent-rules
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conntrackd
81 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conntrackd
82 install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/conntrackd/conntrackd.conf
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 /sbin/chkconfig --add conntrackd
89 %service conntrackd restart
90
91 %preun
92 if [ "$1" = "0" ]; then
93         %service -q conntrackd stop
94         /sbin/chkconfig --del conntrackd
95 fi
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS TODO
100 %attr(755,root,root) %{_sbindir}/conntrack
101 %attr(755,root,root) %{_sbindir}/conntrackd
102 %attr(755,root,root) %{_sbindir}/nfct
103 %{_mandir}/man8/conntrack.8*
104 %{_mandir}/man8/conntrackd.8*
105 %{_mandir}/man8/nfct.8*
106 %attr(754,root,root) /etc/rc.d/init.d/conntrackd
107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conntrackd/conntrackd.conf
108 %dir %{_sysconfdir}/conntrackd
109 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/conntrackd
This page took 0.041304 seconds and 2 git commands to generate.