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.

97 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=procps-ng
  9. PKG_VERSION:=3.3.11
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=COPYING COPYING.LIB
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://gitlab.com/procps-ng/procps.git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=de985eced583f18df273146b110491b0f7404aab
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. CONFIGURE_ARGS += --enable-skill
  22. PROCPS_APPLETS := \
  23. free kill pgrep pkill pmap ps pwdx skill slabtop \
  24. snice tload top uptime vmstat w watch
  25. define Package/procps-ng/Default
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. DEPENDS:=+libncurses
  29. TITLE:=procps-ng utilities
  30. URL:=https://gitlab.com/procps-ng/procps
  31. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  32. endef
  33. define Build/Configure
  34. (cd $(PKG_BUILD_DIR); echo "$(PKG_VERSION)" > "$(PKG_BUILD_DIR)/.tarball-version"; ./autogen.sh );
  35. $(call Build/Configure/Default)
  36. endef
  37. define Package/procps-ng
  38. $(call Package/procps-ng/Default)
  39. MENU:=1
  40. endef
  41. define Package/procps-ng/description
  42. procps is a set of command line and full-screen utilities that provide information out of the pseudo-filesystem
  43. most commonly located at /proc. This filesystem provides a simple interface to the kernel data structures.
  44. The programs of procps generally concentrate on the structures that describe the processess running on the system.
  45. NOTE: some utilities provided by procps-ng packages (ps, uptime, kill, ...) are installed as busybox applets, by default.
  46. Conflicting applets should be removed from the build to avoid file conflicts.
  47. endef
  48. define GenPlugin
  49. define Package/$(1)
  50. $(call Package/procps-ng/Default)
  51. DEPENDS:=procps-ng
  52. TITLE:=Applet $(2) from the procps-ng package
  53. DEFAULT:=y
  54. endef
  55. define Package/$(1)/description
  56. Installs the applet $(2).
  57. endef
  58. endef
  59. $(foreach a,$(PROCPS_APPLETS),$(eval $(call GenPlugin,procps-ng-$(a),$(a))))
  60. MAKE_FLAGS += \
  61. CFLAGS="$(TARGET_CFLAGS)" \
  62. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  63. LDFLAGS="$(TARGET_LDFLAGS)" \
  64. define Package/procps-ng/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libprocps.so* $(1)/usr/lib/
  68. endef
  69. define BuildPlugin
  70. define Package/$(1)/install
  71. $(INSTALL_DIR) $$(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/
  73. endef
  74. $$(eval $$(call BuildPackage,$(1)))
  75. endef
  76. $(foreach a,$(PROCPS_APPLETS),$(eval $(call BuildPlugin,procps-ng-$(a),$(a))))
  77. $(eval $(call BuildPackage,procps-ng))