Makefile 1.1 KB

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