2011-12-31 00:31:51 +01:00
|
|
|
#
|
|
|
|
# spec file for package ipset
|
|
|
|
#
|
2016-01-19 14:12:16 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-12-31 00:31:51 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-20 19:00:13 +01:00
|
|
|
|
2014-03-09 18:06:41 +01:00
|
|
|
%define lname libipset3
|
2016-01-19 14:12:16 +01:00
|
|
|
Name: ipset
|
|
|
|
Version: 6.27
|
2011-12-31 00:31:51 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Netfilter ipset administration utility
|
|
|
|
License: GPL-2.0
|
2012-05-10 13:16:38 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2012-01-20 19:00:13 +01:00
|
|
|
Url: http://ipset.netfilter.org/
|
2011-12-31 00:31:51 +01:00
|
|
|
#Git-Clone: git://git.netfilter.org/ipset
|
|
|
|
#Git-Web: http://git.netfilter.org/
|
2016-01-19 14:12:16 +01:00
|
|
|
Source: ftp://ftp.netfilter.org/pub/ipset/%{name}-%{version}.tar.bz2
|
2013-10-20 15:17:58 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2014-03-09 18:24:31 +01:00
|
|
|
BuildRequires: linux-glibc-devel >= 2.6.24
|
2012-05-10 13:16:38 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1
|
2016-01-19 14:12:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
IP sets are a framework inside the Linux kernel, which can be
|
|
|
|
administered by the ipset utility. Depending on the type, currently
|
|
|
|
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
|
|
|
addresses with MAC addresses in a way, which ensures lightning speed
|
|
|
|
when matching an entry against a set.
|
|
|
|
|
|
|
|
ipset can:
|
|
|
|
* 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
|
|
|
|
|
2016-01-19 14:12:16 +01:00
|
|
|
%package -n %{lname}
|
2012-01-20 19:00:13 +01:00
|
|
|
Summary: Userspace library for the in-kernel Netfilter ipset interface
|
|
|
|
Group: System/Libraries
|
2011-12-31 00:31:51 +01:00
|
|
|
|
2016-01-19 14:12:16 +01:00
|
|
|
%description -n %{lname}
|
2011-12-31 00:31:51 +01:00
|
|
|
IP sets are a framework inside the Linux kernel, which can be
|
|
|
|
administered by the ipset utility. Depending on the type, currently
|
|
|
|
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
|
|
|
addresses with MAC addresses in a way, which ensures lightning speed
|
|
|
|
when matching an entry against a set.
|
|
|
|
|
|
|
|
%package devel
|
2012-01-20 19:00:13 +01:00
|
|
|
Summary: Development files for ipset extensions
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-01-19 14:12:16 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
IP sets are a framework inside the Linux kernel, which can be
|
|
|
|
administered by the ipset utility. Depending on the type, currently
|
|
|
|
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
|
|
|
addresses with MAC addresses in a way, which ensures lightning speed
|
|
|
|
when matching an entry against a set.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-01-19 14:12:16 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-kmod=no \
|
|
|
|
--includedir="%{_includedir}/pkg/%{name}"
|
2012-06-30 21:19:08 +02:00
|
|
|
make %{?_smp_mflags};
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%install
|
2016-01-19 14:12:16 +01:00
|
|
|
make %{?_smp_mflags} install DESTDIR="%{buildroot}";
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-01-19 14:12:16 +01:00
|
|
|
%{_sbindir}/ipset
|
|
|
|
%{_mandir}/man*/*
|
2011-12-31 00:31:51 +01:00
|
|
|
|
2016-01-19 14:12:16 +01:00
|
|
|
%files -n %{lname}
|
2011-12-31 00:31:51 +01:00
|
|
|
%defattr(-,root,root)
|
2016-01-19 14:12:16 +01:00
|
|
|
%{_libdir}/libipset.so.3*
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-01-19 14:12:16 +01:00
|
|
|
%{_libdir}/libipset.so
|
|
|
|
%{_libdir}/pkgconfig/libipset.pc
|
|
|
|
%{_includedir}/pkg/
|
2011-12-31 00:31:51 +01:00
|
|
|
|
|
|
|
%changelog
|