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.

53 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=psmisc
  3. PKG_VERSION:=23.3
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=@SF/psmisc
  7. PKG_HASH:=41750e1a5abf7ed2647b094f58127c73dbce6876f77ba4e0a7e0995ae5c7279a
  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. endef
  21. define Package/psmisc/description
  22. psmisc is a set of additional small useful utilities that use
  23. the proc filesystem like fuser, killall, prtstat, pstree.
  24. endef
  25. CONFIGURE_ARGS += \
  26. --disable-harden-flags
  27. MAKE_FLAGS += \
  28. CFLAGS="$(TARGET_CFLAGS)" \
  29. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  30. LDFLAGS="$(TARGET_LDFLAGS)"
  31. define Package/psmisc/preinst
  32. #!/bin/sh
  33. if [ -e $${IPKG_INSTROOT}/usr/bin/killall ]; then
  34. rm $${IPKG_INSTROOT}/usr/bin/killall;
  35. fi
  36. endef
  37. define Package/psmisc/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{fuser,killall,prtstat,pstree} $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,psmisc))