mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
add resources-agents from contrib repo
This commit is contained in:
parent
a51c8f0d42
commit
b754dd0bbc
10
connectors/vmware/Jenkinsfile
vendored
10
connectors/vmware/Jenkinsfile
vendored
@ -35,6 +35,16 @@ try {
|
|||||||
stash name: "rpms-centos8", includes: 'output/noarch/*.rpm'
|
stash name: "rpms-centos8", includes: 'output/noarch/*.rpm'
|
||||||
sh 'rm -rf output'
|
sh 'rm -rf output'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'Debian bullseye packaging and signing': {
|
||||||
|
node {
|
||||||
|
dir('centreon-vmware') {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
sh 'docker run -i --entrypoint "/src/centreon-vmware/ci/scripts/vmware-deb-package.sh" -w "/src" -v "$PWD:/src" -e "DISTRIB=Debian11" -e "VERSION=$VERSION" -e "RELEASE=$RELEASE" registry.centreon.com/centreon-debian11-dependencies:22.04'
|
||||||
|
stash name: 'Debian11', includes: 'Debian11/*.deb'
|
||||||
|
archiveArtifacts artifacts: "Debian11/*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
|
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
|
||||||
error('Package stage failure.');
|
error('Package stage failure.');
|
||||||
|
18
connectors/vmware/ci/debian/control
Normal file
18
connectors/vmware/ci/debian/control
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Source: centreon-plugin-virtualization-vmware-daemon
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Luiz Costa <me@luizgustavo.pro.br>
|
||||||
|
Build-Depends: debhelper-compat (= 12)
|
||||||
|
Standards-Version: 4.5.0
|
||||||
|
Homepage: https://www.centreon.com
|
||||||
|
|
||||||
|
Package: centreon-plugin-virtualization-vmware-daemon
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
${shlibs:Depends},
|
||||||
|
libio-socket-inet6-perl,
|
||||||
|
libjson-xs-perl,
|
||||||
|
liblwp-protocol-https-perl,
|
||||||
|
libzmq-constants-perl,
|
||||||
|
zmq-libzmq4-perl
|
||||||
|
Description: Perl daemon to monitor VSphere Infrastructure
|
29
connectors/vmware/ci/debian/copyright
Normal file
29
connectors/vmware/ci/debian/copyright
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: centreon-plugin-virtualization-vmware-daemon
|
||||||
|
Upstream-Contact: Luiz Costa <me@luizgustavo.pro.br>
|
||||||
|
Source: https://www.centreon.com
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2022 Centreon
|
||||||
|
License: Apache-2.0
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2022 Centreon
|
||||||
|
License: Apache-2.0
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
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 systems, the complete text of the Apache version 2.0 license
|
||||||
|
can be found in "/usr/share/common-licenses/Apache-2.0".
|
||||||
|
|
4
connectors/vmware/ci/debian/install
Normal file
4
connectors/vmware/ci/debian/install
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
centreon_vmware.pl usr/bin
|
||||||
|
contrib/debian/centreon_vmware-systemd lib/systemd/system/centreon_vmware
|
||||||
|
contrib/config/centreon_vmware-conf.pm etc/centreon/centreon_vmware.pm
|
||||||
|
centreon/* usr/share/perl5/centreon
|
6
connectors/vmware/ci/debian/rules
Executable file
6
connectors/vmware/ci/debian/rules
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
1
connectors/vmware/ci/debian/source/format
Normal file
1
connectors/vmware/ci/debian/source/format
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
36
connectors/vmware/ci/scripts/vmware-deb-package.sh
Executable file
36
connectors/vmware/ci/scripts/vmware-deb-package.sh
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
if [ -z "$VERSION" -o -z "$RELEASE" -o -z "$DISTRIB" ] ; then
|
||||||
|
echo "You need to specify VERSION / RELEASE / DISTRIB variables"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "################################################## PACKAGING COLLECT ##################################################"
|
||||||
|
|
||||||
|
AUTHOR="Luiz Costa"
|
||||||
|
AUTHOR_EMAIL="me@luizgustavo.pro.br"
|
||||||
|
|
||||||
|
if [ -d /build ]; then
|
||||||
|
rm -rf /build
|
||||||
|
fi
|
||||||
|
mkdir -p /build
|
||||||
|
cd /build
|
||||||
|
|
||||||
|
mkdir -p /build/centreon-plugin-virtualization-vmware-daemon
|
||||||
|
(cd /src && tar czvpf - centreon-plugin-virtualization-vmware-daemon) | dd of=centreon-plugin-virtualization-vmware-daemon-$VERSION.tar.gz
|
||||||
|
cp -rv /src/centreon-vmware /build/
|
||||||
|
cp -rv /src/centreon-vmware/ci/debian /build/centreon-plugin-virtualization-vmware-daemon/
|
||||||
|
|
||||||
|
ls -lart
|
||||||
|
cd /build/centreon-plugin-virtualization-vmware-daemon
|
||||||
|
debmake -f "${AUTHOR}" -e "${AUTHOR_EMAIL}" -u "$VERSION" -y -r "$RELEASE"
|
||||||
|
debuild-pbuilder
|
||||||
|
cd /build
|
||||||
|
|
||||||
|
if [ -d "$DISTRIB" ] ; then
|
||||||
|
rm -rf "$DISTRIB"
|
||||||
|
fi
|
||||||
|
mkdir $DISTRIB
|
||||||
|
mv /build/*.deb $DISTRIB/
|
||||||
|
mv /build/$DISTRIB/*.deb /src
|
Loading…
x
Reference in New Issue
Block a user