]>
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 | |
b4d1581d | 5 | License: GPL v2 |
1c7c561b | 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 | |
a72c2921 | 35 | find -name .svn -print0 | xargs -0 rm -rf |
1c7c561b | 36 | |
37 | %build | |
38 | %{__libtoolize} | |
39 | %{__aclocal} | |
40 | %{__autoconf} | |
41 | %{__automake} | |
a72c2921 | 42 | CFLAGS="%{rpmcflags} -D__KERNEL_STRICT_NAMES=1" |
1c7c561b | 43 | %configure |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | #install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
53 | #install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
54 | #install -D %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
60 | #/sbin/chkconfig --add %{name} | |
61 | #%service %{name} restart | |
62 | ||
63 | %preun | |
64 | #if [ "$1" = "0" ]; then | |
65 | # %service -q %{name} stop | |
66 | # /sbin/chkconfig --del %{name} | |
67 | #fi | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
a72c2921 | 71 | %doc AUTHORS ChangeLog TODO examples |
1c7c561b | 72 | %attr(755,root,root) %{_sbindir}/* |
e839f0c7 | 73 | %attr(755,root,root) %{_libdir}/%{name}/ct_proto*.so |
1c7c561b | 74 | %{_mandir}/man8/* |
75 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} | |
76 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ | |
77 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |