1SUMMARY = "Utilities for managing processes on your system"
2HOMEPAGE = "http://psmisc.sf.net/"
3DESCRIPTION = "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"
10DEPENDS = "ncurses virtual/libintl"
11LICENSE = "GPL-2.0-only"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz"
14
15S = "${WORKDIR}/psmisc-${PV}"
16
17inherit autotools gettext
18
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.
22do_configure:prepend() {
23    ( cd ${S} && po/update-potfiles )
24}
25
26
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
28PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
29PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
30
31ALLOW_EMPTY:${PN} = "1"
32
33PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc"
34PACKAGES += "psmisc-extras"
35
36FILES:${PN} = ""
37RDEPENDS:${PN} = "fuser killall pstree"
38
39FILES:fuser = "${bindir}/fuser.${BPN}"
40FILES:fuser-doc = "${mandir}/man1/fuser*"
41
42FILES:killall = "${bindir}/killall.${BPN}"
43FILES:killall-doc = "${mandir}/man1/killall*"
44
45FILES:pstree = "${bindir}/pstree"
46FILES:pstree-doc = "${mandir}/man1/pstree*"
47
48FILES:psmisc-extras = "${bindir}"
49FILES:psmisc-extras-doc = "${mandir}"
50
51inherit update-alternatives
52
53ALTERNATIVE_PRIORITY = "90"
54
55ALTERNATIVE:killall = "killall"
56
57ALTERNATIVE:fuser = "fuser"
58
59ALTERNATIVE:pstree = "pstree"
60