4 # - Requires and BuildRequires with proper versions
6 Summary: IP sets utility
8 %define version_base 2.2.6
9 %define version_tstamp 20051028
10 Version: %{version_base}_%{version_tstamp}
13 Group: Networking/Admin
14 Source0: http://ipset.netfilter.org/%{name}-%{version_base}-%{version_tstamp}.tar.bz2
15 # Source0-md5: f44ed0ddb714060716677838cd19045c
16 URL: http://ipset.netfilter.org/
17 BuildRequires: linux-libc-headers >= 2.6.11.1
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 # not all set types are supported by our kernel and linux-libc-headers
21 %define _settypes ipmap portmap macipmap iphash nethash iptree
24 IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
25 can be administered by the ipset utility. Depending on the type,
26 currently an IP set may store IP addresses, (TCP/UDP) port numbers or
27 IP addresses with MAC addresses in a way, which ensures lightning
28 speed when matching an entry against a set.
31 %setup -qn %{name}-%{version_base}
38 BINDIR="%{_sbindir}" \
39 SETTYPES:="%{_settypes}" \
40 COPT_FLAGS:="%{rpmcflags}"
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR="$RPM_BUILD_ROOT" \
50 BINDIR="%{_sbindir}" \
51 SETTYPES:="%{_settypes}"
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc ChangeLog ChangeLog.ippool TODO
59 %attr(755,root,root) %{_sbindir}/*
61 %attr(755,root,root) %{_libdir}/ipset/*.so