summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/procps/procps_4.0.3.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-09-17 11:38:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-18 08:53:10 +0100
commit556ac3ec46ffaf635d12e29778b30dcab298efdc (patch)
tree675a7ec0263853fccbb99790a29e213651b7b5f4 /meta/recipes-extended/procps/procps_4.0.3.bb
parent3737699cf8b8eabc386af6d46c01f0dfe540482f (diff)
downloadpoky-556ac3ec46ffaf635d12e29778b30dcab298efdc.tar.gz
procps: update 4.0.3 -> 4.0.4
Drop patches as all issues resolved upstream; one of them is a CVE backport. (From OE-Core rev: 8b5f6565a16bd17cf0cce62d5e7438a01e0cc1c3) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/procps/procps_4.0.3.bb')
-rw-r--r--meta/recipes-extended/procps/procps_4.0.3.bb100
1 files changed, 0 insertions, 100 deletions
diff --git a/meta/recipes-extended/procps/procps_4.0.3.bb b/meta/recipes-extended/procps/procps_4.0.3.bb
deleted file mode 100644
index 9ef679c6bd..0000000000
--- a/meta/recipes-extended/procps/procps_4.0.3.bb
+++ /dev/null
@@ -1,100 +0,0 @@
1SUMMARY = "System and process monitoring utilities"
2DESCRIPTION = "Procps contains a set of system utilities that provide system information about processes using \
3the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, and skill."
4HOMEPAGE = "https://gitlab.com/procps-ng/procps"
5SECTION = "base"
6LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db \
9 "
10
11DEPENDS = "ncurses"
12
13inherit autotools gettext pkgconfig update-alternatives
14
15SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \
16 file://sysctl.conf \
17 file://0001-src-w.c-use-utmp.h-only.patch \
18 file://0001-po-fr.po-address-failures-with-gettext-0.22.patch \
19 file://CVE-2023-4016.patch \
20 "
21SRCREV = "806eb270f217ff7e1e745c7bda2b002b5be74be4"
22
23S = "${WORKDIR}/git"
24
25# Upstream has a custom autogen.sh which invokes po/update-potfiles as they
26# don't ship a po/POTFILES.in (which is silly). Without that file gettext
27# doesn't believe po/ is a gettext directory and won't generate po/Makefile.
28do_configure:prepend() {
29 ( cd ${S} && po/update-potfiles )
30}
31
32EXTRA_OECONF = "--enable-skill --disable-modern-top"
33
34PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
35PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
36
37do_install:append () {
38 install -d ${D}${base_bindir}
39 [ "${bindir}" != "${base_bindir}" ] && for i in ${base_bindir_progs}; do mv ${D}${bindir}/$i ${D}${base_bindir}/$i; done
40 install -d ${D}${base_sbindir}
41 [ "${sbindir}" != "${base_sbindir}" ] && for i in ${base_sbindir_progs}; do mv ${D}${sbindir}/$i ${D}${base_sbindir}/$i; done
42 if [ "${base_sbindir}" != "${sbindir}" ]; then
43 rmdir ${D}${sbindir}
44 fi
45
46 install -d ${D}${sysconfdir}
47 install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf
48 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
49 install -d ${D}${sysconfdir}/sysctl.d
50 ln -sf ../sysctl.conf ${D}${sysconfdir}/sysctl.d/99-sysctl.conf
51 fi
52}
53
54CONFFILES:${PN} = "${sysconfdir}/sysctl.conf"
55
56bindir_progs = "free pkill pmap pgrep pwdx skill snice top uptime w"
57base_bindir_progs += "kill pidof ps watch"
58base_sbindir_progs += "sysctl"
59
60ALTERNATIVE_PRIORITY = "200"
61ALTERNATIVE_PRIORITY[pidof] = "150"
62
63ALTERNATIVE:${PN} = "${bindir_progs} ${base_bindir_progs} ${base_sbindir_progs}"
64
65ALTERNATIVE:${PN}-doc = "kill.1 uptime.1"
66ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1"
67ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1"
68
69python __anonymous() {
70 for prog in d.getVar('base_bindir_progs').split():
71 d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir'), prog))
72
73 for prog in d.getVar('base_sbindir_progs').split():
74 d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir'), prog))
75}
76
77PROCPS_PACKAGES = "${PN}-lib \
78 ${PN}-ps \
79 ${PN}-sysctl"
80
81PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}"
82RDEPENDS:${PN} += "${PROCPS_PACKAGES}"
83
84RDEPENDS:${PN}-ps += "${PN}-lib"
85RDEPENDS:${PN}-sysctl += "${PN}-lib"
86
87FILES:${PN}-lib = "${libdir}"
88FILES:${PN}-ps = "${base_bindir}/ps.${BPN}"
89FILES:${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d"
90
91ALTERNATIVE:${PN}:remove = "ps"
92ALTERNATIVE:${PN}:remove = "sysctl"
93
94ALTERNATIVE:${PN}-ps = "ps"
95ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps"
96ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps"
97
98ALTERNATIVE:${PN}-sysctl = "sysctl"
99ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl"
100ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl"