summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-05-18 13:37:38 +0400
committerRoman I Khimov <khimov@altell.ru>2010-06-10 00:02:28 +0400
commit97721acc3b096fb34ebe8c4f2305011dd0540254 (patch)
treec652930dd54a32a1a6f82076ee900dce12ab70b6 /recipes
parent68f4b0402c82f1ea247a2775e022bf217de6a632 (diff)
procps: handle pgrep through alternatives
* pgrep can be provided by busybox * remove useless FILES definition along the way Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/procps/procps.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes/procps/procps.inc b/recipes/procps/procps.inc
index 863debf599..d158f9b8ec 100644
--- a/recipes/procps/procps.inc
+++ b/recipes/procps/procps.inc
@@ -8,7 +8,7 @@ PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "ncurses"
-INC_PR = "r9"
+INC_PR = "r10"
SRC_URI = "http://procps.sourceforge.net/procps-${PV}.tar.gz;name=tarball \
file://sysctl.conf \
@@ -22,11 +22,6 @@ INITSCRIPT_PARAMS = "start 30 S ."
FILES_${PN} += "${base_libdir}/libproc-*.so"
-FILES = "${bindir}/top.${PN} ${base_bindir}/ps.${PN} ${bindir}/uptime.${PN} ${base_bindir}/kill.${PN} \
- ${bindir}/free.${PN} ${bindir}/w ${bindir}/watch ${bindir}/pgrep ${bindir}/pmap ${bindir}/pwdx \
- ${bindir}/snice ${bindir}/vmstat ${bindir}/slabtop ${bindir}/pkill ${bindir}/skill ${bindir}/tload \
- ${base_sbindir}/sysctl.${PN}"
-
CONFFILES_${PN} = "${sysconfdir}/sysctl.conf"
EXTRA_OEMAKE = "CFLAGS=-I${STAGING_INCDIR} \
@@ -48,6 +43,7 @@ do_install_append () {
mv ${D}${bindir}/free ${D}${bindir}/free.${PN}
mv ${D}${base_sbindir}/sysctl ${D}${base_sbindir}/sysctl.${PN}
mv ${D}${bindir}/pkill ${D}${bindir}/pkill.${PN}
+ mv ${D}${bindir}/pgrep ${D}${bindir}/pgrep.${PN}
}
pkg_postinst() {
@@ -58,6 +54,7 @@ pkg_postinst() {
update-alternatives --install ${bindir}/free free free.${PN} 90
update-alternatives --install ${base_sbindir}/sysctl sysctl sysctl.${PN} 90
update-alternatives --install ${bindir}/pkill pkill pkill.${PN} 90
+ update-alternatives --install ${bindir}/pgrep pgrep pgrep.${PN} 90
}
pkg_postrm() {
@@ -68,4 +65,5 @@ pkg_postrm() {
update-alternatives --remove free free.${PN}
update-alternatives --remove sysctl sysctl.${PN}
update-alternatives --remove pkill pkill.${PN}
+ update-alternatives --remove pgrep pgrep.${PN}
}