mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
Add build of perl-vmware-vsphere dependency
This commit is contained in:
parent
ededb07c70
commit
a1e58ad37b
@ -14,5 +14,6 @@ Depends: ${misc:Depends},
|
|||||||
libjson-xs-perl,
|
libjson-xs-perl,
|
||||||
liblwp-protocol-https-perl,
|
liblwp-protocol-https-perl,
|
||||||
libzmq-constants-perl,
|
libzmq-constants-perl,
|
||||||
zmq-libzmq4-perl
|
zmq-libzmq4-perl,
|
||||||
|
perl-vmware-vsphere
|
||||||
Description: Perl daemon to monitor VSphere Infrastructure
|
Description: Perl daemon to monitor VSphere Infrastructure
|
||||||
|
@ -20,12 +20,21 @@ cd /build
|
|||||||
# fix version to debian format accept
|
# fix version to debian format accept
|
||||||
VERSION="$(echo $VERSION | sed 's/-/./g')"
|
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/
|
cp -rv /src/centreon-vmware /build/
|
||||||
mv -v /build/centreon-vmware /build/centreon-plugin-virtualization-vmware-daemon
|
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
|
(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/
|
cp -rv /src/centreon-vmware/ci/debian /build/centreon-plugin-virtualization-vmware-daemon/
|
||||||
|
|
||||||
ls -lart
|
|
||||||
cd /build/centreon-plugin-virtualization-vmware-daemon
|
cd /build/centreon-plugin-virtualization-vmware-daemon
|
||||||
debmake -f "${AUTHOR}" -e "${AUTHOR_EMAIL}" -u "$VERSION" -y -r "$DISTRIB"
|
debmake -f "${AUTHOR}" -e "${AUTHOR_EMAIL}" -u "$VERSION" -y -r "$DISTRIB"
|
||||||
debuild-pbuilder
|
debuild-pbuilder
|
||||||
@ -36,4 +45,5 @@ if [ -d "$DISTRIB" ] ; then
|
|||||||
fi
|
fi
|
||||||
mkdir $DISTRIB
|
mkdir $DISTRIB
|
||||||
mv /build/*.deb $DISTRIB/
|
mv /build/*.deb $DISTRIB/
|
||||||
|
ls -lart /build/$DISTRIB
|
||||||
mv /build/$DISTRIB/*.deb /src
|
mv /build/$DISTRIB/*.deb /src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user