Merge "Add debian package for tools/collector"

This commit is contained in:
Zuul 2022-01-26 13:41:50 +00:00 committed by Gerrit Code Review
commit 352382e607
7 changed files with 134 additions and 0 deletions

View File

@ -0,0 +1,5 @@
collector (1.0-1) unstable; urgency=medium
* Initial release.
-- Ramon Gazoni Lacerda <Ramon.GazoniLacerda@windriver.com> Wed, 27 Oct 2021 15:33:45 -0300

View File

@ -0,0 +1,5 @@
etc/collect/* /etc/collect
etc/collect.d/* /etc/collect.d
usr/local/sbin/* /usr/local/sbin
usr/local/bin/collect /usr/local/bin
usr/sbin/collect /usr/sbin

View File

@ -0,0 +1,15 @@
Source: collector
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: collector
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Data and Log Collection
This packages scripts that implement data and log collection that field
support can execute to gather current state and runtime history for off
platform analysis and debug.

View File

@ -0,0 +1,44 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: collector
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'.

View File

@ -0,0 +1,57 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
export ROOT = debian/tmp
export SYSCONFDIR = $(ROOT)/etc
export SBINDIR = $(ROOT)/usr/sbin
%:
dh $@
override_dh_auto_install:
install -m 755 -d $(SYSCONFDIR)/collect.d
install -m 755 -d $(SYSCONFDIR)/collect
install -m 755 -d $(ROOT)/usr/local/sbin
install -m 755 -d $(ROOT)/usr/local/bin
install -m 755 -d $(SBINDIR)
install -m 755 -p collect $(ROOT)/usr/local/sbin/collect
install -m 755 -p collect_host $(ROOT)/usr/local/sbin/collect_host
install -m 755 -p collect_date $(ROOT)/usr/local/sbin/collect_date
install -m 755 -p collect_utils $(ROOT)/usr/local/sbin/collect_utils
install -m 755 -p collect_parms $(ROOT)/usr/local/sbin/collect_parms
install -m 755 -p collect_mask_passwords $(ROOT)/usr/local/sbin/collect_mask_passwords
install -m 755 -p expect_done $(ROOT)/usr/local/sbin/expect_done
install -m 755 -p mariadb-cli.sh $(ROOT)/usr/local/sbin/mariadb-cli
install -m 755 -p collect_sysinv.sh $(SYSCONFDIR)/collect.d/collect_sysinv
install -m 755 -p collect_psqldb.sh $(SYSCONFDIR)/collect.d/collect_psqldb
install -m 755 -p collect_mariadb.sh $(SYSCONFDIR)/collect.d/collect_mariadb
install -m 755 -p collect_openstack.sh $(SYSCONFDIR)/collect.d/collect_openstack
install -m 755 -p collect_networking.sh $(SYSCONFDIR)/collect.d/collect_networking
install -m 755 -p collect_ceph.sh $(SYSCONFDIR)/collect.d/collect_ceph
install -m 755 -p collect_sm.sh $(SYSCONFDIR)/collect.d/collect_sm
install -m 755 -p collect_tc.sh $(SYSCONFDIR)/collect.d/collect_tc
install -m 755 -p collect_nfv_vim.sh $(SYSCONFDIR)/collect.d/collect_nfv_vim
install -m 755 -p collect_ovs.sh $(SYSCONFDIR)/collect.d/collect_ovs
install -m 755 -p collect_patching.sh $(SYSCONFDIR)/collect.d/collect_patching
install -m 755 -p collect_coredump.sh $(SYSCONFDIR)/collect.d/collect_coredump
install -m 755 -p collect_crash.sh $(SYSCONFDIR)/collect.d/collect_crash
install -m 755 -p collect_ima.sh $(SYSCONFDIR)/collect.d/collect_ima
install -m 755 -p collect_fm.sh $(SYSCONFDIR)/collect.d/collect_fm
install -m 755 -p collect_containerization.sh $(SYSCONFDIR)/collect.d/collect_containerization
install -m 755 -p collect_dc.sh $(SYSCONFDIR)/collect.d/collect_dc
install -m 755 -p collect_disk.sh $(SYSCONFDIR)/collect.d/collect_disk
install -m 755 -p collect_interfaces.sh $(SYSCONFDIR)/collect.d/collect_interfaces
install -m 755 -p etc.exclude $(SYSCONFDIR)/collect/etc.exclude
install -m 755 -p run.exclude $(SYSCONFDIR)/collect/run.exclude
install -m 755 -p varlog.exclude $(SYSCONFDIR)/collect/varlog.exclude
ln -sf /usr/local/sbin/collect $(SBINDIR)/collect
ln -sf /usr/local/sbin/collect $(ROOT)/usr/local/bin/collect
override_dh_usrlocal:
echo "do nothing"

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,7 @@
---
debname: collector
debver: 1.0-1
src_path: scripts
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true