diff options
author | Sinan Kaya <okaya@kernel.org> | 2020-12-16 22:25:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-12 17:44:16 +0000 |
commit | 507a47a4e5077d5f8f76d9629be6b871dfd8eb90 (patch) | |
tree | 8be9fdb52bf9c5820fcc418a05105512a5d6373d | |
parent | a4828f8fc91c71642ae1a02a825c238b40b1511a (diff) | |
download | poky-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.bb | 25 |
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 |
76 | CVE_CHECK_WHITELIST += "CVE-2018-1121" | 76 | CVE_CHECK_WHITELIST += "CVE-2018-1121" |
77 | |||
78 | PROCPS_PACKAGES = "${PN}-lib \ | ||
79 | ${PN}-ps \ | ||
80 | ${PN}-sysctl" | ||
81 | |||
82 | PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}" | ||
83 | RDEPENDS_${PN} += "${PROCPS_PACKAGES}" | ||
84 | |||
85 | RDEPENDS_${PN}-ps += "${PN}-lib" | ||
86 | RDEPENDS_${PN}-sysctl += "${PN}-lib" | ||
87 | |||
88 | FILES_${PN}-lib = "${libdir}" | ||
89 | FILES_${PN}-ps = "${base_bindir}/ps.${BPN}" | ||
90 | FILES_${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d" | ||
91 | |||
92 | ALTERNATIVE_${PN}_remove = "ps" | ||
93 | ALTERNATIVE_${PN}_remove = "sysctl" | ||
94 | |||
95 | ALTERNATIVE_${PN}-ps = "ps" | ||
96 | ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps" | ||
97 | ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps" | ||
98 | |||
99 | ALTERNATIVE_${PN}-sysctl = "sysctl" | ||
100 | ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl" | ||
101 | ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl" \ No newline at end of file | ||