aboutsummaryrefslogtreecommitdiff
path: root/utils/procs/Makefile
blob: 41eeb9c18e47c7cbfb35a1b47ebccbfc68e34feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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))