diff options
author | Fan Xin <fan.xin@jp.fujitsu.com> | 2016-08-03 16:41:31 +0900 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-10 10:46:30 +0100 |
commit | f157570e749bb91d5e9d02efeeb8cf6d8f889748 (patch) | |
tree | cecc8b1f9eca04df80ae432f1c6db71cefe3c09d /meta/recipes-extended/procps/procps_3.3.12.bb | |
parent | 69735b95867ed6a1da71cb0fbec4ad9484d4b57c (diff) | |
download | poky-f157570e749bb91d5e9d02efeeb8cf6d8f889748.tar.gz |
procps: upgrade to 3.3.12
(From OE-Core rev: a1ed1c6564a145f4453d389eb2357c17b71b1b79)
Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/procps/procps_3.3.12.bb')
-rw-r--r-- | meta/recipes-extended/procps/procps_3.3.12.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-extended/procps/procps_3.3.12.bb b/meta/recipes-extended/procps/procps_3.3.12.bb new file mode 100644 index 0000000000..4ca1a5023b --- /dev/null +++ b/meta/recipes-extended/procps/procps_3.3.12.bb | |||
@@ -0,0 +1,66 @@ | |||
1 | SUMMARY = "System and process monitoring utilities" | ||
2 | DESCRIPTION = "Procps contains a set of system utilities that provide system information about processes using \ | ||
3 | the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, and skill." | ||
4 | HOMEPAGE = "https://gitorious.org/procps" | ||
5 | SECTION = "base" | ||
6 | LICENSE = "GPLv2+ & LGPLv2+" | ||
7 | LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
8 | file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db \ | ||
9 | " | ||
10 | |||
11 | DEPENDS = "ncurses" | ||
12 | |||
13 | inherit autotools gettext pkgconfig update-alternatives | ||
14 | |||
15 | SRC_URI = "http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-${PV}.tar.xz \ | ||
16 | file://sysctl.conf \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "957e42e8b193490b2111252e4a2b443c" | ||
20 | SRC_URI[sha256sum] = "6ed65ab86318f37904e8f9014415a098bec5bc53653e5d9ab404f95ca5e1a7d4" | ||
21 | |||
22 | S = "${WORKDIR}/procps-ng-${PV}" | ||
23 | |||
24 | EXTRA_OECONF = "--enable-skill --disable-modern-top" | ||
25 | |||
26 | CPPFLAGS += "-I${S}" | ||
27 | |||
28 | do_install_append () { | ||
29 | install -d ${D}${base_bindir} | ||
30 | [ "${bindir}" != "${base_bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i; done | ||
31 | install -d ${D}${base_sbindir} | ||
32 | [ "${sbindir}" != "${base_sbindir}" ] && for i in ${base_sbindir_progs}; do mv ${D}${sbindir}/$i ${D}${base_sbindir}/$i; done | ||
33 | if [ "${base_sbindir}" != "${sbindir}" ]; then | ||
34 | rmdir ${D}${sbindir} | ||
35 | fi | ||
36 | |||
37 | install -d ${D}${sysconfdir} | ||
38 | install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf | ||
39 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
40 | install -d ${D}${sysconfdir}/sysctl.d | ||
41 | ln -sf ../sysctl.conf ${D}${sysconfdir}/sysctl.d/99-sysctl.conf | ||
42 | fi | ||
43 | } | ||
44 | |||
45 | CONFFILES_${PN} = "${sysconfdir}/sysctl.conf" | ||
46 | |||
47 | bindir_progs = "free pkill pmap pgrep pwdx skill snice top uptime" | ||
48 | base_bindir_progs += "kill pidof ps watch" | ||
49 | base_sbindir_progs += "sysctl" | ||
50 | |||
51 | ALTERNATIVE_PRIORITY = "200" | ||
52 | |||
53 | ALTERNATIVE_${PN} = "${bindir_progs} ${base_bindir_progs} ${base_sbindir_progs}" | ||
54 | |||
55 | ALTERNATIVE_${PN}-doc = "kill.1 uptime.1" | ||
56 | ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1" | ||
57 | ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1" | ||
58 | |||
59 | python __anonymous() { | ||
60 | for prog in d.getVar('base_bindir_progs', True).split(): | ||
61 | d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir', True), prog)) | ||
62 | |||
63 | for prog in d.getVar('base_sbindir_progs', True).split(): | ||
64 | d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir', True), prog)) | ||
65 | } | ||
66 | |||