diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-05-21 16:18:21 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 12:04:44 +0100 |
commit | 5cbc48638e2d52278f2ac466b3f59a2ec6aa60d5 (patch) | |
tree | d6f15ef6fdf1b48522743484626666aae0575583 /meta/recipes-extended | |
parent | ddcf94ecd9a64f889c8463a41c7f65598a133b7c (diff) | |
download | poky-5cbc48638e2d52278f2ac466b3f59a2ec6aa60d5.tar.gz |
psmisc: use new update-alternatives
(From OE-Core rev: 867864451baa875f48d87f4b8dbce80a90038243)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/psmisc/psmisc.inc | 26 | ||||
-rw-r--r-- | meta/recipes-extended/psmisc/psmisc_22.16.bb | 2 |
2 files changed, 7 insertions, 21 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" | |||
23 | FILES_${PN} = "" | 23 | FILES_${PN} = "" |
24 | RDEPENDS_${PN} = "fuser killall pstree" | 24 | RDEPENDS_${PN} = "fuser killall pstree" |
25 | 25 | ||
26 | FILES_fuser = "${bindir}/fuser.${PN}" | 26 | FILES_fuser = "${bindir}/fuser.${BPN}" |
27 | FILES_fuser-doc = "${mandir}/man1/fuser*" | 27 | FILES_fuser-doc = "${mandir}/man1/fuser*" |
28 | 28 | ||
29 | FILES_killall = "${bindir}/killall.${PN}" | 29 | FILES_killall = "${bindir}/killall.${BPN}" |
30 | FILES_killall-doc = "${mandir}/man1/killall*" | 30 | FILES_killall-doc = "${mandir}/man1/killall*" |
31 | 31 | ||
32 | FILES_pstree = "${bindir}/pstree" | 32 | FILES_pstree = "${bindir}/pstree" |
@@ -35,24 +35,10 @@ FILES_pstree-doc = "${mandir}/man1/pstree*" | |||
35 | FILES_psmisc-extras = "${bindir}" | 35 | FILES_psmisc-extras = "${bindir}" |
36 | FILES_psmisc-extras-doc = "${mandir}" | 36 | FILES_psmisc-extras-doc = "${mandir}" |
37 | 37 | ||
38 | do_install_append() { | 38 | inherit update-alternatives |
39 | mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN} | ||
40 | mv ${D}${bindir}/fuser ${D}${bindir}/fuser.${PN} | ||
41 | } | ||
42 | 39 | ||
43 | pkg_postinst_killall() { | 40 | ALTERNATIVE_PRIORITY = "90" |
44 | update-alternatives --install ${bindir}/killall killall killall.${PN} 90 | ||
45 | } | ||
46 | 41 | ||
47 | pkg_postrm_killall() { | 42 | ALTERNATIVE_killall = "killall" |
48 | update-alternatives --remove ${bindir}/killall killall.${PN} | ||
49 | } | ||
50 | |||
51 | pkg_postinst_fuser() { | ||
52 | update-alternatives --install ${bindir}/fuser fuser fuser.${PN} 90 | ||
53 | } | ||
54 | |||
55 | pkg_postrm_fuser() { | ||
56 | update-alternatives --remove ${bindir}/fuser fuser.${PN} | ||
57 | } | ||
58 | 43 | ||
44 | ALTERNATIVE_fuser = "fuser" | ||
diff --git a/meta/recipes-extended/psmisc/psmisc_22.16.bb b/meta/recipes-extended/psmisc/psmisc_22.16.bb index ada46d9742..8ff3eee2a0 100644 --- a/meta/recipes-extended/psmisc/psmisc_22.16.bb +++ b/meta/recipes-extended/psmisc/psmisc_22.16.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | require psmisc.inc | 1 | require psmisc.inc |
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
4 | PR = "r1" | 4 | PR = "r2" |
5 | 5 | ||
6 | SRC_URI[md5sum] = "d52caf26159c905574c2ce4bd792b9ee" | 6 | SRC_URI[md5sum] = "d52caf26159c905574c2ce4bd792b9ee" |
7 | SRC_URI[sha256sum] = "ae426d7238e5353fdf51b1d313897c2bbed0023e66e5b4af2be9cd03d87a9d01" | 7 | SRC_URI[sha256sum] = "ae426d7238e5353fdf51b1d313897c2bbed0023e66e5b4af2be9cd03d87a9d01" |