From 76478e42841983d2ca0cea06cda915be7183a335e222353e32dbb2a714784970 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Thu, 7 Jan 2010 10:52:44 +0000 Subject: [PATCH] Accepting request 28070 from Base:System Copy from Base:System/xtables-addons based on submit request 28070 from user jengelh OBS-URL: https://build.opensuse.org/request/show/28070 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtables-addons?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + geoip-dir.diff | 46 ++++++++++++++++++ ready | 0 xtables-addons-1.21.tar.bz2 | 3 ++ xtables-addons.changes | 20 ++++++++ xtables-addons.spec | 93 +++++++++++++++++++++++++++++++++++++ 7 files changed, 186 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 geoip-dir.diff create mode 100644 ready create mode 100644 xtables-addons-1.21.tar.bz2 create mode 100644 xtables-addons.changes create mode 100644 xtables-addons.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/geoip-dir.diff b/geoip-dir.diff new file mode 100644 index 0000000..f65e716 --- /dev/null +++ b/geoip-dir.diff @@ -0,0 +1,46 @@ +Author: Jan Engelhardt +Date: Thu Dec 31 16:37:42 2009 +0100 + +geoip: use /usr/share/xt_geoip instead of /var/geoip + +For grand FHS compliance. +Plus OpenSUSE instructions. +--- + extensions/libxt_geoip.c | 2 +- + extensions/libxt_geoip.man | 11 +++++++---- + 2 files changed, 8 insertions(+), 5 deletions(-) + +Index: xtables-addons-1.21/extensions/libxt_geoip.c +=================================================================== +--- xtables-addons-1.21.orig/extensions/libxt_geoip.c ++++ xtables-addons-1.21/extensions/libxt_geoip.c +@@ -24,7 +24,7 @@ + #include + #include + #include "xt_geoip.h" +-#define GEOIP_DB_DIR "/var/geoip" ++#define GEOIP_DB_DIR "/usr/share/xt_geoip" + + static void geoip_help(void) + { +Index: xtables-addons-1.21/extensions/libxt_geoip.man +=================================================================== +--- xtables-addons-1.21.orig/extensions/libxt_geoip.man ++++ xtables-addons-1.21/extensions/libxt_geoip.man +@@ -8,9 +8,12 @@ Match packet going to (one of) the speci + .TP + NOTE: + The country is inputed by its ISO3166 code. +-.P +-The extra files you will need is the binary database files. They are generated ++.PP ++The extra files you will need is the binary database files. These are provided ++in openSUSE through the "xtables-geoip" package. ++.PP ++Alternatively, they can be generated + from a country-subnet database with the geoip_csv_iv0.pl tool, available at +-http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/geoip/ ++http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /usr/share/geoip/ + as the shared library is statically looking for this pathname (e.g. +-/var/geoip/LE/de.iv0). ++/usr/share/geoip/LE/de.iv0). diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/xtables-addons-1.21.tar.bz2 b/xtables-addons-1.21.tar.bz2 new file mode 100644 index 0000000..2cfc99c --- /dev/null +++ b/xtables-addons-1.21.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebf2bbe07999309b4cb61ac4b58fa3312bb348669ee374c29dd91bd2ebf81285 +size 366687 diff --git a/xtables-addons.changes b/xtables-addons.changes new file mode 100644 index 0000000..b86a2ce --- /dev/null +++ b/xtables-addons.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Thu Dec 31 01:50:38 CET 2009 - jengelh@medozas.de + +- initial OBS package + +------------------------------------------------------------------- +Wed Dec 09 2009 - jengelh@medozas.de + +- new upstream release: 1.21 + * fix clashing setsockopt numbers between xt_ACCOUNT and arptables + +------------------------------------------------------------------- +Thu Nov 19 2009 - jengelh@medozas.de + +- new upstream release: 1.20 + +------------------------------------------------------------------- +Mon Oct 12 2009 - jengelh@medozas.de + +- new upstream release: 1.19 diff --git a/xtables-addons.spec b/xtables-addons.spec new file mode 100644 index 0000000..ab0f54a --- /dev/null +++ b/xtables-addons.spec @@ -0,0 +1,93 @@ +# +# spec file for package xtables-addons (Version 1.21) +# +# 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 +Version: 1.21 +Release: 1 +Group: Productivity/Networking/Security +Summary: IP Packet Filter Administration Extensions +License: GPL +Url: http://xtables-addons.sf.net/ +Source: %name-%version.tar.bz2 +#Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons +#Git-Web: http://xtables-addons.git.sf.net/ +Patch1: geoip-dir.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %kernel_module_package_buildreqs +BuildRequires: iptables-devel >= 1.4.3 +BuildRequires: pkg-config >= 0.23 +Requires: %name-kmp +# Yes, we've got a lot of good stuff! +Provides: ipset = 4.1 +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 +contains extensions that were not, or are not yet, accepted in the +main kernel/iptables packages. + +%prep +%setup -q +%patch -P 1 -p1 +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. +find "$b/%_prefix" -iname "*.la" -print0 | xargs -0r rm -f; +find "$b/%_libdir" -maxdepth 1 -type l -iname "*.so" -print0 | xargs -0r rm -f; + +%clean +rm -Rf "%buildroot"; + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%_mandir/*/* +%_sbindir/* +%_libdir/*.so.* +%_libexecdir/xtables +%changelog