summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2020-12-16 22:25:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-12 17:44:16 +0000
commit507a47a4e5077d5f8f76d9629be6b871dfd8eb90 (patch)
tree8be9fdb52bf9c5820fcc418a05105512a5d6373d
parenta4828f8fc91c71642ae1a02a825c238b40b1511a (diff)
downloadpoky-507a47a4e5077d5f8f76d9629be6b871dfd8eb90.tar.gz
procps: split ps and sysctl into individual packages
Move the ps and sysctl tools into its own package. Useful for size constrained systems that only want the ps and/or sysctl tools. (From OE-Core rev: 28809742c517a8e3589b9cd22ce8e82b1a983683) Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/procps/procps_3.3.16.bb25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-extended/procps/procps_3.3.16.bb b/meta/recipes-extended/procps/procps_3.3.16.bb
index 2810ebd285..ef3ac86e97 100644
--- a/meta/recipes-extended/procps/procps_3.3.16.bb
+++ b/meta/recipes-extended/procps/procps_3.3.16.bb
@@ -74,3 +74,28 @@ python __anonymous() {
74# 'ps' isn't suitable for use as a security tool so whitelist this CVE. 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 75# https://bugzilla.redhat.com/show_bug.cgi?id=1575473#c3
76CVE_CHECK_WHITELIST += "CVE-2018-1121" 76CVE_CHECK_WHITELIST += "CVE-2018-1121"
77
78PROCPS_PACKAGES = "${PN}-lib \
79 ${PN}-ps \
80 ${PN}-sysctl"
81
82PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}"
83RDEPENDS_${PN} += "${PROCPS_PACKAGES}"
84
85RDEPENDS_${PN}-ps += "${PN}-lib"
86RDEPENDS_${PN}-sysctl += "${PN}-lib"
87
88FILES_${PN}-lib = "${libdir}"
89FILES_${PN}-ps = "${base_bindir}/ps.${BPN}"
90FILES_${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d"
91
92ALTERNATIVE_${PN}_remove = "ps"
93ALTERNATIVE_${PN}_remove = "sysctl"
94
95ALTERNATIVE_${PN}-ps = "ps"
96ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps"
97ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps"
98
99ALTERNATIVE_${PN}-sysctl = "sysctl"
100ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl"
101ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl" \ No newline at end of file