mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 21:00:37 +02:00
this patch fixes iptables parallel build.
-Raphael git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20188 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
32defdcd74
commit
f1dab524fd
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2009 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=iptables
|
PKG_NAME:=iptables
|
||||||
PKG_VERSION:=1.4.6
|
PKG_VERSION:=1.4.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MD5SUM:=c67cf30e281a924def6426be0973df56
|
PKG_MD5SUM:=c67cf30e281a924def6426be0973df56
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
@ -19,7 +19,7 @@ PKG_SOURCE_URL:=http://www.netfilter.org/projects/iptables/files \
|
|||||||
ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ \
|
ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ \
|
||||||
ftp://ftp.no.netfilter.org/pub/netfilter/iptables/
|
ftp://ftp.no.netfilter.org/pub/netfilter/iptables/
|
||||||
|
|
||||||
PKG_FIXUP = libtool
|
PKG_FIXUP:=libtool
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
ifeq ($(DUMP),)
|
ifeq ($(DUMP),)
|
||||||
@ -206,7 +206,7 @@ $(call Package/iptables/Module, +kmod-ipt-extra)
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/iptables-mod-extra/description
|
define Package/iptables-mod-extra/description
|
||||||
other extra iptables extensions.
|
Other extra iptables extensions.
|
||||||
Includes:
|
Includes:
|
||||||
- libipt_owner
|
- libipt_owner
|
||||||
- libipt_physdev
|
- libipt_physdev
|
||||||
@ -268,18 +268,20 @@ IPTABLES_MAKEOPTS = \
|
|||||||
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
||||||
KBUILD_OUTPUT="$(LINUX_DIR)" \
|
KBUILD_OUTPUT="$(LINUX_DIR)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install $(MAKE_TARGETS)
|
$(MAKE_TARGETS)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
mkdir -p $(PKG_INSTALL_DIR)
|
$(INSTALL_DIR) $(PKG_INSTALL_DIR)
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(IPTABLES_MAKEOPTS)
|
$(MAKE) -C $(PKG_BUILD_DIR) $(IPTABLES_MAKEOPTS)
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR) $(IPTABLES_MAKEOPTS) install
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)/libipq $(IPTABLES_MAKEOPTS)
|
$(MAKE) -C $(PKG_BUILD_DIR)/libipq $(IPTABLES_MAKEOPTS)
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR)/libipq $(IPTABLES_MAKEOPTS) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
mkdir -p $(1)/usr/include/iptables
|
$(INSTALL_DIR) $(1)/usr/include/iptables
|
||||||
mkdir -p $(1)/usr/include/net/netfilter
|
$(INSTALL_DIR) $(1)/usr/include/net/netfilter
|
||||||
|
|
||||||
# XXX: iptables header fixup, some headers are not installed by iptables anymore
|
# XXX: iptables header fixup, some headers are not installed by iptables anymore
|
||||||
$(CP) $(PKG_BUILD_DIR)/include/net/netfilter/*.h $(1)/usr/include/net/netfilter/
|
$(CP) $(PKG_BUILD_DIR)/include/net/netfilter/*.h $(1)/usr/include/net/netfilter/
|
||||||
@ -290,11 +292,11 @@ define Build/InstallDev
|
|||||||
$(CP) $(PKG_BUILD_DIR)/include/libiptc $(1)/usr/include/
|
$(CP) $(PKG_BUILD_DIR)/include/libiptc $(1)/usr/include/
|
||||||
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
||||||
mkdir -p $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.{a,so*} $(1)/usr/lib/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libip*tc.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libip*tc.{a,so*} $(1)/usr/lib/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipq.a $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipq.a $(1)/usr/lib/
|
||||||
mkdir -p $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xtables.pc $(1)/usr/lib/pkgconfig/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xtables.pc $(1)/usr/lib/pkgconfig/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libiptc.pc $(1)/usr/lib/pkgconfig/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libiptc.pc $(1)/usr/lib/pkgconfig/
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user