[oe-commits] [openembedded-core] 06/06: systemtap: move systemtap-exporter into separate package

git at git.openembedded.org git at git.openembedded.org
Fri Oct 26 08:17:40 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 2fcd103a9449c21758b4eed7a32e8f0860a082c3
Author: Victor Kamensky <kamensky at cisco.com>
AuthorDate: Thu Oct 25 19:59:55 2018 -0700

    systemtap: move systemtap-exporter into separate package
    
    stap-exporter runs a set of systemtap scripts and relays
    their procfs outputs to remote HTTP clients on demand.
    
    systemtap-exporter is not supposed to run in untrusted
    environment. It starts HTTP server on some port. It does
    not look safe enough to be included by default along with
    the rest of systemtap.
    
    Move systemtap-exporter, its systemd unit, configuration
    files and examples scripts into separate package. So if one
    needs it and understand its implication, he/she can include
    it explicitely.
    
    Signed-off-by: Victor Kamensky <kamensky at cisco.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/systemtap/systemtap_git.bb | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb
index 904ecdd..6ee3e1c 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.bb
+++ b/meta/recipes-kernel/systemtap/systemtap_git.bb
@@ -27,7 +27,16 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,
 
 inherit autotools gettext pkgconfig distutils3-base systemd
 
-SYSTEMD_SERVICE_${PN} = "stap-exporter.service"
+PACKAGES =+ "${PN}-exporter"
+
+FILES_${PN}-exporter = "${sysconfdir}/stap-exporter/* \
+                        ${sysconfdir}/sysconfig/stap-exporter \
+                        ${systemd_unitdir}/system/stap-exporter.service \
+                        ${sbindir}/stap-exporter"
+
+RDEPENDS_${PN}-exporter = "${PN} python3-core python3-netclient"
+
+SYSTEMD_SERVICE_${PN}-exporter = "stap-exporter.service"
 
 do_configure_prepend () {
     # Improve reproducibility for c++ object files

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list