0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 03:29:52 +00:00
packages/utils/psmisc/Makefile
Josef Schlehofer 5aee095cda psmisc: update to version 23.7
Release notes:
https://gitlab.com/psmisc/psmisc/-/compare/v23.4...v23.7?from_project_id=334185&straight=false

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-03-25 13:57:48 +01:00

50 lines
1.2 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=psmisc
PKG_VERSION:=23.7
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/psmisc
PKG_HASH:=58c55d9c1402474065adae669511c191de374b0871eec781239ab400b907c327
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/psmisc
SECTION:=utils
CATEGORY:=Utilities
TITLE:=proc utilities
URL:=https://gitlab.com/psmisc/psmisc/
DEPENDS:=+libncurses
ALTERNATIVES:=300:/usr/bin/killall:/usr/libexec/killall
endef
define Package/psmisc/description
psmisc is a set of additional small useful utilities that use
the proc filesystem like fuser, killall, prtstat, pstree.
endef
CONFIGURE_ARGS += \
--disable-harden-flags
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)"
define Package/psmisc/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{fuser,prtstat,pstree} $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/killall $(1)/usr/libexec
endef
$(eval $(call BuildPackage,psmisc))