2010-01-07 11:52:44 +01:00
|
|
|
#
|
2011-04-07 17:13:26 +02:00
|
|
|
# spec file for package xtables-addons
|
2010-01-07 11:52:44 +01:00
|
|
|
#
|
2021-02-05 22:02:50 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-01-07 11:52:44 +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.
|
|
|
|
|
2019-03-07 10:27:40 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-01-07 11:52:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xtables-addons
|
2021-02-05 22:02:50 +01:00
|
|
|
Version: 3.15
|
2012-11-12 22:05:43 +01:00
|
|
|
Release: 0
|
2010-01-07 11:52:44 +01:00
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2018-06-20 00:01:17 +02:00
|
|
|
License: GPL-2.0-only AND GPL-2.0-or-later
|
2012-02-13 12:59:40 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2019-09-06 11:02:15 +02:00
|
|
|
URL: http://xtables-addons.sf.net/
|
2012-01-04 22:15:57 +01:00
|
|
|
|
2020-09-16 19:53:16 +02:00
|
|
|
#Git-Clone: git://git.inai.de/xtables-addons
|
|
|
|
Source: https://inai.de/files/%name/%name-%version.tar.xz
|
|
|
|
Source2: https://inai.de/files/%name/%name-%version.tar.asc
|
2011-04-11 10:25:38 +02:00
|
|
|
Source3: %name-preamble
|
2012-12-09 23:39:23 +01:00
|
|
|
Source4: %name.keyring
|
2014-01-09 14:52:34 +01:00
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
2018-02-12 15:24:43 +01:00
|
|
|
BuildRequires: kernel-syms >= 4.15
|
2015-08-19 12:45:27 +02:00
|
|
|
BuildRequires: pkg-config >= 0.21
|
2012-02-13 12:59:40 +01:00
|
|
|
BuildRequires: xz
|
2018-02-12 15:24:43 +01:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.6.0
|
2018-09-05 09:23:13 +02:00
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Net::CIDR::Lite)
|
|
|
|
Requires: perl(Socket)
|
|
|
|
Requires: perl(Text::CSV_XS)
|
|
|
|
Requires: perl(strict)
|
|
|
|
Requires: perl(warnings)
|
2011-08-20 17:26:04 +02:00
|
|
|
Recommends: %name-kmp
|
2010-01-07 11:52:44 +01:00
|
|
|
Recommends: xtables-geoip
|
2010-11-23 14:48:13 +01:00
|
|
|
|
|
|
|
%define xtlibdir %(pkg-config xtables --variable=xtlibdir)
|
|
|
|
|
2011-04-07 17:13:26 +02:00
|
|
|
%kernel_module_package -p %name-preamble
|
2010-01-07 11:52:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xtables is used to set up, maintain, and inspect the tables of IP
|
|
|
|
packet filter rules in the Linux kernel.
|
|
|
|
|
|
|
|
Xtables-addons is the successor to patch-o-matic(-ng). Likewise, it
|
2010-02-12 00:47:05 +01:00
|
|
|
contains extensions that were not, or are not yet, accepted in the
|
|
|
|
main kernel/iptables packages.
|
|
|
|
|
|
|
|
%package KMP
|
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2012-02-13 12:59:40 +01:00
|
|
|
Group: System/Kernel
|
2010-02-12 00:47:05 +01:00
|
|
|
|
|
|
|
%description KMP
|
|
|
|
Xtables is used to set up, maintain, and inspect the tables of IP
|
|
|
|
packet filter rules in the Linux kernel.
|
|
|
|
|
|
|
|
Xtables-addons is the successor to patch-o-matic(-ng). Likewise, it
|
2010-01-07 11:52:44 +01:00
|
|
|
contains extensions that were not, or are not yet, accepted in the
|
|
|
|
main kernel/iptables packages.
|
|
|
|
|
|
|
|
%prep
|
2019-09-06 11:02:15 +02:00
|
|
|
%autosetup -p1
|
2010-11-05 19:51:37 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-20 23:58:19 +01:00
|
|
|
pushd ../
|
2010-01-07 11:52:44 +01:00
|
|
|
for flavor in %flavors_to_build; do
|
2015-11-20 23:58:19 +01:00
|
|
|
cp -a "%name-%version" "%name-$flavor-%version"
|
|
|
|
pushd "%name-$flavor-%version/"
|
|
|
|
%configure --with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor"
|
2018-06-20 00:01:17 +02:00
|
|
|
make %{?linux_make_arch} %{?_smp_mflags} V=1
|
2015-11-20 23:58:19 +01:00
|
|
|
popd
|
|
|
|
done
|
2010-01-07 11:52:44 +01:00
|
|
|
|
|
|
|
%install
|
2015-11-20 23:58:19 +01:00
|
|
|
b="%buildroot"
|
|
|
|
pushd ../
|
2010-01-07 11:52:44 +01:00
|
|
|
for flavor in %flavors_to_build; do
|
2015-11-20 23:58:19 +01:00
|
|
|
pushd "%name-$flavor-%version/"
|
2018-06-20 00:01:17 +02:00
|
|
|
make %{?linux_make_arch} install DESTDIR="$b"
|
2015-11-20 23:58:19 +01:00
|
|
|
popd
|
|
|
|
done
|
2010-01-07 11:52:44 +01:00
|
|
|
# There is no -devel package. So no need for these files.
|
2015-11-20 23:58:19 +01:00
|
|
|
find "$b/%_prefix" -iname "*.la" -delete
|
|
|
|
find "$b/%_libdir" -maxdepth 1 -type l -iname "*.so" -delete
|
2010-01-07 11:52:44 +01:00
|
|
|
|
2015-08-19 12:45:27 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2010-01-07 11:52:44 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2021-02-05 22:02:50 +01:00
|
|
|
%_bindir/xt_geoip*
|
2014-09-29 10:41:29 +02:00
|
|
|
%_mandir/man*/*
|
2010-01-07 11:52:44 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_libdir/*.so.*
|
2014-09-29 10:41:29 +02:00
|
|
|
%xtlibdir/
|
|
|
|
%_libexecdir/xtables-addons/
|
2019-09-06 11:02:15 +02:00
|
|
|
%license LICENSE
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|