Accepting request 354634 from home:kstreitova:branches:security:netfilter
- update to 6.27: * kernel part changes * fix reported memory size for hash:* types * fix hash type expire: release empty hash bucket block * fix hash type expiration: incorrect index fixed * collapse same condition body to a single one * fix extension alignment * compatibility: include linux/export.h when needed * compatibility: make sure vmalloc.h is included for kvfree() * compatibility: Fix detecting 'struct net' in 'struct tcf_ematch' * compatibility: Protect definition of RCU_INIT_POINTER in compatibility header file * netfilter: ipset: Fix sleeping memory allocation in atomic context (Nikolay Borisov) * userspace changes * handle uint64_t alignment issue in ipset tool - disable KMP build as we support the in-kernel version instead. Remove ipset-preamble file that is no longer needed [bsc#962345] - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/354634 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ipset?expand=0&rev=49
This commit is contained in:
parent
0fe924cf1e
commit
d6162b1d5e
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7626a18e8a61e099af7d508e6bd71e5f8c5e77f4f1e347534935f1b85c787a51
|
|
||||||
size 533037
|
|
3
ipset-6.27.tar.bz2
Normal file
3
ipset-6.27.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:724897a80395534466142c3542184e5a480a5046140ca2a7d9097690b931b235
|
||||||
|
size 532887
|
@ -1,3 +0,0 @@
|
|||||||
Enhances: kernel-%1
|
|
||||||
Requires: kernel-%1
|
|
||||||
Supplements: packageand(kernel-%1:ipset)
|
|
@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 18 15:42:54 UTC 2016 - kstreitova@suse.com
|
||||||
|
|
||||||
|
- update to 6.27:
|
||||||
|
* kernel part changes
|
||||||
|
* fix reported memory size for hash:* types
|
||||||
|
* fix hash type expire: release empty hash bucket block
|
||||||
|
* fix hash type expiration: incorrect index fixed
|
||||||
|
* collapse same condition body to a single one
|
||||||
|
* fix extension alignment
|
||||||
|
* compatibility: include linux/export.h when needed
|
||||||
|
* compatibility: make sure vmalloc.h is included for kvfree()
|
||||||
|
* compatibility: Fix detecting 'struct net' in 'struct tcf_ematch'
|
||||||
|
* compatibility: Protect definition of RCU_INIT_POINTER in
|
||||||
|
compatibility header file
|
||||||
|
* netfilter: ipset: Fix sleeping memory allocation in atomic
|
||||||
|
context (Nikolay Borisov)
|
||||||
|
* userspace changes
|
||||||
|
* handle uint64_t alignment issue in ipset tool
|
||||||
|
- disable KMP build as we support the in-kernel version instead.
|
||||||
|
Remove ipset-preamble file that is no longer needed [bsc#962345]
|
||||||
|
- run spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 30 11:23:27 UTC 2015 - jengelh@inai.de
|
Sun Aug 30 11:23:27 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
93
ipset.spec
93
ipset.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ipset
|
# spec file for package ipset
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,38 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: ipset
|
|
||||||
%define lname libipset3
|
%define lname libipset3
|
||||||
Version: 6.26
|
Name: ipset
|
||||||
|
Version: 6.27
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Netfilter ipset administration utility
|
Summary: Netfilter ipset administration utility
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Url: http://ipset.netfilter.org/
|
Url: http://ipset.netfilter.org/
|
||||||
|
|
||||||
#Git-Clone: git://git.netfilter.org/ipset
|
#Git-Clone: git://git.netfilter.org/ipset
|
||||||
#Git-Web: http://git.netfilter.org/
|
#Git-Web: http://git.netfilter.org/
|
||||||
Source: ftp://ftp.netfilter.org/pub/ipset/%name-%version.tar.bz2
|
Source: ftp://ftp.netfilter.org/pub/ipset/%{name}-%{version}.tar.bz2
|
||||||
Source3: %name-preamble
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: linux-glibc-devel >= 2.6.24
|
BuildRequires: linux-glibc-devel >= 2.6.24
|
||||||
BuildRequires: pkgconfig >= 0.21
|
BuildRequires: pkgconfig >= 0.21
|
||||||
BuildRequires: pkgconfig(libmnl) >= 1
|
BuildRequires: pkgconfig(libmnl) >= 1
|
||||||
# Make quilt happy
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?kernel_module_package_buildreqs:1}
|
|
||||||
%define with_kmp 1
|
|
||||||
BuildRequires: %kernel_module_package_buildreqs
|
|
||||||
%endif
|
|
||||||
BuildRequires: kernel-syms >= 2.6.39
|
|
||||||
Recommends: %name-kmp
|
|
||||||
|
|
||||||
%if 0%{?with_kmp:1}
|
|
||||||
%kernel_module_package -p %name-preamble
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
IP sets are a framework inside the Linux kernel, which can be
|
IP sets are a framework inside the Linux kernel, which can be
|
||||||
@ -64,24 +50,11 @@ ipset can:
|
|||||||
* express complex IP address and ports based rulesets with one single
|
* express complex IP address and ports based rulesets with one single
|
||||||
iptables rule and benefit from the speed of IP sets
|
iptables rule and benefit from the speed of IP sets
|
||||||
|
|
||||||
%package KMP
|
%package -n %{lname}
|
||||||
Summary: Netfilter ipset kernel modules
|
|
||||||
Group: System/Kernel
|
|
||||||
|
|
||||||
%description KMP
|
|
||||||
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.
|
|
||||||
|
|
||||||
This package contains a version update to the in-kernel ipset modules.
|
|
||||||
|
|
||||||
%package -n %lname
|
|
||||||
Summary: Userspace library for the in-kernel Netfilter ipset interface
|
Summary: Userspace library for the in-kernel Netfilter ipset interface
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %{lname}
|
||||||
IP sets are a framework inside the Linux kernel, which can be
|
IP sets are a framework inside the Linux kernel, which can be
|
||||||
administered by the ipset utility. Depending on the type, currently
|
administered by the ipset utility. Depending on the type, currently
|
||||||
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
an IP set may store IP addresses, (TCP/UDP) port numbers or IP
|
||||||
@ -91,7 +64,7 @@ when matching an entry against a set.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for ipset extensions
|
Summary: Development files for ipset extensions
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %version
|
Requires: %{lname} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
IP sets are a framework inside the Linux kernel, which can be
|
IP sets are a framework inside the Linux kernel, which can be
|
||||||
@ -104,54 +77,32 @@ when matching an entry against a set.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?with_kmp}
|
|
||||||
for flavor in %flavors_to_build; do
|
|
||||||
cp -a . "../%name-$flavor-%version";
|
|
||||||
pushd "../%name-$flavor-%version/";
|
|
||||||
# ksource: it just checks for a header
|
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor" \
|
--with-kmod=no \
|
||||||
--with-ksource="/usr/src/linux" \
|
--includedir="%{_includedir}/pkg/%{name}"
|
||||||
--includedir="%_includedir/pkg/%name"
|
|
||||||
make %{?_smp_mflags} all modules;
|
|
||||||
popd;
|
|
||||||
done;
|
|
||||||
%else
|
|
||||||
%configure --disable-static --with-kmod=no \
|
|
||||||
--includedir="%_includedir/pkg/%name"
|
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags};
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
make %{?_smp_mflags} install DESTDIR="%{buildroot}";
|
||||||
%if 0%{?with_kmp}
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
for flavor in %flavors_to_build; do
|
|
||||||
pushd "../%name-$flavor-%version/";
|
|
||||||
make %{?_smp_mflags} install modules_install \
|
|
||||||
DESTDIR="$b" INSTALL_MOD_PATH="$b";
|
|
||||||
popd;
|
|
||||||
done;
|
|
||||||
%else
|
|
||||||
make %{?_smp_mflags} install DESTDIR="$b";
|
|
||||||
%endif
|
|
||||||
find "$b/%_libdir" -type f -name "*.la" -delete;
|
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %{lname} -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
|
||||||
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_sbindir/ipset
|
%{_sbindir}/ipset
|
||||||
%_mandir/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %{lname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/libipset.so.3*
|
%{_libdir}/libipset.so.3*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/libipset.so
|
%{_libdir}/libipset.so
|
||||||
%_libdir/pkgconfig/libipset.pc
|
%{_libdir}/pkgconfig/libipset.pc
|
||||||
%_includedir/pkg/
|
%{_includedir}/pkg/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user