397beed1 |
Summary: administration tool for IP sets |
7967b5e2 |
Name: ipset |
397beed1 |
Version: 7.6 |
7967b5e2 |
Release: 1%{?dist}
License: GPLv2
URL: http://ipset.netfilter.org/
Group: System Environment/tools
Vendor: VMware, Inc.
Distribution: Photon
Source0: ipset.netfilter.org/%{name}-%{version}.tar.bz2 |
397beed1 |
%define sha1 ipset=6f2bcf61ae657a1c4ac5cce1c2523d3ca2127fde |
7967b5e2 |
BuildRequires: libmnl-devel
Requires: libmnl
%description
IP sets are a framework inside the Linux kernel, which can be administered by the ipset utility. Depending on the type, an IP set may store IP addresses, networks, (TCP/UDP) port numbers, MAC addresses, interface names or combinations of them in a way, which ensures lightning speed when matching an entry against a set.
If you want to
store multiple IP addresses or port numbers and match against the collection by iptables at one swoop;
dynamically update iptables rules against IP addresses or ports without performance penalty;
express complex IP address and ports based rulesets with one single iptables rule and benefit from the speed of IP sets
then ipset may be the proper tool for you.
%package devel
Summary: Development files for the ipset library
Group: Development/Libraries |
397beed1 |
Requires: %{name} = %{version}-%{release} |
7967b5e2 |
%description devel
Libraries and header files for ipset.
%prep
%setup -q
%build |
397beed1 |
%configure \ |
7967b5e2 |
--enable-static=no \
--with-kmod=no
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -delete
|
634a7f16 |
%check
sed -i 's/tests=\"$tests nethash/#tests=\"$tests nethash/g' tests/runtest.sh
sed -i 's/tests=\"$tests hash:net,port/#tests=\"$tests hash:net,port/g' tests/runtest.sh
sed -i 's/tests=\"$tests hash:ip/#tests=\"$tests hash:ip/g' tests/runtest.sh
sed -i 's/tests=\"$tests hash:net,iface/#tests=\"$tests hash:net,iface/g' tests/runtest.sh
make tests |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
7967b5e2 |
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf %{buildroot}/*
%files
%defattr(-,root,root)
%{_sbindir}/*
%{_libdir}/libipset.so.*
%{_mandir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libipset.so
%{_libdir}/pkgconfig/libipset.pc
%changelog |
397beed1 |
* Mon Jun 22 2020 Gerrit Photon <photon-checkins@vmware.com> 7.6-1
- Automatic Version Bump |
634a7f16 |
* Thu Sep 06 2018 Ankit Jain <ankitja@vmware.com> 6.38-1
- Upgrading version to 6.38 |
f37cd0b5 |
* Tue Mar 28 2017 Dheeraj Shetty <dheerajs@vmware.com> 6.32-1
- Upgrading version to 6.32 |
7967b5e2 |
* Wed Aug 3 2016 Xiaolin Li <xiaolinl@vmware.com> 6.29-1
- Initial build. First version |