Root/package/bridge-utils/Makefile

1#
2# Copyright (C) 2006-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=bridge-utils
12PKG_RELEASE:=1
13PKG_SOURCE_URL:=@SF/bridge
14
15ifeq ($(CONFIG_LINUX_2_4),y)
16  PKG_VERSION:=1.0.6
17  PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd
18endif
19
20ifeq ($(CONFIG_LINUX_2_6),y)
21  PKG_VERSION:=1.4
22  PKG_MD5SUM:=0182fcac3a2b307113bbec34e5f1c673
23endif
24
25PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
26
27include $(INCLUDE_DIR)/package.mk
28
29define Package/bridge
30  SECTION:=net
31  CATEGORY:=Base system
32  TITLE:=Ethernet bridging configuration utility
33  URL:=http://bridge.sourceforge.net/
34endef
35
36define Package/bridge/description
37 Manage ethernet bridging: a way to connect networks together to
38 form a larger network.
39endef
40
41CONFIGURE_ARGS += \
42    --with-linux-headers="$(LINUX_DIR)" \
43
44define Build/Prepare
45$(call Build/Prepare/Default)
46    ( cd $(PKG_BUILD_DIR) ; \
47        [ -f ./configure ] || { \
48            ln -sf configure.in configure.ac ; \
49            autoconf ; \
50        } \
51    )
52endef
53
54define Package/bridge/install
55    $(INSTALL_DIR) $(1)/usr/sbin
56    $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
57endef
58
59$(eval $(call BuildPackage,bridge))
60

Archive Download this file



interactive