1*4882a593SmuzhiyunSUMMARY = "Utilities for managing processes on your system" 2*4882a593SmuzhiyunHOMEPAGE = "http://psmisc.sf.net/" 3*4882a593SmuzhiyunDESCRIPTION = "The psmisc package contains utilities for managing processes on your \ 4*4882a593Smuzhiyunsystem: pstree, killall and fuser. The pstree command displays a tree \ 5*4882a593Smuzhiyunstructure of all of the running processes on your system. The killall \ 6*4882a593Smuzhiyuncommand sends a specified signal (SIGTERM if nothing is specified) to \ 7*4882a593Smuzhiyunprocesses identified by name. The fuser command identifies the PIDs \ 8*4882a593Smuzhiyunof processes that are using specified files or filesystems." 9*4882a593SmuzhiyunSECTION = "base" 10*4882a593SmuzhiyunDEPENDS = "ncurses virtual/libintl" 11*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunS = "${WORKDIR}/psmisc-${PV}" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyuninherit autotools gettext 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun# Upstream has a custom autogen.sh which invokes po/update-potfiles as they 20*4882a593Smuzhiyun# don't ship a po/POTFILES.in (which is silly). Without that file gettext 21*4882a593Smuzhiyun# doesn't believe po/ is a gettext directory and won't generate po/Makefile. 22*4882a593Smuzhiyundo_configure:prepend() { 23*4882a593Smuzhiyun ( cd ${S} && po/update-potfiles ) 24*4882a593Smuzhiyun} 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" 28*4882a593SmuzhiyunPACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunALLOW_EMPTY:${PN} = "1" 31*4882a593Smuzhiyun 32*4882a593SmuzhiyunPACKAGES =+ "fuser fuser-doc killall killall-doc pstree pstree-doc" 33*4882a593SmuzhiyunPACKAGES += "psmisc-extras" 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunFILES:${PN} = "" 36*4882a593SmuzhiyunRDEPENDS:${PN} = "fuser killall pstree" 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunFILES:fuser = "${bindir}/fuser.${BPN}" 39*4882a593SmuzhiyunFILES:fuser-doc = "${mandir}/man1/fuser*" 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunFILES:killall = "${bindir}/killall.${BPN}" 42*4882a593SmuzhiyunFILES:killall-doc = "${mandir}/man1/killall*" 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunFILES:pstree = "${bindir}/pstree" 45*4882a593SmuzhiyunFILES:pstree-doc = "${mandir}/man1/pstree*" 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunFILES:psmisc-extras = "${bindir}" 48*4882a593SmuzhiyunFILES:psmisc-extras-doc = "${mandir}" 49*4882a593Smuzhiyun 50*4882a593Smuzhiyuninherit update-alternatives 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunALTERNATIVE_PRIORITY = "90" 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunALTERNATIVE:killall = "killall" 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunALTERNATIVE:fuser = "fuser" 57