]>
Commit | Line | Data |
---|---|---|
1c7c561b | 1 | Summary: The userspace connection tracking table administration program |
2 | Name: conntrack-tools | |
3 | Version: 0.9.3 | |
4 | Release: 0.1 | |
5 | License: BSD | |
6 | Group: Applications/Networking | |
7 | Source0: http://www.netfilter.org/projects/conntrack-tools/files/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: b8a0297c538bd1fb708b2c9ed3f31676 | |
9 | #Source1: %{name}.init | |
10 | #Source2: %{name}.sysconfig | |
11 | #Source3: %{name}.conf | |
12 | URL: http://people.netfilter.org/pablo/conntrack-tools/ | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: libnetfilter_conntrack-devel >= 0.0.75 | |
16 | BuildRequires: libnfnetlink-devel >= 0.0.25-1 | |
17 | BuildRequires: libtool | |
18 | BuildRequires: rpmbuild(macros) >= 1.228 | |
19 | Requires(post,preun): /sbin/chkconfig | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The conntrack-tools are a set of tools targeted at system | |
24 | administrators. They are conntrack, the userspace command line | |
25 | interface, and conntrackd, the userspace daemon. The tool conntrack | |
26 | provides a full featured interface that is intended to replace the old | |
27 | /proc/net/ip_conntrack interface. Using conntrack, you can view and | |
28 | manage the in-kernel connection tracking state table from userspace. | |
29 | On the other hand, conntrackd covers the specific aspects of stateful | |
30 | firewalls to enable highly available scenarios, and can be used as | |
31 | statistics collector as well. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__automake} | |
41 | %configure | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | #install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
51 | #install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
52 | #install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post | |
58 | #/sbin/chkconfig --add %{name} | |
59 | #%service %{name} restart | |
60 | ||
61 | %preun | |
62 | #if [ "$1" = "0" ]; then | |
63 | # %service -q %{name} stop | |
64 | # /sbin/chkconfig --del %{name} | |
65 | #fi | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
69 | %doc ChangeLog README NEWS TODO | |
70 | %attr(755,root,root) %{_sbindir}/* | |
71 | %{_mandir}/man8/* | |
72 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} | |
73 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ | |
74 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |