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