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.inc55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
new file mode 100644
index 0000000000..d489891d64
--- /dev/null
+++ b/meta/recipes-extended/psmisc/psmisc.inc
@@ -0,0 +1,55 @@
1LICENSE = "GPL"
2DESCRIPTION = "procfs tools"
3SECTION = "base"
4PRIORITY = "required"
5DEPENDS = "ncurses virtual/libintl"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz \
8 file://libintl-link.patch;patch=1"
9S = "${WORKDIR}/psmisc-${PV}"
10
11inherit autotools gettext
12
13ALLOW_EMPTY = "1"
14
15PACKAGES = "${PN} \
16 fuser-dbg fuser fuser-doc \
17 killall-dbg killall killall-doc \
18 pstree-dbg pstree pstree-doc"
19
20FILES_${PN} = ""
21RDEPENDS_${PN} = "fuser killall pstree"
22
23FILES_fuser = "${bindir}/fuser.${PN}"
24FILES_fuser-doc = "${mandir}/man1/fuser*"
25FILES_fuser-dbg = "${bindir}/.debug/fuser"
26
27FILES_killall = "${bindir}/killall.${PN}"
28FILES_killall-doc = "${mandir}/man1/killall*"
29FILES_killall-dbg = "${bindir}/.debug/killall*"
30
31FILES_pstree = "${bindir}/pstree"
32FILES_pstree-doc = "${mandir}/man1/pstree*"
33FILES_pstree-dbg = "${bindir}/.debug/pstree"
34
35do_install_append() {
36 mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN}
37 mv ${D}${bindir}/fuser ${D}${bindir}/fuser.${PN}
38}
39
40pkg_postinst_killall() {
41 update-alternatives --install ${bindir}/killall killall killall.${PN} 90
42}
43
44pkg_postrm_killall() {
45 update-alternatives --remove ${bindir}/killall killall.${PN}
46}
47
48pkg_postinst_fuser() {
49 update-alternatives --install ${bindir}/fuser fuser fuser.${PN} 90
50}
51
52pkg_postrm_fuser() {
53 update-alternatives --remove ${bindir}/fuser fuser.${PN}
54}
55