meta-starlingx/meta-stx-flock/stx-utilities/collect-engtools.bb
Saul Wold 467e56bfdc Restructure STX Flock recipes
Create a new layer to manage the StarlingX Flock specific recipes

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2020-05-17 16:00:29 -07:00

81 lines
2.8 KiB
BlitzBasic

#
## Copyright (C) 2019 Wind River Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
DESCRIPTION = " \
This package contains data collection tools to monitor host performance. \
Tools are general purpose engineering and debugging related. Includes \
overall memory, cpu occupancy, per-task cpu, per-task scheduling, per-task \
io. \
"
SUMMARY = "Host performance data collection tools package"
require utilities-common.inc
S = "${S_DIR}/tools/engtools/hostdata-collectors/scripts"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
RDEPENDS_collect-engtools += " \
iperf3 \
bash \
perl \
python \
"
inherit systemd
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
SYSTEMD_PACKAGES += "${PN}"
SYSTEMD_SERVICE_${PN} = " ${PN}.service"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install_append() {
install -d -m0755 ${D}/${bindir}
install -m 755 buddyinfo.py ${D}/${bindir}
install -m 755 chewmem ${D}/${bindir}
install -m 755 ceph.sh ${D}/${bindir}
install -m 755 cleanup-engtools.sh ${D}/${bindir}
install -m 755 collect-engtools.sh ${D}/${bindir}
install -m 755 diskstats.sh ${D}/${bindir}
install -m 755 engtools_util.sh ${D}/${bindir}
install -m 755 filestats.sh ${D}/${bindir}
install -m 755 iostat.sh ${D}/${bindir}
install -m 755 linux_benchmark.sh ${D}/${bindir}
install -m 755 memstats.sh ${D}/${bindir}
install -m 755 netstats.sh ${D}/${bindir}
install -m 755 postgres.sh ${D}/${bindir}
install -m 755 rabbitmq.sh ${D}/${bindir}
install -m 755 remote/rbzip2-engtools.sh ${D}/${bindir}
install -m 755 remote/rstart-engtools.sh ${D}/${bindir}
install -m 755 remote/rstop-engtools.sh ${D}/${bindir}
install -m 755 remote/rsync-engtools-data.sh ${D}/${bindir}
install -m 755 slab.sh ${D}/${bindir}
install -m 755 ticker.sh ${D}/${bindir}
install -m 755 top.sh ${D}/${bindir}
install -m 755 vswitch.sh ${D}/${bindir}
install -m 755 live_stream.py ${D}/${bindir}
install -p -d -m0755 ${D}/${sysconfdir}/engtools/
install -m0644 -p cfg/engtools.conf ${D}/${sysconfdir}/engtools
install -d -m0755 ${D}/${sysconfdir}/init.d
install -m0755 init.d/collect-engtools.sh ${D}/${sysconfdir}/init.d
install -d -m0755 ${D}/${systemd_system_unitdir}
install -m0644 -p -D collect-engtools.service ${D}/${systemd_system_unitdir}
}