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. |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | do_configure_prepend() { |
| 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 | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | ALLOW_EMPTY_${PN} = "1" |
| 31 | |
| 32 | PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" |
| 33 | PACKAGES += "psmisc-extras" |
| 34 | |
| 35 | FILES_${PN} = "" |
| 36 | RDEPENDS_${PN} = "fuser killall pstree" |
| 37 | |
| 38 | FILES_fuser = "${bindir}/fuser.${BPN}" |
| 39 | FILES_fuser-doc = "${mandir}/man1/fuser*" |
| 40 | |
| 41 | FILES_killall = "${bindir}/killall.${BPN}" |
| 42 | FILES_killall-doc = "${mandir}/man1/killall*" |
| 43 | |
| 44 | FILES_pstree = "${bindir}/pstree" |
| 45 | FILES_pstree-doc = "${mandir}/man1/pstree*" |
| 46 | |
| 47 | FILES_psmisc-extras = "${bindir}" |
| 48 | FILES_psmisc-extras-doc = "${mandir}" |
| 49 | |
| 50 | inherit update-alternatives |
| 51 | |
| 52 | ALTERNATIVE_PRIORITY = "90" |
| 53 | |
| 54 | ALTERNATIVE_killall = "killall" |
| 55 | |
| 56 | ALTERNATIVE_fuser = "fuser" |