2010-01-07 11:52:44 +01:00
|
|
|
#
|
2010-07-24 11:48:27 +02:00
|
|
|
# spec file for package xtables-addons (Version 1.27)
|
2010-01-07 11:52:44 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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
|
2010-10-03 22:35:30 +02:00
|
|
|
Version: 1.27
|
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
|
2010-04-01 17:48:07 +02:00
|
|
|
Url: http://xtables-addons.sf.net/
|
2010-07-24 11:48:27 +02:00
|
|
|
Source: %name-%version.tar.xz
|
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/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
|
|
|
BuildRequires: iptables-devel >= 1.4.3
|
2010-10-03 22:35:30 +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!
|
2010-10-03 22:35:30 +02:00
|
|
|
Provides: ipset = 4.2
|
2010-01-07 11:52:44 +01:00
|
|
|
Recommends: xtables-geoip
|
|
|
|
%kernel_module_package
|
|
|
|
|
|
|
|
%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
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh;
|
|
|
|
fi;
|
|
|
|
|
|
|
|
%build
|
|
|
|
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";
|
|
|
|
rm -Rf "$b";
|
|
|
|
mkdir "$b";
|
|
|
|
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
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -Rf "%buildroot";
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-10-03 22:35:30 +02:00
|
|
|
%_mandir/*/*
|
2010-01-07 11:52:44 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_libdir/*.so.*
|
|
|
|
%_libexecdir/xtables
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|