1 #############################################################
3 # bridgeutils - User Space Program For Controling Bridging
5 #############################################################
7 BRIDGE_SOURCE_URL
=http
://umn.dl.sourceforge.net
/sourceforge
/bridge
/
8 BRIDGE_SOURCE
=bridge-utils-1.0
.4.
tar.gz
9 BRIDGE_BUILD_DIR
=$(BUILD_DIR
)/bridge-utils-1.0
.4
10 BRIDGE_TARGET_BINARY
:=usr
/sbin
/brctl
12 $(DL_DIR
)/$(BRIDGE_SOURCE
):
13 $(WGET
) -P
$(DL_DIR
) $(BRIDGE_SOURCE_URL
)/$(BRIDGE_SOURCE
)
15 $(BRIDGE_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(BRIDGE_SOURCE
)
16 zcat
$(DL_DIR
)/$(BRIDGE_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
17 patch
-p1
-d
$(BRIDGE_BUILD_DIR
) < package
/bridge
/bridge.patch
18 touch
$(BRIDGE_BUILD_DIR
)/.unpacked
20 $(BRIDGE_BUILD_DIR
)/.configured
: $(BRIDGE_BUILD_DIR
)/.unpacked
21 (cd
$(BRIDGE_BUILD_DIR
); rm -rf config.cache
; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
32 --libexecdir
=/usr
/lib \
34 --datadir=/usr
/share \
35 --localstatedir
=/var \
39 --with-linux-headers
=$(LINUX_DIR
) \
41 touch
$(BRIDGE_BUILD_DIR
)/.configured
43 $(BRIDGE_BUILD_DIR
)/brctl
/brctl
: $(BRIDGE_BUILD_DIR
)/.configured
44 $(MAKE
) -C
$(BRIDGE_BUILD_DIR
)
46 $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
): $(BRIDGE_BUILD_DIR
)/brctl
/brctl
47 cp
-af
$(BRIDGE_BUILD_DIR
)/brctl
/brctl
$(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
48 $(STRIP
) $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
49 #cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
50 #$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
52 bridge
: linux
$(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
54 bridge-source
: $(DL_DIR
)/$(BRIDGE_SOURCE
)
57 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
58 -$(MAKE
) -C
$(BRIDGE_BUILD_DIR
) clean
61 rm -rf
$(BRIDGE_BUILD_DIR
)
This page took 0.051994 seconds and 5 git commands to generate.