Merge pull request #110 from centreon/add_perl-vmware

(debian) Add build of perl-vmware-vsphere dependency
This commit is contained in:
Luiz Costa 2022-06-22 10:28:35 +01:00 committed by GitHub
commit bb6fca03e9
2 changed files with 13 additions and 2 deletions

View File

@ -14,5 +14,6 @@ Depends: ${misc:Depends},
libjson-xs-perl,
liblwp-protocol-https-perl,
libzmq-constants-perl,
zmq-libzmq4-perl
zmq-libzmq4-perl,
perl-vmware-vsphere
Description: Perl daemon to monitor VSphere Infrastructure

View File

@ -20,12 +20,21 @@ cd /build
# fix version to debian format accept
VERSION="$(echo $VERSION | sed 's/-/./g')"
# Make perl-VMware-vSphere dependecy
wget -O - https://gitlab.labexposed.com/centreon-lab/perl-VMware-vSphere/-/raw/master/storage/VMware-vSphere-Perl-SDK-7.0.0-17698549.x86_64.tar.gz | tar zxvf -
mv vmware-vsphere-cli-distrib vmware-vsphere-cli
tar czvf vmware-vsphere-cli-7.0.0.tar.gz vmware-vsphere-cli
cd vmware-vsphere-cli
git clone https://github.com/centreon-lab/perl-vmware-debian debian
debmake -f "${AUTHOR}" -e "${AUTHOR_EMAIL}" -u "7.0.0" -y -r "${DISTRIB}"
debuild-pbuilder
cd ..
cp -rv /src/centreon-vmware /build/
mv -v /build/centreon-vmware /build/centreon-plugin-virtualization-vmware-daemon
(cd /build && tar czvpf - centreon-plugin-virtualization-vmware-daemon) | dd of=centreon-plugin-virtualization-vmware-daemon-$VERSION.tar.gz
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 "$DISTRIB"
debuild-pbuilder
@ -36,4 +45,5 @@ if [ -d "$DISTRIB" ] ; then
fi
mkdir $DISTRIB
mv /build/*.deb $DISTRIB/
ls -lart /build/$DISTRIB
mv /build/$DISTRIB/*.deb /src