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.

51 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_BUILD_CACHE_DIR) \
  30. GOROOT_FINAL=$(GO_TARGET_ROOT) \
  31. CC=$(TARGET_CC) \
  32. CXX=$(TARGET_CXX) \
  33. $(GO_PKG_VARS)
  34. MAKE_FLAGS += \
  35. COMMIT=$(PKG_SOURCE_VERSION)
  36. define Package/ctop/install
  37. $(INSTALL_DIR) $(1)/usr/sbin/
  38. $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/ctop $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,ctop))