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" |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 10 | DEPENDS = "ncurses virtual/libintl gettext-native" |
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. |
| 22 | EXTRA_AUTORECONF_remove = "--exclude=autopoint" |
| 23 | do_configure_prepend() { |
| 24 | ( cd ${S} && po/update-potfiles ) |
| 25 | } |
| 26 | |
| 27 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 28 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 29 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
| 30 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | ALLOW_EMPTY_${PN} = "1" |
| 32 | |
| 33 | PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" |
| 34 | PACKAGES += "psmisc-extras" |
| 35 | |
| 36 | FILES_${PN} = "" |
| 37 | RDEPENDS_${PN} = "fuser killall pstree" |
| 38 | |
| 39 | FILES_fuser = "${bindir}/fuser.${BPN}" |
| 40 | FILES_fuser-doc = "${mandir}/man1/fuser*" |
| 41 | |
| 42 | FILES_killall = "${bindir}/killall.${BPN}" |
| 43 | FILES_killall-doc = "${mandir}/man1/killall*" |
| 44 | |
| 45 | FILES_pstree = "${bindir}/pstree" |
| 46 | FILES_pstree-doc = "${mandir}/man1/pstree*" |
| 47 | |
| 48 | FILES_psmisc-extras = "${bindir}" |
| 49 | FILES_psmisc-extras-doc = "${mandir}" |
| 50 | |
| 51 | inherit update-alternatives |
| 52 | |
| 53 | ALTERNATIVE_PRIORITY = "90" |
| 54 | |
| 55 | ALTERNATIVE_killall = "killall" |
| 56 | |
| 57 | ALTERNATIVE_fuser = "fuser" |