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.

55 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2016 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:=htop
  9. PKG_VERSION:=2.2.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://hisham.hm/htop/releases/$(PKG_VERSION)/
  13. PKG_HASH:=d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:htop:htop
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/htop
  21. SECTION:=admin
  22. CATEGORY:=Administration
  23. TITLE:=Interactive processes viewer
  24. DEPENDS:=+libncurses
  25. URL:=https://hisham.hm/htop/
  26. MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
  27. endef
  28. define Package/htop/description
  29. Htop is an ncursed-based process viewer similar to top, but
  30. it allows to scroll the list vertically and horizontally to
  31. see all processes and their full command lines.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --disable-unicode \
  35. --disable-hwloc
  36. CONFIGURE_VARS += \
  37. ac_cv_file__proc_stat=yes \
  38. ac_cv_file__proc_meminfo=yes
  39. define Package/htop/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,htop))