Add debian package for monitor-tools
Add debian packaging infrastructure for monitor-tools to build a debian package. Test Plan: build pkg; build image; compare with RPM PASS pkg builds PASS image builds PASS same contents and permissions as RPM Story: 2009101 Task: 43960 Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Change-Id: I2ba30a627cf2c64c88a3d0586d97fcafe117e669
This commit is contained in:
parent
821aff9947
commit
462750e14b
5
monitor-tools/debian/deb_folder/changelog
Normal file
5
monitor-tools/debian/deb_folder/changelog
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
monitor-tools (1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Thu, 11 Nov 2021 17:23:08 -0300
|
17
monitor-tools/debian/deb_folder/control
Normal file
17
monitor-tools/debian/deb_folder/control
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Source: monitor-tools
|
||||||
|
Section: admin
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||||
|
Build-Depends: debhelper-compat (= 13)
|
||||||
|
Standards-Version: 4.1.2
|
||||||
|
Homepage: https://www.starlingx.io
|
||||||
|
|
||||||
|
Package: monitor-tools
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||||
|
initscripts
|
||||||
|
Description: Monitor tools package
|
||||||
|
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.
|
44
monitor-tools/debian/deb_folder/copyright
Normal file
44
monitor-tools/debian/deb_folder/copyright
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: monitor-tools
|
||||||
|
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||||
|
Source: https://opendev.org/starlingx/utilities
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright:
|
||||||
|
(c) 2013-2021 Wind River Systems, Inc
|
||||||
|
(c) Others (See individual files for more details)
|
||||||
|
License: Apache-2
|
||||||
|
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
|
||||||
|
.
|
||||||
|
https://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.
|
||||||
|
.
|
||||||
|
On Debian-based systems the full text of the Apache version 2.0 license
|
||||||
|
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
||||||
|
|
||||||
|
# If you want to use GPL v2 or later for the /debian/* files use
|
||||||
|
# the following clauses, or change it to suit. Delete these two lines
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2021 Wind River Systems, Inc
|
||||||
|
License: Apache-2
|
||||||
|
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
|
||||||
|
.
|
||||||
|
https://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.
|
||||||
|
.
|
||||||
|
On Debian-based systems the full text of the Apache version 2.0 license
|
||||||
|
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
1
monitor-tools/debian/deb_folder/monitor-tools.install
Normal file
1
monitor-tools/debian/deb_folder/monitor-tools.install
Normal file
@ -0,0 +1 @@
|
|||||||
|
usr/bin/*
|
18
monitor-tools/debian/deb_folder/monitor-tools.postinst
Executable file
18
monitor-tools/debian/deb_folder/monitor-tools.postinst
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure)
|
||||||
|
grep schedstats /etc/sysctl.conf
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "\nkernel.sched_schedstats=1" >> /etc/sysctl.conf
|
||||||
|
sysctl -p &>/dev/null
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "monitor-tools postinst called with an unknown argument: $1" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
14
monitor-tools/debian/deb_folder/rules
Executable file
14
monitor-tools/debian/deb_folder/rules
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export ROOT = debian/tmp
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
install -d $(ROOT)/usr/bin
|
||||||
|
install -p memtop $(ROOT)/usr/bin
|
||||||
|
install -p schedtop $(ROOT)/usr/bin
|
||||||
|
install -p occtop $(ROOT)/usr/bin
|
||||||
|
|
||||||
|
dh_install
|
1
monitor-tools/debian/deb_folder/source/format
Normal file
1
monitor-tools/debian/deb_folder/source/format
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
7
monitor-tools/debian/meta_data.yaml
Normal file
7
monitor-tools/debian/meta_data.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
debname: monitor-tools
|
||||||
|
debver: 1.0-1
|
||||||
|
src_path: scripts
|
||||||
|
revision:
|
||||||
|
dist: $STX_DIST
|
||||||
|
PKG_GITREVCOUNT: true
|
Loading…
Reference in New Issue
Block a user