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
|
|
|
#
|
2011-04-07 17:13:26 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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
|
2011-06-25 11:28:27 +02:00
|
|
|
Version: 1.37
|
2010-04-01 17:48:07 +02:00
|
|
|
Release: 1
|
2010-01-07 11:52:44 +01:00
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Summary: IP Packet Filter Administration Extensions
|
|
|
|
License: GPL
|
2011-06-06 12:00:35 +02:00
|
|
|
Url: http://xtables-addons.sf.net/
|
2010-07-24 11:48:27 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2010-10-03 22:35:31 +02:00
|
|
|
Source2: %name-%version.tar.xz.asc
|
2011-04-11 10:25:38 +02:00
|
|
|
Source3: %name-preamble
|
2010-01-07 11:52:44 +01:00
|
|
|
#Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons
|
|
|
|
#Git-Web: http://xtables-addons.git.sf.net/
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-07 11:52:44 +01:00
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRequires: iptables-devel >= 1.4.3 libmnl-devel >= 1
|
2011-08-13 00:57:46 +02:00
|
|
|
BuildRequires: iptables-devel
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRequires: pkg-config >= 0.23 xz
|
2010-07-24 11:48:27 +02:00
|
|
|
Recommends: %name-kmp
|
2010-01-07 11:52:44 +01:00
|
|
|
# Yes, we've got a lot of good stuff!
|
2011-06-03 17:17:16 +02:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
Provides: ipset = 6.7
|
2011-01-14 15:25:52 +01:00
|
|
|
%else
|
|
|
|
Provides: ipset = 4.5
|
|
|
|
%endif
|
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
|
2010-03-19 09:56:39 +01:00
|
|
|
Group: System/Kernel
|
2010-02-12 00:47:05 +01:00
|
|
|
License: GPL
|
|
|
|
Summary: IP Packet Filter Administration Extensions
|
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q
|
2010-11-05 19:51:37 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-07 11:52:44 +01:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh;
|
|
|
|
fi;
|
2011-02-02 05:49:19 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2011-04-11 23:05:22 +02:00
|
|
|
# ipset6-genl needs >=2.6.35
|
|
|
|
echo "build_ipset4=" >>mconfig;
|
|
|
|
echo "build_ipset6=m" >>mconfig;
|
2011-01-14 15:25:52 +01:00
|
|
|
%endif
|
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";
|
|
|
|
make %{?_smp_mflags};
|
|
|
|
popd;
|
|
|
|
done;
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
2011-06-03 17:17:16 +02:00
|
|
|
#rm -Rf "$b";
|
|
|
|
#mkdir "$b";
|
2010-01-07 11:52:44 +01:00
|
|
|
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)
|
2010-10-03 22:35:31 +02:00
|
|
|
%doc %_mandir/*/*
|
2010-01-07 11:52:44 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_libdir/*.so.*
|
2010-11-23 14:48:13 +01:00
|
|
|
%xtlibdir
|
2010-10-03 22:35:31 +02:00
|
|
|
%_libexecdir/xtables-addons
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|