Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=bridge-utils
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=@SF/bridge
  12. ifeq ($(CONFIG_LINUX_2_4),y)
  13. PKG_VERSION:=1.0.6
  14. PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd
  15. endif
  16. ifeq ($(CONFIG_LINUX_2_6),y)
  17. PKG_VERSION:=1.4
  18. PKG_MD5SUM:=0182fcac3a2b307113bbec34e5f1c673
  19. endif
  20. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/bridge
  23. SECTION:=net
  24. CATEGORY:=Base system
  25. TITLE:=Ethernet bridging configuration utility
  26. URL:=http://bridge.sourceforge.net/
  27. endef
  28. define Package/bridge/description
  29. Manage ethernet bridging: a way to connect networks together to
  30. form a larger network.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --with-linux-headers="$(LINUX_DIR)" \
  34. define Build/Prepare
  35. $(call Build/Prepare/Default)
  36. ( cd $(PKG_BUILD_DIR) ; \
  37. [ -f ./configure ] || { \
  38. ln -sf configure.in configure.ac ; \
  39. autoconf ; \
  40. } \
  41. )
  42. endef
  43. define Package/bridge/install
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
  46. endef
  47. $(eval $(call BuildPackage,bridge))