- use the kernel headers from the build tree for iptables for now to be

able to compile this package, but this makes the package more kernel
    dependant
This commit is contained in:
Thomas Woerner 2008-03-03 09:35:13 +00:00
parent b6ec3795a0
commit 2d8b12dfae

View File

@ -3,7 +3,7 @@
Name: iptables Name: iptables
Summary: Tools for managing Linux kernel packet filtering capabilities Summary: Tools for managing Linux kernel packet filtering capabilities
Version: 1.4.0 Version: 1.4.0
Release: 2%{?dist} Release: 3%{?dist}
Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
Source1: iptables.init Source1: iptables.init
Source2: iptables-config Source2: iptables-config
@ -15,6 +15,7 @@ URL: http://www.netfilter.org/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
License: GPLv2 License: GPLv2
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: kernel
Conflicts: kernel < 2.4.20 Conflicts: kernel < 2.4.20
Requires(post): chkconfig Requires(post): chkconfig
Requires(preun): chkconfig Requires(preun): chkconfig
@ -71,7 +72,7 @@ perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) nf_ext_init\(/g" extensio
TOPDIR=`pwd` TOPDIR=`pwd`
OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC" OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC"
export KERNEL_DIR=/usr export KERNEL_DIR=/usr
export KBUILD_OUTPUT=/usr #export KBUILD_OUTPUT=/usr
export DO_SELINUX=1 export DO_SELINUX=1
make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} make COPT_FLAGS="$OPT" LIBDIR=/%{_lib}
make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore
@ -80,7 +81,7 @@ make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} ip6tables-save ip6tables-restore
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
export KERNEL_DIR=/usr export KERNEL_DIR=/usr
export KBUILD_OUTPUT=/usr #export KBUILD_OUTPUT=/usr
export DO_SELINUX=1 export DO_SELINUX=1
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir} make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir}
%if %{build_devel} %if %{build_devel}
@ -154,6 +155,10 @@ fi
%endif %endif
%changelog %changelog
* Mon Mar 3 2008 Thomas Woerner <twoerner@redhat.com> 1.4.0-3
- use the kernel headers from the build tree for iptables for now to be able to
compile this package, but this makes the package more kernel dependant
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.0-2 * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.0-2
- Autorebuild for GCC 4.3 - Autorebuild for GCC 4.3