summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/psmisc/psmisc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/psmisc/psmisc.inc')
-rw-r--r--meta/recipes-extended/psmisc/psmisc.inc26
1 files changed, 6 insertions, 20 deletions
diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
index 4e9aad862d..76af99e8a8 100644
--- a/meta/recipes-extended/psmisc/psmisc.inc
+++ b/meta/recipes-extended/psmisc/psmisc.inc
@@ -23,10 +23,10 @@ PACKAGES += "psmisc-extras"
23FILES_${PN} = "" 23FILES_${PN} = ""
24RDEPENDS_${PN} = "fuser killall pstree" 24RDEPENDS_${PN} = "fuser killall pstree"
25 25
26FILES_fuser = "${bindir}/fuser.${PN}" 26FILES_fuser = "${bindir}/fuser.${BPN}"
27FILES_fuser-doc = "${mandir}/man1/fuser*" 27FILES_fuser-doc = "${mandir}/man1/fuser*"
28 28
29FILES_killall = "${bindir}/killall.${PN}" 29FILES_killall = "${bindir}/killall.${BPN}"
30FILES_killall-doc = "${mandir}/man1/killall*" 30FILES_killall-doc = "${mandir}/man1/killall*"
31 31
32FILES_pstree = "${bindir}/pstree" 32FILES_pstree = "${bindir}/pstree"
@@ -35,24 +35,10 @@ FILES_pstree-doc = "${mandir}/man1/pstree*"
35FILES_psmisc-extras = "${bindir}" 35FILES_psmisc-extras = "${bindir}"
36FILES_psmisc-extras-doc = "${mandir}" 36FILES_psmisc-extras-doc = "${mandir}"
37 37
38do_install_append() { 38inherit update-alternatives
39 mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN}
40 mv ${D}${bindir}/fuser ${D}${bindir}/fuser.${PN}
41}
42 39
43pkg_postinst_killall() { 40ALTERNATIVE_PRIORITY = "90"
44 update-alternatives --install ${bindir}/killall killall killall.${PN} 90
45}
46 41
47pkg_postrm_killall() { 42ALTERNATIVE_killall = "killall"
48 update-alternatives --remove ${bindir}/killall killall.${PN}
49}
50
51pkg_postinst_fuser() {
52 update-alternatives --install ${bindir}/fuser fuser fuser.${PN} 90
53}
54
55pkg_postrm_fuser() {
56 update-alternatives --remove ${bindir}/fuser fuser.${PN}
57}
58 43
44ALTERNATIVE_fuser = "fuser"