merge some updates from George Joseph
authorMike Frysinger <vapier@gentoo.org>
Tue, 11 Jan 2005 02:32:37 +0000 (02:32 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 11 Jan 2005 02:32:37 +0000 (02:32 -0000)
package/iptables/iptables.mk

index a48935822fbb5b195c9e17912c990e0bd74aebfa..f053f1e33df71d3f63144380817ef2de8164022c 100644 (file)
@@ -3,9 +3,10 @@
 # iptables
 #
 #############################################################
-IPTABLES_SOURCE_URL=http://www.netfilter.org/files
-IPTABLES_SOURCE=iptables-1.2.9.tar.bz2
-IPTABLES_BUILD_DIR=$(BUILD_DIR)/iptables-1.2.9
+IPTABLES_VER:=1.2.11
+IPTABLES_SOURCE_URL:=http://www.netfilter.org/files
+IPTABLES_SOURCE:=iptables-$(IPTABLES_VER).tar.bz2
+IPTABLES_BUILD_DIR:=$(BUILD_DIR)/iptables-$(IPTABLES_VER)
 
 $(DL_DIR)/$(IPTABLES_SOURCE):
         $(WGET) -P $(DL_DIR) $(IPTABLES_SOURCE_URL)/$(IPTABLES_SOURCE) 
@@ -28,7 +29,7 @@ $(IPTABLES_BUILD_DIR)/iptables: $(IPTABLES_BUILD_DIR)/.configured
                KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
                CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)"
 
-$(TARGET_DIR)/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
+$(TARGET_DIR)/usr/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
        $(TARGET_CONFIGURE_OPTS) \
        $(MAKE) -C $(IPTABLES_BUILD_DIR) \
                KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
@@ -38,7 +39,7 @@ $(TARGET_DIR)/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
        $(STRIP) $(TARGET_DIR)/usr/lib/iptables/*.so
        rm -rf $(TARGET_DIR)/usr/man
 
-iptables: linux $(TARGET_DIR)/sbin/iptables
+iptables: kernel-headers $(TARGET_DIR)/usr/sbin/iptables
 
 iptables-source: $(DL_DIR)/$(IPTABLES_SOURCE)
 
@@ -48,4 +49,3 @@ iptables-clean:
 
 iptables-dirclean:
        rm -rf $(IPTABLES_BUILD_DIR)
-