ports/158753: [new port] net/vmware-vsphere-cli

Ryan Steinmetz rpsfa at rit.edu
Sat Jul 9 22:00:22 UTC 2011


>Number:         158753
>Category:       ports
>Synopsis:       [new port] net/vmware-vsphere-cli
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 09 22:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        8.2-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
-New port net/vmware-vsphere-cli

The vSphere Command-Line Interface (vSphere CLI) command set allows you to 
run common system administration commands against ESX/ESXi systems from any 
machine with network access to those systems. You can also run most vSphere 
CLI commands against a vCenter Server system and target any ESX/ESXi system 
that vCenter Server system manages.

vSphere CLI commands are especially useful for ESXi hosts because ESXi does 
not include a service console.

This port can be used in conjunction with op5's check_esx3 script to use nagios to monitor ESX(i) hosts (http://www.op5.com/support/resources/list-of-plugins/?plugins=check_esx3) which I will be creating a port for shortly.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	vmware-vsphere-cli/
#	vmware-vsphere-cli/Makefile
#	vmware-vsphere-cli/pkg-descr
#	vmware-vsphere-cli/pkg-plist
#	vmware-vsphere-cli/distinfo
#	vmware-vsphere-cli/files
#	vmware-vsphere-cli/files/patch-Makefile.PL
#
echo c - vmware-vsphere-cli/
mkdir -p vmware-vsphere-cli/ > /dev/null 2>&1
echo x - vmware-vsphere-cli/Makefile
sed 's/^X//' >vmware-vsphere-cli/Makefile << '8258588ce18ccc67e5e3d2f32e0f8e24'
X# New ports collection makefile for:	vmware-vsphere-cli
X# Date created:				2011-07-07
X# Whom:					rpsfa at rit.edu
X#
X# $FreeBSD$
X#
X
XPORTNAME=		vmware
XPORTVERSION=		4.1.0
XCATEGORIES=		net perl5
XMASTER_SITES=		#http://communities.vmware.com/community/vmtn/developer/downloads
XPKGNAMESUFFIX=		-vsphere-cli
XDISTNAME=		VMware-vSphere-Perl-SDK-${PORTVERSION}-${DISTREL}.i386
X
XMAINTAINER=		rpsfa at rit.edu
XCOMMENT=		VMware vSphere Perl CLI
X
XBUILD_DEPENDS=		${SITE_PERL}/${PERL_ARCH}/Class/MethodMaker.pm:${PORTSDIR}/devel/p5-Class-MethodMaker \
X			${SITE_PERL}/${PERL_ARCH}/Crypt/SSLeay.pm:${PORTSDIR}/security/p5-Crypt-SSLeay \
X			${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
X			${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
X			${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite
XRUN_DEPENDS+=		${BUILD_DEPENDS}
X
XPERL_CONFIGURE=		yes
XRESTRICTED=		Downloading requires acceptance of license agreement
XNO_CDROM=		Distribution requires acceptance of license agreement
XNO_PACKAGE=		Distribution requires acceptance of license agreement
X
XMAN3=			VMware::VIM25Runtime.3 VMware::VIM2Stub.3 VMware::VIM2Runtime.3 \
X			VMware::VICommon.3 VMware::VILib.3 VMware::VIM25Stub.3
X
XDISTREL=		254719
X
X.include <bsd.port.pre.mk>
X
X.if (!exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}))
XDISTFILE_INSTRUCTIONS=\n\
XDue to licensing restrictions, certain files must be fetched manually.\n\n\
XPlease visit http://communities.vmware.com/community/vmtn/developer/forums/vsphere_sdk_perl\n\
Xand choose Download.  Then, login using a VMware account and accept the license agreement.\n\
XChoose the download for vSphere SDK for Perl - 32-bit Linux Installer (even if you are not on i386)\n\n\
XAfter the download has completed, please place ${DISTNAME}${EXTRACT_SUFX} in\n\
X${DISTDIR}, then restart the build.\n\n
X.endif
X
Xpre-fetch:
X.if defined(DISTFILE_INSTRUCTIONS)
X	@${PRINTF} "${DISTFILE_INSTRUCTIONS}"
X	@exit 1
X.endif
X
Xpost-extract:
X	@${MV} ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-distrib ${WRKSRC}
X	@${RM} ${WRKSRC}/vmware-install.pl
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g' ${WRKSRC}/Makefile.PL
X
Xpost-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/vicfg-* ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/svmotion ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/vmware-cmd ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/vmkfstools ${PREFIX}/bin
X
X.include <bsd.port.post.mk>
8258588ce18ccc67e5e3d2f32e0f8e24
echo x - vmware-vsphere-cli/pkg-descr
sed 's/^X//' >vmware-vsphere-cli/pkg-descr << 'c1ba7ec57090afb5827af731a3ffc2e5'
XThe vSphere Command-Line Interface (vSphere CLI) command set allows you to 
Xrun common system administration commands against ESX/ESXi systems from any 
Xmachine with network access to those systems. You can also run most vSphere 
XCLI commands against a vCenter Server system and target any ESX/ESXi system 
Xthat vCenter Server system manages.
X
XvSphere CLI commands are especially useful for ESXi hosts because ESXi does 
Xnot include a service console.
X
XWWW: http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vsphere_4/
c1ba7ec57090afb5827af731a3ffc2e5
echo x - vmware-vsphere-cli/pkg-plist
sed 's/^X//' >vmware-vsphere-cli/pkg-plist << 'ee544db0a59ed34c4245570fa1311026'
Xbin/vicfg-advcfg
Xbin/vicfg-authconfig
Xbin/vicfg-cfgbackup
Xbin/vicfg-dns
Xbin/vicfg-dumppart
Xbin/vicfg-hostops
Xbin/vicfg-ipsec
Xbin/vicfg-iscsi
Xbin/vicfg-module
Xbin/vicfg-mpath
Xbin/vicfg-mpath35
Xbin/vicfg-nas
Xbin/vicfg-nics
Xbin/vicfg-ntp
Xbin/vicfg-rescan
Xbin/vicfg-route
Xbin/vicfg-scsidevs
Xbin/vicfg-snmp
Xbin/vicfg-syslog
Xbin/vicfg-user
Xbin/vicfg-vmknic
Xbin/vicfg-volume
Xbin/vicfg-vswitch
Xbin/svmotion
Xbin/vmware-cmd
Xbin/vmkfstools
X%%SITE_PERL%%/VMware/VIM25Runtime.pm
X%%SITE_PERL%%/VMware/VICommon.pm
X%%SITE_PERL%%/VMware/VIM2Runtime.pm
X%%SITE_PERL%%/VMware/VIMRuntime.pm
X%%SITE_PERL%%/VMware/VIM2Stub.pm
X%%SITE_PERL%%/VMware/VIExt.pm
X%%SITE_PERL%%/VMware/VILib.pm
X%%SITE_PERL%%/VMware/VIM25Stub.pm
X%%SITE_PERL%%/VMware/VIRuntime.pm
X%%SITE_PERL%%/VMware/VICredStore.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/VIPerlToolkit/.packlist
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/VIPerlToolkit
X at dirrmtry %%SITE_PERL%%/VMware
X%%EXAMPLESDIR%%/AppUtil/HostUtil.pm
X%%EXAMPLESDIR%%/AppUtil/VMUtil.pm
X%%EXAMPLESDIR%%/AppUtil/XMLInputUtil.pm
X%%EXAMPLESDIR%%/general/credstore_admin.pl
X%%EXAMPLESDIR%%/general/connect.pl
X%%EXAMPLESDIR%%/general/vidiscovery.pl
X%%EXAMPLESDIR%%/general/viversion.pl
X%%EXAMPLESDIR%%/general/extractlog.pl
X%%EXAMPLESDIR%%/general/fileaccess.pl
X%%EXAMPLESDIR%%/host/dsbrowse.pl
X%%EXAMPLESDIR%%/host/hostdiagnostics.pl
X%%EXAMPLESDIR%%/host/hostevacuate.pl
X%%EXAMPLESDIR%%/host/hostinfo.pl
X%%EXAMPLESDIR%%/host/hostops.pl
X%%EXAMPLESDIR%%/performance/viperformance.pl
X%%EXAMPLESDIR%%/sampledata/guestinfo.xml
X%%EXAMPLESDIR%%/sampledata/vmclone.xml
X%%EXAMPLESDIR%%/sampledata/vmcreate.xml
X%%EXAMPLESDIR%%/sampledata/vmreconfig.xml
X%%EXAMPLESDIR%%/schema/guestinfo.xsd
X%%EXAMPLESDIR%%/schema/vmclone.xsd
X%%EXAMPLESDIR%%/schema/vmcreate.xsd
X%%EXAMPLESDIR%%/schema/vmreconfig.xsd
X%%EXAMPLESDIR%%/session/load_session.pl
X%%EXAMPLESDIR%%/session/save_session.pl
X%%EXAMPLESDIR%%/vm/guestinfo.pl
X%%EXAMPLESDIR%%/vm/sharesmanager.pl
X%%EXAMPLESDIR%%/vm/snapshotmanager.pl
X%%EXAMPLESDIR%%/vm/vdiskcreate.pl
X%%EXAMPLESDIR%%/vm/vmclone.pl
X%%EXAMPLESDIR%%/vm/vmcontrol.pl
X%%EXAMPLESDIR%%/vm/vmcreate.pl
X%%EXAMPLESDIR%%/vm/vminfo.pl
X%%EXAMPLESDIR%%/vm/vmmigrate.pl
X%%EXAMPLESDIR%%/vm/vmreconfig.pl
X%%EXAMPLESDIR%%/vm/vmregister.pl
X%%EXAMPLESDIR%%/vm/vmsnapshot.pl
X%%EXAMPLESDIR%%/vm/vmtemplate.pl
X at dirrmtry %%EXAMPLESDIR%%/vm
X at dirrmtry %%EXAMPLESDIR%%/session
X at dirrmtry %%EXAMPLESDIR%%/schema
X at dirrmtry %%EXAMPLESDIR%%/sampledata
X at dirrmtry %%EXAMPLESDIR%%/performance
X at dirrmtry %%EXAMPLESDIR%%/host
X at dirrmtry %%EXAMPLESDIR%%/general
X at dirrmtry %%EXAMPLESDIR%%/AppUtil
X at dirrmtry %%EXAMPLESDIR%%
ee544db0a59ed34c4245570fa1311026
echo x - vmware-vsphere-cli/distinfo
sed 's/^X//' >vmware-vsphere-cli/distinfo << '3c0a2479ef668dc3768fc09d5d1df988'
XSHA256 (VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz) = 261fa3651e8bbfb3da030b49434aaff6891779ca66af0273d434575b47d7ea7c
XSIZE (VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz) = 24109045
3c0a2479ef668dc3768fc09d5d1df988
echo c - vmware-vsphere-cli/files
mkdir -p vmware-vsphere-cli/files > /dev/null 2>&1
echo x - vmware-vsphere-cli/files/patch-Makefile.PL
sed 's/^X//' >vmware-vsphere-cli/files/patch-Makefile.PL << '1876a5d4b82b566ecc9575d9ed7a707f'
X--- ./Makefile.PL.orig	2010-04-28 22:04:40.000000000 +0000
X+++ ./Makefile.PL	2011-07-09 03:37:35.000000000 +0000
X@@ -45,36 +45,16 @@
X   }
X }, 'lib';
X 
X-#
X-# Copy WSMan tree to ./WSMan
X-#
X-find sub {
X-  if ($File::Find::name =~ m(^lib/WSMan/share/WSMan)) {
X-    (my $path = $File::Find::name) =~ s#^lib/WSMan/share/WSMan(/)?##;
X-    my $dest = "WSMan/$path";
X-    if (!-d) {
X-      copy($_ => "$root/$dest") or die "couldn't copy: $!\n";
X-      chmod 0555, "$root/$dest" or die "couldn't chmod: $!\n";
X-    } else {
X-      unless (-d "$root/$dest") {
X-        mkpath "$root/$dest" or die "couldn't mkpath: $!\n";
X-      chmod 0755, "$root/$dest" or die "couldn't chmod: $!\n"
X-      }
X-    }
X-  }
X-}, 'lib';
X-
X WriteMakefile(
X    NAME               => 'VIPerlToolkit',
X    VERSION_FROM       => 'lib/VMware/share/VMware/VIRuntime.pm',
X    AUTHOR             => 'VMware',
X-   PMLIBDIRS          => [ 'VMware', 'WSMan' ],
X+   PMLIBDIRS          => [ 'VMware' ],
X    PREREQ_PM         =>  {'Crypt::SSLeay' => '0.51',
X                           'Data::Dumper' => '2.102',
X                           'Class::MethodMaker' => '2.08',
X                           'XML::LibXML' => '1.58',
X                           'LWP' => '5.8.05',
X-                          'UUID' => '0.03',
X                           'SOAP::Lite' => '0.67'},
X    #
X    # These macros put things in the usual spot if you are running
X@@ -87,14 +67,7 @@
X      DEST_VMWARE_APPS => (
X        $Config{perlpath} eq '/usr/bin/perl' ? 
X          '/usr/lib/vmware-viperl/apps' :
X-         '$(INSTALLSITESCRIPT)/apps'
X-     ),
X-     # vmware docs
X-     INST_VMWARE_DOC => 'doc',
X-     DEST_VMWARE_DOC => (
X-       $Config{perlpath} eq '/usr/bin/perl' ? 
X-         '/usr/share/doc/vmware-viperl/doc' :
X-         '$(SITEPREFIX)/doc'
X+         '%%EXAMPLESDIR%%'
X      ),
X    },
X );
1876a5d4b82b566ecc9575d9ed7a707f
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list