From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 9 22:00:22 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D86B106566B for ; Sat, 9 Jul 2011 22:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D4C5F8FC19 for ; Sat, 9 Jul 2011 22:00:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p69M0L2G093303 for ; Sat, 9 Jul 2011 22:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p69M0LBx093302; Sat, 9 Jul 2011 22:00:21 GMT (envelope-from gnats) Resent-Date: Sat, 9 Jul 2011 22:00:21 GMT Resent-Message-Id: <201107092200.p69M0LBx093302@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ryan Steinmetz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E45E71065672 for ; Sat, 9 Jul 2011 21:53:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D34538FC12 for ; Sat, 9 Jul 2011 21:53:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p69LrHVi093845 for ; Sat, 9 Jul 2011 21:53:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p69LrHfm093840; Sat, 9 Jul 2011 21:53:17 GMT (envelope-from nobody) Message-Id: <201107092153.p69LrHfm093840@red.freebsd.org> Date: Sat, 9 Jul 2011 21:53:17 GMT From: Ryan Steinmetz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/158753: [new port] net/vmware-vsphere-cli X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 22:00:22 -0000 >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@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@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 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 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@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/VIPerlToolkit X@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@dirrmtry %%EXAMPLESDIR%%/vm X@dirrmtry %%EXAMPLESDIR%%/session X@dirrmtry %%EXAMPLESDIR%%/schema X@dirrmtry %%EXAMPLESDIR%%/sampledata X@dirrmtry %%EXAMPLESDIR%%/performance X@dirrmtry %%EXAMPLESDIR%%/host X@dirrmtry %%EXAMPLESDIR%%/general X@dirrmtry %%EXAMPLESDIR%%/AppUtil X@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: