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.

49 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=psmisc
  3. PKG_VERSION:=23.4
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=@SF/psmisc
  7. PKG_HASH:=7f0cceeace2050c525f3ebb35f3ba01d618b8d690620580bdb8cd8269a0c1679
  8. PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
  9. PKG_LICENSE:=GPL-2.0-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/psmisc
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=proc utilities
  18. URL:=https://gitlab.com/psmisc/psmisc/
  19. DEPENDS:=+libncurses
  20. ALTERNATIVES:=300:/usr/bin/killall:/usr/libexec/killall
  21. endef
  22. define Package/psmisc/description
  23. psmisc is a set of additional small useful utilities that use
  24. the proc filesystem like fuser, killall, prtstat, pstree.
  25. endef
  26. CONFIGURE_ARGS += \
  27. --disable-harden-flags
  28. MAKE_FLAGS += \
  29. CFLAGS="$(TARGET_CFLAGS)" \
  30. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  31. LDFLAGS="$(TARGET_LDFLAGS)"
  32. define Package/psmisc/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{fuser,prtstat,pstree} $(1)/usr/bin
  35. $(INSTALL_DIR) $(1)/usr/libexec
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/killall $(1)/usr/libexec
  37. endef
  38. $(eval $(call BuildPackage,psmisc))