add resources-agents from contrib repo

This commit is contained in:
Luiz Costa 2022-04-12 13:33:51 +01:00
parent a51c8f0d42
commit b754dd0bbc
7 changed files with 104 additions and 0 deletions

View File

@ -35,6 +35,16 @@ try {
stash name: "rpms-centos8", includes: 'output/noarch/*.rpm'
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') {
error('Package stage failure.');

View 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

View 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".

View 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

View File

@ -0,0 +1,6 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@

View File

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

View 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