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 = "GPLv2" 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," 29 30ALLOW_EMPTY_${PN} = "1" 31 32PACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" 33PACKAGES += "psmisc-extras" 34 35FILES_${PN} = "" 36RDEPENDS_${PN} = "fuser killall pstree" 37 38FILES_fuser = "${bindir}/fuser.${BPN}" 39FILES_fuser-doc = "${mandir}/man1/fuser*" 40 41FILES_killall = "${bindir}/killall.${BPN}" 42FILES_killall-doc = "${mandir}/man1/killall*" 43 44FILES_pstree = "${bindir}/pstree" 45FILES_pstree-doc = "${mandir}/man1/pstree*" 46 47FILES_psmisc-extras = "${bindir}" 48FILES_psmisc-extras-doc = "${mandir}" 49 50inherit update-alternatives 51 52ALTERNATIVE_PRIORITY = "90" 53 54ALTERNATIVE_killall = "killall" 55 56ALTERNATIVE_fuser = "fuser" 57