summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/procps
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/procps')
-rw-r--r--meta/recipes-extended/procps/procps_4.0.4.bb (renamed from meta/recipes-extended/procps/procps_3.3.16.bb)42
1 files changed, 19 insertions, 23 deletions
diff --git a/meta/recipes-extended/procps/procps_3.3.16.bb b/meta/recipes-extended/procps/procps_4.0.4.bb
index ef3ac86e97..800384f22f 100644
--- a/meta/recipes-extended/procps/procps_3.3.16.bb
+++ b/meta/recipes-extended/procps/procps_4.0.4.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Procps contains a set of system utilities that provide system inf
3the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, and skill." 3the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, and skill."
4HOMEPAGE = "https://gitlab.com/procps-ng/procps" 4HOMEPAGE = "https://gitlab.com/procps-ng/procps"
5SECTION = "base" 5SECTION = "base"
6LICENSE = "GPLv2+ & LGPLv2+" 6LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db \ 8 file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db \
9 " 9 "
@@ -12,17 +12,17 @@ DEPENDS = "ncurses"
12 12
13inherit autotools gettext pkgconfig update-alternatives 13inherit autotools gettext pkgconfig update-alternatives
14 14
15SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https \ 15SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \
16 file://sysctl.conf \ 16 file://sysctl.conf \
17 " 17 "
18SRCREV = "59c88e18f29000ceaf7e5f98181b07be443cf12f" 18SRCREV = "4ddcef2fd843170c8e2d59a83042978f41037a2b"
19 19
20S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
21 21
22# Upstream has a custom autogen.sh which invokes po/update-potfiles as they 22# Upstream has a custom autogen.sh which invokes po/update-potfiles as they
23# don't ship a po/POTFILES.in (which is silly). Without that file gettext 23# don't ship a po/POTFILES.in (which is silly). Without that file gettext
24# doesn't believe po/ is a gettext directory and won't generate po/Makefile. 24# doesn't believe po/ is a gettext directory and won't generate po/Makefile.
25do_configure_prepend() { 25do_configure:prepend() {
26 ( cd ${S} && po/update-potfiles ) 26 ( cd ${S} && po/update-potfiles )
27} 27}
28 28
@@ -31,7 +31,7 @@ EXTRA_OECONF = "--enable-skill --disable-modern-top"
31PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 31PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
32PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" 32PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
33 33
34do_install_append () { 34do_install:append () {
35 install -d ${D}${base_bindir} 35 install -d ${D}${base_bindir}
36 [ "${bindir}" != "${base_bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i; done 36 [ "${bindir}" != "${base_bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i; done
37 install -d ${D}${base_sbindir} 37 install -d ${D}${base_sbindir}
@@ -48,7 +48,7 @@ do_install_append () {
48 fi 48 fi
49} 49}
50 50
51CONFFILES_${PN} = "${sysconfdir}/sysctl.conf" 51CONFFILES:${PN} = "${sysconfdir}/sysctl.conf"
52 52
53bindir_progs = "free pkill pmap pgrep pwdx skill snice top uptime w" 53bindir_progs = "free pkill pmap pgrep pwdx skill snice top uptime w"
54base_bindir_progs += "kill pidof ps watch" 54base_bindir_progs += "kill pidof ps watch"
@@ -57,9 +57,9 @@ base_sbindir_progs += "sysctl"
57ALTERNATIVE_PRIORITY = "200" 57ALTERNATIVE_PRIORITY = "200"
58ALTERNATIVE_PRIORITY[pidof] = "150" 58ALTERNATIVE_PRIORITY[pidof] = "150"
59 59
60ALTERNATIVE_${PN} = "${bindir_progs} ${base_bindir_progs} ${base_sbindir_progs}" 60ALTERNATIVE:${PN} = "${bindir_progs} ${base_bindir_progs} ${base_sbindir_progs}"
61 61
62ALTERNATIVE_${PN}-doc = "kill.1 uptime.1" 62ALTERNATIVE:${PN}-doc = "kill.1 uptime.1"
63ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1" 63ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1"
64ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1" 64ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1"
65 65
@@ -71,31 +71,27 @@ python __anonymous() {
71 d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir'), prog)) 71 d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir'), prog))
72} 72}
73 73
74# 'ps' isn't suitable for use as a security tool so whitelist this CVE.
75# https://bugzilla.redhat.com/show_bug.cgi?id=1575473#c3
76CVE_CHECK_WHITELIST += "CVE-2018-1121"
77
78PROCPS_PACKAGES = "${PN}-lib \ 74PROCPS_PACKAGES = "${PN}-lib \
79 ${PN}-ps \ 75 ${PN}-ps \
80 ${PN}-sysctl" 76 ${PN}-sysctl"
81 77
82PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}" 78PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}"
83RDEPENDS_${PN} += "${PROCPS_PACKAGES}" 79RDEPENDS:${PN} += "${PROCPS_PACKAGES}"
84 80
85RDEPENDS_${PN}-ps += "${PN}-lib" 81RDEPENDS:${PN}-ps += "${PN}-lib"
86RDEPENDS_${PN}-sysctl += "${PN}-lib" 82RDEPENDS:${PN}-sysctl += "${PN}-lib"
87 83
88FILES_${PN}-lib = "${libdir}" 84FILES:${PN}-lib = "${libdir}"
89FILES_${PN}-ps = "${base_bindir}/ps.${BPN}" 85FILES:${PN}-ps = "${base_bindir}/ps.${BPN}"
90FILES_${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d" 86FILES:${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d"
91 87
92ALTERNATIVE_${PN}_remove = "ps" 88ALTERNATIVE:${PN}:remove = "ps"
93ALTERNATIVE_${PN}_remove = "sysctl" 89ALTERNATIVE:${PN}:remove = "sysctl"
94 90
95ALTERNATIVE_${PN}-ps = "ps" 91ALTERNATIVE:${PN}-ps = "ps"
96ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps" 92ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps"
97ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps" 93ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps"
98 94
99ALTERNATIVE_${PN}-sysctl = "sysctl" 95ALTERNATIVE:${PN}-sysctl = "sysctl"
100ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl" 96ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl"
101ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl" \ No newline at end of file 97ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl"