|
|
acb3cb |
Name: ipset
|
|
|
acb3cb |
Version: 6.19
|
|
|
acb3cb |
Release: 1%{?dist}
|
|
|
acb3cb |
Summary: Manage Linux IP sets
|
|
|
acb3cb |
|
|
|
acb3cb |
License: GPLv2
|
|
|
acb3cb |
URL: http://ipset.netfilter.org/
|
|
|
acb3cb |
Source0: http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
|
|
|
acb3cb |
|
|
|
acb3cb |
BuildRequires: libmnl-devel
|
|
|
acb3cb |
|
|
|
acb3cb |
# This is developped hand in hand with a kernel module
|
|
|
acb3cb |
Requires: kernel
|
|
|
acb3cb |
|
|
|
acb3cb |
%description
|
|
|
acb3cb |
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be
|
|
|
acb3cb |
administered by the ipset utility. Depending on the type, currently an IP set
|
|
|
acb3cb |
may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC
|
|
|
acb3cb |
addresses in a way, which ensures lightning speed when matching an entry
|
|
|
acb3cb |
against a set.
|
|
|
acb3cb |
|
|
|
acb3cb |
If you want to:
|
|
|
acb3cb |
- store multiple IP addresses or port numbers and match against the collection
|
|
|
acb3cb |
by iptables at one swoop;
|
|
|
acb3cb |
- dynamically update iptables rules against IP addresses or ports without
|
|
|
acb3cb |
performance penalty;
|
|
|
acb3cb |
- express complex IP address and ports based rulesets with one single iptables
|
|
|
acb3cb |
rule and benefit from the speed of IP sets
|
|
|
acb3cb |
then ipset may be the proper tool for you.
|
|
|
acb3cb |
|
|
|
acb3cb |
%package libs
|
|
|
acb3cb |
Summary: Shared library providing the IP sets functionality
|
|
|
acb3cb |
|
|
|
acb3cb |
%description libs
|
|
|
acb3cb |
This package contains the libraries which provide the IP sets funcionality.
|
|
|
acb3cb |
|
|
|
acb3cb |
%package devel
|
|
|
acb3cb |
Summary: Development files for %{name}
|
|
|
acb3cb |
Requires: %{name}-libs%{?_isa} == %{version}-%{release}
|
|
|
acb3cb |
Requires: kernel-devel
|
|
|
acb3cb |
|
|
|
acb3cb |
%description devel
|
|
|
acb3cb |
This package contains the files required to develop software using the %{name}
|
|
|
acb3cb |
libraries.
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%prep
|
|
|
acb3cb |
%setup -q
|
|
|
acb3cb |
|
|
|
acb3cb |
# Just to make absolutely sure we are not building the bundled kernel module
|
|
|
acb3cb |
rm -fr kernel
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%build
|
|
|
acb3cb |
%configure --enable-static=no --with-kmod=no
|
|
|
acb3cb |
|
|
|
acb3cb |
# Prevent libtool from defining rpath
|
|
|
acb3cb |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
acb3cb |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
acb3cb |
|
|
|
acb3cb |
make %{?_smp_mflags}
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%install
|
|
|
acb3cb |
make install DESTDIR=%{buildroot}
|
|
|
acb3cb |
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%post libs -p /sbin/ldconfig
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%postun libs -p /sbin/ldconfig
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%files
|
|
|
acb3cb |
%doc COPYING ChangeLog
|
|
|
acb3cb |
%doc %{_mandir}/man8/%{name}.8.gz
|
|
|
acb3cb |
%{_sbindir}/%{name}
|
|
|
acb3cb |
|
|
|
acb3cb |
%files libs
|
|
|
acb3cb |
%doc COPYING
|
|
|
acb3cb |
%{_libdir}/lib%{name}.so.3*
|
|
|
acb3cb |
|
|
|
acb3cb |
%files devel
|
|
|
acb3cb |
%{_includedir}/lib%{name}
|
|
|
acb3cb |
%{_libdir}/lib%{name}.so
|
|
|
acb3cb |
|
|
|
acb3cb |
|
|
|
acb3cb |
%changelog
|
|
|
acb3cb |
* Thu Aug 15 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 6.19
|
|
|
acb3cb |
- New upstream release.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.16.1-3
|
|
|
acb3cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
acb3cb |
|
|
|
acb3cb |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.16.1-2
|
|
|
acb3cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
acb3cb |
|
|
|
acb3cb |
* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.16.1-1
|
|
|
acb3cb |
- New upstream release.
|
|
|
acb3cb |
- Fix a requirement.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.14-1
|
|
|
acb3cb |
- New upstream release.
|
|
|
acb3cb |
- Fix scriptlets, ldconfig is needed for the libs subpackage, not the main one.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Mon Jul 30 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.13-1
|
|
|
acb3cb |
- New upstream release.
|
|
|
acb3cb |
- Split out the library in its own subpackage.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.11-2
|
|
|
acb3cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
acb3cb |
|
|
|
acb3cb |
* Mon Feb 06 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 6.11-1
|
|
|
acb3cb |
- New upstream release.
|
|
|
acb3cb |
- Removed our patch, it has been integrated upstream. As such, we also don't
|
|
|
acb3cb |
need to re-run autoreconf any more.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.9.1-3
|
|
|
acb3cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
acb3cb |
|
|
|
acb3cb |
* Fri Sep 16 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 6.9.1-2
|
|
|
acb3cb |
- Some fixes based on Pierre-Yves' review feedback.
|
|
|
acb3cb |
|
|
|
acb3cb |
* Wed Sep 14 2011 Mathieu Bridon <bochecha@fedoraproject.org> - 6.9.1-1
|
|
|
acb3cb |
- Initial packaging.
|