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.3
  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:=3b083b55a7cda7782e370bf03412dbf51ca4a94c1d56325ff70a1545d7a30adc
  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. GO_PKG:=github.com/bcicen/ctop
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../../lang/golang/golang-package.mk
  16. define Package/ctop
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=Top-like interface for container metrics
  20. URL:=https://ctop.sh/
  21. DEPENDS:=$(GO_ARCH_DEPENDS) @!mips @!mipsel
  22. endef
  23. define Package/ctop/description
  24. Top-like interface for container metrics
  25. endef
  26. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  27. MAKE_VARS += \
  28. GOPATH=$(GO_PKG_BUILD_DIR) \
  29. GOCACHE=$(GO_PKG_CACHE_DIR) \
  30. GOTMPDIR=$(GO_PKG_TMP_DIR) \
  31. GOROOT_FINAL=$(GO_TARGET_ROOT) \
  32. CC=$(TARGET_CC) \
  33. CXX=$(TARGET_CXX) \
  34. $(call GoPackage/Environment)
  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))