add USE_* variables to the makefiles

SVN-Revision: 36
This commit is contained in:
Mike Baker 2004-05-26 01:09:18 +00:00
parent 067bb8d401
commit 77f8ebcf1c
2 changed files with 16 additions and 11 deletions

View File

@ -3,18 +3,21 @@
# bridgeutils - User Space Program For Controling Bridging # bridgeutils - User Space Program For Controling Bridging
# #
############################################################# #############################################################
#
BRIDGE_SOURCE_URL=http://bridge.sourceforge.net/bridge-utils ifeq ($(strip $(USE_BRIDGE_VERSION)),)
BRIDGE_SOURCE=bridge-utils-0.9.6.tar.gz USE_BRIDGE_VERSION=0.9.7
BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-0.9.6 endif
BRIDGE_SOURCE_URL=http://dl.sourceforge.net/sourceforge/bridge/
BRIDGE_SOURCE=bridge-utils-$(USE_BRIDGE_VERSION).tgz
BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-$(USE_BRIDGE_VERSION)
BRIDGE_TARGET_BINARY:=usr/sbin/brctl BRIDGE_TARGET_BINARY:=usr/sbin/brctl
$(DL_DIR)/$(BRIDGE_SOURCE): $(DL_DIR)/$(BRIDGE_SOURCE):
$(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE) $(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
$(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE) $(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) -xvf - # ack! it's a .tgz which is really a bzip
mv -f $(BUILD_DIR)/bridge-utils $(BRIDGE_BUILD_DIR) bzcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
patch -p1 -d $(BRIDGE_BUILD_DIR) < $(SOURCE_DIR)/bridge.patch patch -p1 -d $(BRIDGE_BUILD_DIR) < $(SOURCE_DIR)/bridge.patch
touch $(BRIDGE_BUILD_DIR)/.unpacked touch $(BRIDGE_BUILD_DIR)/.unpacked

View File

@ -4,10 +4,12 @@
# #
############################################################# #############################################################
NETFILTER_SNAPSHOT:=20040508 ifeq ($(strip $(USE_NETFILTER_SNAPSHOT)),)
NETFILTER_SOURCE:=patch-o-matic-$(NETFILTER_SNAPSHOT).tar.bz2 USE_NETFILTER_SNAPSHOT=20040508
NETFILTER_SITE:=ftp://ftp.netfilter.org/pub/patch-o-matic/snapshot/ endif
NETFILTER_DIR:=$(BUILD_DIR)/patch-o-matic-$(NETFILTER_SNAPSHOT) NETFILTER_SOURCE:=patch-o-matic-$(USE_NETFILTER_SNAPSHOT).tar.bz2
NETFILTER_DIR:=$(BUILD_DIR)/patch-o-matic-$(USE_NETFILTER_SNAPSHOT)
NETFILTER_SITE:=ftp://ftp.netfilter.org/pub/patch-o-matic/snapshot
NETFILTER_CAT:=bzcat NETFILTER_CAT:=bzcat
# ipv6_mld breaks net/ipv6/mcast.c # ipv6_mld breaks net/ipv6/mcast.c
@ -27,7 +29,7 @@ NETFILTER_PATCHES:= \
LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux LINUX_DIR:=$(BUILD_DIR)/WRT54GS/release/src/linux/linux
$(DL_DIR)/$(NETFILTER_SOURCE): $(DL_DIR)/$(NETFILTER_SOURCE):
$(WGET) -P $(DL_DIR) $(NETFILTER_SITE)/$(NETFILTER_SOURCE) echo $(WGET) -P $(DL_DIR) $(NETFILTER_SITE)/$(NETFILTER_SOURCE)
netfilter-source: $(DL_DIR)/$(NETFILTER_SOURCE) netfilter-source: $(DL_DIR)/$(NETFILTER_SOURCE)