Makefile 1.2 KB

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