7deb71960552c788927f953d136d15ea59e6477b
1 #############################################################
3 # bridgeutils - User Space Program For Controling Bridging
5 #############################################################
7 BRIDGE_SOURCE_URL
=http
://bridge.sourceforge.net
/bridge-utils
8 BRIDGE_SOURCE
=bridge-utils-0.9
.6.
tar.gz
9 BRIDGE_BUILD_DIR
=$(BUILD_DIR
)/bridge-utils-0.9
.6
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
) -xvf
-
17 mv
-f
$(BUILD_DIR
)/bridge-utils
$(BRIDGE_BUILD_DIR
)
18 patch
-p1
-d
$(BRIDGE_BUILD_DIR
) < $(SOURCE_DIR
)/bridge.patch
19 touch
$(BRIDGE_BUILD_DIR
)/.unpacked
21 $(BRIDGE_BUILD_DIR
)/.configured
: $(BRIDGE_BUILD_DIR
)/.unpacked
22 (cd
$(BRIDGE_BUILD_DIR
); rm -rf config.cache
; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
33 --libexecdir
=/usr
/lib \
35 --datadir=/usr
/share \
36 --localstatedir
=/var \
40 --with-linux
=$(LINUX_DIR
) \
42 touch
$(BRIDGE_BUILD_DIR
)/.configured
44 $(BRIDGE_BUILD_DIR
)/brctl
/brctl
: $(BRIDGE_BUILD_DIR
)/.configured
45 $(MAKE
) -C
$(BRIDGE_BUILD_DIR
)
47 $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
): $(BRIDGE_BUILD_DIR
)/brctl
/brctl
48 cp
-af
$(BRIDGE_BUILD_DIR
)/brctl
/brctl
$(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
49 $(STRIP
) $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
50 #cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
51 #$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
53 bridge
: $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
55 bridge-source
: $(DL_DIR
)/$(BRIDGE_SOURCE
)
58 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
59 -$(MAKE
) -C
$(BRIDGE_BUILD_DIR
) clean
62 rm -rf
$(BRIDGE_BUILD_DIR
)
This page took 0.054412 seconds and 3 git commands to generate.