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
|
|
|
#
|
2015-07-06 06:15:24 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xtables-addons
|
2015-07-06 06:15:24 +02:00
|
|
|
Version: 2.7
|
2012-11-12 22:05:43 +01:00
|
|
|
Release: 0
|
2010-01-07 11:52:44 +01:00
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2013-02-28 12:21:57 +01:00
|
|
|
License: GPL-2.0 and GPL-2.0+
|
2012-02-13 12:59:40 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2011-12-31 00:37:41 +01:00
|
|
|
Url: http://xtables-addons.sf.net/
|
2012-01-04 22:15:57 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons
|
|
|
|
#Git-Web: http://xtables-addons.git.sf.net/
|
2014-09-29 10:41:29 +02:00
|
|
|
Source: http://downloads.sf.net/%name/%name-%version.tar.xz
|
|
|
|
Source2: http://downloads.sf.net/%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
|
2012-01-04 22:15:57 +01:00
|
|
|
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-09 14:52:34 +01:00
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
2014-01-09 14:53:19 +01:00
|
|
|
BuildRequires: kernel-syms >= 3.7
|
2012-06-30 19:47:20 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2012-02-13 12:59:40 +01:00
|
|
|
BuildRequires: xz
|
2012-04-05 05:06:09 +02:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.4.5
|
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
|
2014-09-29 10:41:29 +02:00
|
|
|
%setup -q
|
2010-11-05 19:51:37 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-07 11:52:44 +01:00
|
|
|
pushd ../;
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
cp -a "%name-%version" "%name-$flavor-%version";
|
|
|
|
pushd "%name-$flavor-%version/";
|
|
|
|
%configure --with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor";
|
2013-03-31 21:33:08 +02:00
|
|
|
make %{?_smp_mflags} V=1;
|
2010-01-07 11:52:44 +01:00
|
|
|
popd;
|
|
|
|
done;
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
pushd ../;
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
pushd "%name-$flavor-%version/";
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
popd;
|
|
|
|
done;
|
|
|
|
# There is no -devel package. So no need for these files.
|
2010-03-19 09:56:39 +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
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
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/
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|