1
0
forked from jengelh/iptables

Make build work for Fedorean systems

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=23
This commit is contained in:
Jan Engelhardt 2011-08-01 18:46:26 +00:00 committed by Git OBS Bridge
parent 5d930c329c
commit 3b61f64323
2 changed files with 37 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Summary: IP Packet Filter Administration
#Git-Clone: git://git.netfilter.org/iptables #Git-Clone: git://git.netfilter.org/iptables
Source: %name-%version.tar.xz Source: %name-%version.tar.xz
Patch1: iptables-batch.patch Patch1: iptables-batch.patch
Patch2: proc-header.diff
Url: http://netfilter.org/ Url: http://netfilter.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} %if 0%{?suse_version}
@ -58,8 +59,13 @@ These libraries are needed to compile
- programs using libipq - programs using libipq
%prep %prep
%if 0%{?__xz:1}
%setup -q %setup -q
%patch -P 1 -p1 %else
tar -xf "%{S:0}" --use=xz;
%setup -DTq
%endif
%patch -P 1 -P 2 -p1
%build %build
if [ ! -e configure ]; then if [ ! -e configure ]; then

30
proc-header.diff Normal file
View File

@ -0,0 +1,30 @@
parent 67156c0b9a3d35f5e7836e5683d8ca0b46ac36ca (v1.4.11.1-34-g67156c0)
commit 41a9b481693b4c43c16d0588cc558dd455168af0
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Mon Aug 1 20:14:57 2011 +0200
build: workaround broken linux-headers on RHEL-5
maigc.h was not invented yet, but they do not
ship proc_fs.h either, duh.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
iptables/xtables.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/iptables/xtables.c b/iptables/xtables.c
index 1a5e568..233efa3 100644
--- a/iptables/xtables.c
+++ b/iptables/xtables.c
@@ -37,6 +37,8 @@
# include <linux/magic.h> /* for PROC_SUPER_MAGIC */
#elif defined(HAVE_LINUX_PROC_FS_H)
# include <linux/proc_fs.h> /* Linux 2.4 */
+#else
+# define PROC_SUPER_MAGIC 0x9fa0
#endif
#include <xtables.h>
--
# Created with git-export-patch