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" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | LICENSE = "GPLv2" |
| 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," |
| 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | ALLOW_EMPTY:${PN} = "1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
| 32 | PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" |
| 33 | PACKAGES += "psmisc-extras" |
| 34 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | FILES:${PN} = "" |
| 36 | RDEPENDS:${PN} = "fuser killall pstree" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 38 | FILES:fuser = "${bindir}/fuser.${BPN}" |
| 39 | FILES:fuser-doc = "${mandir}/man1/fuser*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:killall = "${bindir}/killall.${BPN}" |
| 42 | FILES:killall-doc = "${mandir}/man1/killall*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | FILES:pstree = "${bindir}/pstree" |
| 45 | FILES:pstree-doc = "${mandir}/man1/pstree*" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | FILES:psmisc-extras = "${bindir}" |
| 48 | FILES:psmisc-extras-doc = "${mandir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | |
| 50 | inherit update-alternatives |
| 51 | |
| 52 | ALTERNATIVE_PRIORITY = "90" |
| 53 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 54 | ALTERNATIVE:killall = "killall" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 55 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 56 | ALTERNATIVE:fuser = "fuser" |