2 ## Copyright (C) 2019 Wind River Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 PACKAGES += " collect-engtools"
18 RDEPENDS_collect-engtools += " \
25 SUMMARY_collect-engtools= "Host performance data collection tools package"
26 DESCRIPTION_collect-engtools= " \
27 This package contains data collection tools to monitor host performance. \
28 Tools are general purpose engineering and debugging related. Includes \
29 overall memory, cpu occupancy, per-task cpu, per-task scheduling, per-task \
34 do_configure_append() {
42 cd ${S}/tools/engtools/hostdata-collectors/scripts
44 install -d -m0755 ${D}/${bindir}
45 install -m 755 buddyinfo.py ${D}/${bindir}
46 install -m 755 chewmem ${D}/${bindir}
47 install -m 755 ceph.sh ${D}/${bindir}
48 install -m 755 cleanup-engtools.sh ${D}/${bindir}
49 install -m 755 collect-engtools.sh ${D}/${bindir}
50 install -m 755 diskstats.sh ${D}/${bindir}
51 install -m 755 engtools_util.sh ${D}/${bindir}
52 install -m 755 filestats.sh ${D}/${bindir}
53 install -m 755 iostat.sh ${D}/${bindir}
54 install -m 755 linux_benchmark.sh ${D}/${bindir}
55 install -m 755 memstats.sh ${D}/${bindir}
56 install -m 755 netstats.sh ${D}/${bindir}
57 install -m 755 postgres.sh ${D}/${bindir}
58 install -m 755 rabbitmq.sh ${D}/${bindir}
59 install -m 755 remote/rbzip2-engtools.sh ${D}/${bindir}
60 install -m 755 remote/rstart-engtools.sh ${D}/${bindir}
61 install -m 755 remote/rstop-engtools.sh ${D}/${bindir}
62 install -m 755 remote/rsync-engtools-data.sh ${D}/${bindir}
63 install -m 755 slab.sh ${D}/${bindir}
64 install -m 755 ticker.sh ${D}/${bindir}
65 install -m 755 top.sh ${D}/${bindir}
66 install -m 755 vswitch.sh ${D}/${bindir}
67 install -m 755 live_stream.py ${D}/${bindir}
69 install -p -d -m0755 ${D}/${sysconfdir}/engtools/
70 install -m0644 -p cfg/engtools.conf ${D}/${sysconfdir}/engtools
71 install -d -m0755 ${D}/${sysconfdir}/init.d
72 install -m0755 init.d/collect-engtools.sh ${D}/${sysconfdir}/init.d
74 install -d -m0755 ${D}/${systemd_system_unitdir}
75 install -m0644 -p -D collect-engtools.service ${D}/${systemd_system_unitdir}
77 sed -i -e 's/network.service/networking.service/' \
78 ${D}/${systemd_system_unitdir}/collect-engtools.service
80 sed -i -e 's|/usr/local/bin/|${bindir}/|' \
81 ${D}/${sysconfdir}/init.d/collect-engtools.sh \
82 ${D}/${bindir}/cleanup-engtools.sh
85 FILES_collect-engtools = " \
86 ${bindir}/buddyinfo.py \
89 ${bindir}/cleanup-engtools.sh \
90 ${bindir}/collect-engtools.sh \
91 ${bindir}/diskstats.sh \
92 ${bindir}/engtools_util.sh \
93 ${bindir}/filestats.sh \
95 ${bindir}/linux_benchmark.sh \
96 ${bindir}/memstats.sh \
97 ${bindir}/netstats.sh \
98 ${bindir}/postgres.sh \
99 ${bindir}/rabbitmq.sh \
100 ${bindir}/rbzip2-engtools.sh \
101 ${bindir}/rstart-engtools.sh \
102 ${bindir}/rstop-engtools.sh \
103 ${bindir}/rsync-engtools-data.sh \
105 ${bindir}/ticker.sh \
107 ${bindir}/vswitch.sh \
108 ${bindir}/live_stream.py \
109 ${sysconfdir}/engtools/engtools.conf \
110 ${sysconfdir}/init.d/collect-engtools.sh \
111 ${systemd_system_unitdir}/collect-engtools.service \
114 SYSTEMD_PACKAGES += "collect-engtools"
115 SYSTEMD_SERVICE_collect-engtools = "collect-engtools.service"
116 SYSTEMD_AUTO_ENABLE_collect-engtools = "enable"