blob: ad6263ed9484c980721f6480481471fbb399d4c2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utilities for managing processes on your system"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002HOMEPAGE = "http://psmisc.sf.net/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003DESCRIPTION = "The psmisc package contains utilities for managing processes on your \
4system: pstree, killall and fuser. The pstree command displays a tree \
5structure of all of the running processes on your system. The killall \
6command sends a specified signal (SIGTERM if nothing is specified) to \
7processes identified by name. The fuser command identifies the PIDs \
8of processes that are using specified files or filesystems."
9SECTION = "base"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010DEPENDS = "ncurses virtual/libintl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011LICENSE = "GPLv2"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz"
14
15S = "${WORKDIR}/psmisc-${PV}"
16
17inherit autotools gettext
18
Brad Bishop316dfdd2018-06-25 12:45:53 -040019# 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 Williams213cb262021-08-07 19:21:33 -050022do_configure:prepend() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040023 ( cd ${S} && po/update-potfiles )
24}
25
26
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060028PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030ALLOW_EMPTY:${PN} = "1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
32PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc"
33PACKAGES += "psmisc-extras"
34
Patrick Williams213cb262021-08-07 19:21:33 -050035FILES:${PN} = ""
36RDEPENDS:${PN} = "fuser killall pstree"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:fuser = "${bindir}/fuser.${BPN}"
39FILES:fuser-doc = "${mandir}/man1/fuser*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:killall = "${bindir}/killall.${BPN}"
42FILES:killall-doc = "${mandir}/man1/killall*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043
Patrick Williams213cb262021-08-07 19:21:33 -050044FILES:pstree = "${bindir}/pstree"
45FILES:pstree-doc = "${mandir}/man1/pstree*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046
Patrick Williams213cb262021-08-07 19:21:33 -050047FILES:psmisc-extras = "${bindir}"
48FILES:psmisc-extras-doc = "${mandir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050049
50inherit update-alternatives
51
52ALTERNATIVE_PRIORITY = "90"
53
Patrick Williams213cb262021-08-07 19:21:33 -050054ALTERNATIVE:killall = "killall"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050055
Patrick Williams213cb262021-08-07 19:21:33 -050056ALTERNATIVE:fuser = "fuser"