2003-02-19 08:07:53 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# bridgeutils - User Space Program For Controling Bridging
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
#
|
2004-06-14 22:20:12 +02:00
|
|
|
BRIDGE_SOURCE_URL=http://umn.dl.sourceforge.net/sourceforge/bridge/
|
|
|
|
BRIDGE_SOURCE=bridge-utils-1.0.4.tar.gz
|
|
|
|
BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-1.0.4
|
2004-03-05 19:59:41 +01:00
|
|
|
BRIDGE_TARGET_BINARY:=usr/sbin/brctl
|
2003-02-19 08:07:53 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(BRIDGE_SOURCE):
|
2004-10-09 04:49:33 +02:00
|
|
|
$(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2004-10-09 04:49:33 +02:00
|
|
|
patch -p1 -d $(BRIDGE_BUILD_DIR) < package/bridge/bridge.patch
|
2003-02-19 08:07:53 +01:00
|
|
|
touch $(BRIDGE_BUILD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
|
|
|
|
(cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2003-11-01 06:34:41 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2003-09-05 01:48:03 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
$(DISABLE_NLS) \
|
2004-03-05 19:59:41 +01:00
|
|
|
--with-linux=$(LINUX_DIR) \
|
2003-02-19 08:07:53 +01:00
|
|
|
);
|
|
|
|
touch $(BRIDGE_BUILD_DIR)/.configured
|
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
|
2003-09-05 01:48:03 +02:00
|
|
|
$(MAKE) -C $(BRIDGE_BUILD_DIR)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2004-03-05 19:59:41 +01:00
|
|
|
$(TARGET_DIR)/$(BRIDGE_TARGET_BINARY): $(BRIDGE_BUILD_DIR)/brctl/brctl
|
|
|
|
cp -af $(BRIDGE_BUILD_DIR)/brctl/brctl $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
|
|
|
$(STRIP) $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
|
|
|
#cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
|
|
|
|
#$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2004-10-05 09:10:07 +02:00
|
|
|
bridge: linux $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
|
|
|
|
|
2003-02-19 08:07:53 +01:00
|
|
|
bridge-clean:
|
2004-03-05 19:59:41 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
|
2003-02-19 08:07:53 +01:00
|
|
|
-$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
|
|
|
|
|
|
|
|
bridge-dirclean:
|
|
|
|
rm -rf $(BRIDGE_BUILD_DIR)
|