stx-config: enable the services by default
[pti/rtp.git] / meta-stx / recipes-core / stx-utilities / utilities / collect-engtools.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
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
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15
16 PACKAGES += " collect-engtools"
17
18 RDEPENDS_collect-engtools += " \
19         iperf3 \
20         bash \
21         perl \
22         python \
23         "
24
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 \
30 io. \
31 "
32
33
34 do_configure_append() {
35         :
36 }
37 do_compile_append() {
38         :
39 }
40
41 do_install_append() {
42         cd ${S}/tools/engtools/hostdata-collectors/scripts
43
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}
68
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
73
74         install -d -m0755 ${D}/${systemd_system_unitdir}
75         install -m0644 -p -D collect-engtools.service ${D}/${systemd_system_unitdir}
76
77 }
78
79 FILES_collect-engtools = "  \
80         ${bindir}/buddyinfo.py \
81         ${bindir}/chewmem \
82         ${bindir}/ceph.sh \
83         ${bindir}/cleanup-engtools.sh \
84         ${bindir}/collect-engtools.sh \
85         ${bindir}/diskstats.sh \
86         ${bindir}/engtools_util.sh \
87         ${bindir}/filestats.sh \
88         ${bindir}/iostat.sh \
89         ${bindir}/linux_benchmark.sh \
90         ${bindir}/memstats.sh \
91         ${bindir}/netstats.sh \
92         ${bindir}/postgres.sh \
93         ${bindir}/rabbitmq.sh \
94         ${bindir}/rbzip2-engtools.sh \
95         ${bindir}/rstart-engtools.sh \
96         ${bindir}/rstop-engtools.sh \
97         ${bindir}/rsync-engtools-data.sh \
98         ${bindir}/slab.sh \
99         ${bindir}/ticker.sh \
100         ${bindir}/top.sh \
101         ${bindir}/vswitch.sh \
102         ${bindir}/live_stream.py \
103         ${sysconfdir}/engtools/engtools.conf \
104         ${sysconfdir}/init.d/collect-engtools.sh \
105         ${systemd_system_unitdir}/collect-engtools.service \
106         "