Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities for managing processes on your system" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://psmisc.sf.net/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | DESCRIPTION = "The psmisc package contains utilities for managing processes on your \ |
| 4 | system: pstree, killall and fuser. The pstree command displays a tree \ |
| 5 | structure of all of the running processes on your system. The killall \ |
| 6 | command sends a specified signal (SIGTERM if nothing is specified) to \ |
| 7 | processes identified by name. The fuser command identifies the PIDs \ |
| 8 | of processes that are using specified files or filesystems." |
| 9 | SECTION = "base" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 10 | DEPENDS = "ncurses virtual/libintl" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 11 | LICENSE = "GPL-2.0-only" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz" |
| 14 | |
| 15 | S = "${WORKDIR}/psmisc-${PV}" |
| 16 | |
| 17 | inherit autotools gettext |
| 18 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | # Upstream has a custom autogen.sh which invokes po/update-potfiles as they |
| 20 | # don't ship a po/POTFILES.in (which is silly). Without that file gettext |
| 21 | # doesn't believe po/ is a gettext directory and won't generate po/Makefile. |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_configure:prepend() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 23 | ( cd ${S} && po/update-potfiles ) |
| 24 | } |
| 25 | |
| 26 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 28 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 29 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | ALLOW_EMPTY:${PN} = "1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | |
| 33 | PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" |
| 34 | PACKAGES += "psmisc-extras" |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | FILES:${PN} = "" |
| 37 | RDEPENDS:${PN} = "fuser killall pstree" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | FILES:fuser = "${bindir}/fuser.${BPN}" |
| 40 | FILES:fuser-doc = "${mandir}/man1/fuser*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:killall = "${bindir}/killall.${BPN}" |
| 43 | FILES:killall-doc = "${mandir}/man1/killall*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:pstree = "${bindir}/pstree" |
| 46 | FILES:pstree-doc = "${mandir}/man1/pstree*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | FILES:psmisc-extras = "${bindir}" |
| 49 | FILES:psmisc-extras-doc = "${mandir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | |
| 51 | inherit update-alternatives |
| 52 | |
| 53 | ALTERNATIVE_PRIORITY = "90" |
| 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | ALTERNATIVE:killall = "killall" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | ALTERNATIVE:fuser = "fuser" |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 58 | |
| 59 | ALTERNATIVE:pstree = "pstree" |