Makefile 804 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (C) 2006 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. PKG_NAME:=robocfg
  9. PKG_VERSION:=0.01
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/robocfg
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/robocfg
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=BCM5325E/536x switch configuration utility
  17. endef
  18. define Package/robocfg/description
  19. This package contains an utility for configuring the Broadcom BCM5325E/536x
  20. based switches.
  21. endef
  22. define Build/Prepare
  23. mkdir -p $(PKG_BUILD_DIR)
  24. $(CP) ./src/* $(PKG_BUILD_DIR)/
  25. endef
  26. define Package/robocfg/install
  27. $(INSTALL_DIR) $(1)/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/robocfg $(1)/sbin/
  29. endef
  30. $(eval $(call BuildPackage,robocfg))