psmisc.inc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. LICENSE = "GPL"
  2. SUMMARY = "Utilities for managing processes on your system"
  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"
  10. PRIORITY = "required"
  11. DEPENDS = "ncurses virtual/libintl"
  12. SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz \
  13. file://libintl-link.patch;patch=1"
  14. S = "${WORKDIR}/psmisc-${PV}"
  15. inherit autotools gettext
  16. ALLOW_EMPTY = "1"
  17. PACKAGES = "${PN} \
  18. fuser-dbg fuser fuser-doc \
  19. killall-dbg killall killall-doc \
  20. pstree-dbg pstree pstree-doc"
  21. FILES_${PN} = ""
  22. RDEPENDS_${PN} = "fuser killall pstree"
  23. FILES_fuser = "${bindir}/fuser.${PN}"
  24. FILES_fuser-doc = "${mandir}/man1/fuser*"
  25. FILES_fuser-dbg = "${bindir}/.debug/fuser"
  26. FILES_killall = "${bindir}/killall.${PN}"
  27. FILES_killall-doc = "${mandir}/man1/killall*"
  28. FILES_killall-dbg = "${bindir}/.debug/killall*"
  29. FILES_pstree = "${bindir}/pstree"
  30. FILES_pstree-doc = "${mandir}/man1/pstree*"
  31. FILES_pstree-dbg = "${bindir}/.debug/pstree"
  32. do_install_append() {
  33. mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN}
  34. mv ${D}${bindir}/fuser ${D}${bindir}/fuser.${PN}
  35. }
  36. pkg_postinst_killall() {
  37. update-alternatives --install ${bindir}/killall killall killall.${PN} 90
  38. }
  39. pkg_postrm_killall() {
  40. update-alternatives --remove ${bindir}/killall killall.${PN}
  41. }
  42. pkg_postinst_fuser() {
  43. update-alternatives --install ${bindir}/fuser fuser fuser.${PN} 90
  44. }
  45. pkg_postrm_fuser() {
  46. update-alternatives --remove ${bindir}/fuser fuser.${PN}
  47. }