You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ctop
  3. PKG_VERSION:=0.7.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=v$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/bcicen/ctop/archive
  7. PKG_HASH:=8ef76a7d4d725f750a5d8a6ee330e81b3b845a91fbd50ae3e746cead74736391
  8. PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/bcicen/ctop
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../lang/golang/golang-package.mk
  17. define Package/ctop
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Top-like interface for container metrics
  21. URL:=https://ctop.sh/
  22. DEPENDS:=$(GO_ARCH_DEPENDS)
  23. endef
  24. define Package/ctop/description
  25. Top-like interface for container metrics
  26. endef
  27. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  28. MAKE_VARS += \
  29. GOPATH=$(GO_PKG_BUILD_DIR) \
  30. GOCACHE=$(GO_BUILD_CACHE_DIR) \
  31. GOROOT_FINAL=$(GO_TARGET_ROOT) \
  32. CC=$(TARGET_CC) \
  33. CXX=$(TARGET_CXX) \
  34. $(GO_PKG_VARS)
  35. MAKE_FLAGS += \
  36. COMMIT=$(PKG_SOURCE_VERSION)
  37. define Package/ctop/install
  38. $(INSTALL_DIR) $(1)/usr/sbin/
  39. $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/ctop $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,ctop))