openwrt-packages/utils/procs/Makefile

56 lines
1.5 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2023 Facundo Acevedo
include $(TOPDIR)/rules.mk
PKG_NAME:=procs
PKG_VERSION:=0.14.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/dalance/procs/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=bb4f9d696081807ca105593092f8acd04ca339ae43fff29e0e820c6fc5e3f9ea
PKG_MAINTAINER:=Facundo Acevedo <facevedo@disroot.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENCE
PKG_BUILD_DEPENDS:=rust/host
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include ../../lang/rust/rust-package.mk
define Package/procs
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Procs is feature-rich alternative to the 'ps'
DEPENDS:=$(RUST_ARCH_DEPENDS)
URL:=https://github.com/dalance/procs/
endef
define Package/procs/description
Procs is a 'ps' command replacement written in Rust, offering
enhanced usability and information display.
Features include color-coded output, theme auto-detection, advanced
search, and extended process details
(TCP/UDP ports, Docker names, I/O throughput).
It also supports pager functionality, a 'top'-like watch mode, and
a process tree view.
endef
define Package/procs/conffiles
/etc/procs/procs.toml
endef
define Package/procs/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/procs $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/procs
$(INSTALL_CONF) ./files/etc/procs/procs.toml $(1)/etc/procs/
endef
$(eval $(call RustBinPackage,procs))
$(eval $(call BuildPackage,procs))