debian/0000755000000000000000000000000012110474063007164 5ustar debian/rules0000755000000000000000000000035212110474063010244 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_install: dh_auto_install rename 's/\.pl//' $(TMP)/usr/bin/*.pl rename 's/\.pl//' $(TMP)/usr/share/man/man1/* debian/control0000644000000000000000000000247712110474063010601 0ustar Source: libvm-ec2-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: Olivier Sallou Build-Depends: debhelper (>= 8), perl Build-Depends-Indep: liburi-perl, libwww-perl, libxml-simple-perl, libstring-approx-perl Standards-Version: 3.9.4 Homepage: https://metacpan.org/release/VM-EC2/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libvm-ec2-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libvm-ec2-perl.git Package: libvm-ec2-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, liburi-perl, libwww-perl, libxml-simple-perl, libstring-approx-perl Recommends: libjson-perl Description: module providing controls on Amazon EC2 and Eucalyptus This is an interface to the 2012-12-01 version of the Amazon AWS API (http://aws.amazon.com/ec2). It was written provide access to the new tag and metadata interface that is not currently supported by Net::Amazon::EC2, as well as to provide developers with an extension mechanism for the API. This library will also support the Eucalyptus open source cloud (http://open.eucalyptus.com). . The main interface is the VM::EC2 object, which provides methods for interrogating the Amazon EC2, launching instances, and managing instance lifecycle. debian/README.source0000644000000000000000000000012312110474063011337 0ustar Man pages still have "can't break line" warnings in a large quantity, not patched. debian/source/0000755000000000000000000000000012110474063010464 5ustar debian/source/format0000644000000000000000000000001412110474063011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000254012110474063011037 0ustar libvm-ec2-perl (1.23-1) unstable; urgency=low * Team upload. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * New upstream release. * Refresh patches (offset). * Add libjson-perl to Recommends. * debian/copyright: add additional copyright holder for a bunch of files. * debian/control: update supported API in long description. -- gregor herrmann Mon, 18 Feb 2013 19:51:13 +0100 libvm-ec2-perl (1.20-1) unstable; urgency=low * New upstream release * debian/control: add new dependencies, remove perl depencency (implicit) -- Olivier Sallou Mon, 03 Dec 2012 09:44:07 +0100 libvm-ec2-perl (1.19-1) unstable; urgency=low * New upstream release -- Olivier Sallou Sat, 13 Oct 2012 11:08:26 +0200 libvm-ec2-perl (1.17-2) unstable; urgency=low [ Olivier Sallou ] * debian/control: set Perl group as maintainer Add missing Vcs tags [ gregor herrmann ] * Bump Standards-Version to 3.9.4 (no changes). -- Olivier Sallou Sat, 29 Sep 2012 13:09:54 +0200 libvm-ec2-perl (1.17-1) unstable; urgency=low * Initial Release (Closes: #686938). -- Olivier Sallou Fri, 7 Sep 2012 12:17:02 +0200 debian/libvm-ec2-perl.docs0000644000000000000000000000000712110474063012553 0ustar README debian/sync_to_snapshot.10000644000000000000000000000170212110474063012643 0ustar .TH sync_to_snapshot 1 "September 7, 2012" "version 1.0" "USER COMMANDS" .SH NAME sync_to_snapshot \- Rsync files to Amazon EC2 .SH SYNOPSIS .B sync_to_snapshot Rsync the indicated files and directories to Amazon EC2 and store in a named EBS snapshot. Snapshot will be incrementally updated if it already exists. The Version tag will be updated. .PP This will use the default EC2 endpoint URL unless environment variable EC2_URL is set. .PP .SH OPTIONS .TP snapshot Snapshot name (required) .TP access_key EC2 access key .TP secret_key EC2 secret key .TP image Server AMI ID (defaults to ami-ccf405a5, Ubuntu Maverick 32bit) .TP type Server type (defaults to m1.small) .TP username Username for logging into instance ("ubuntu") .TP filesystem Type of filesystem to create (bfs,cramfs,ext*,minix,ntfs,vfat,msdos). .PP Anything with a /sbin/mkfs.* executable on the server side will work. Defaults to ext4. .SH AUTHOR Man page: Olivier Sallou debian/compat0000644000000000000000000000000212110474063010362 0ustar 8 debian/libvm-ec2-perl.manpages0000644000000000000000000000003212110474063013414 0ustar debian/sync_to_snapshot.1 debian/patches/0000755000000000000000000000000012110474063010613 5ustar debian/patches/rename_binary_in_manpage.patch0000644000000000000000000000243312110474063016627 0ustar Description: binary is renamed withouth extension. This patch updates the man page to remove the extension. Subject: remove perl extension from man page Forwarded: not-needed Author: Olivier Sallou Reviewed-by: gregor herrmann Last-Update: 2013-02-18 --- a/bin/migrate-ebs-image.pl +++ b/bin/migrate-ebs-image.pl @@ -2,11 +2,11 @@ =head1 NAME -migrate-ebs-image.pl - Copy an EBS-backed Amazon Image from one region to another +migrate-ebs-image - Copy an EBS-backed Amazon Image from one region to another =head1 SYNOPSYS - % migrate-ebs-image.pl --from us-east-1 --to ap-southeast-1 ami-123456 + % migrate-ebs-image --from us-east-1 --to ap-southeast-1 ami-123456 =head1 DESCRIPTION @@ -51,7 +51,7 @@ block device mapping string in the same format as described for the command line program ec2-register: - migrate-ebs-image.pl -f us-east-1 -t ap-southeast-1 \ + migrate-ebs-image -f us-east-1 -t ap-southeast-1 \ -b /dev/sdy=ephemeral0 \ ami-123456 @@ -76,7 +76,7 @@ command line: % perl -MCPAN -e 'install VM::EC2' - % migrate-ebs-image.pl --from us-east-1 --to ap-southeast-1 ami-123456 + % migrate-ebs-image --from us-east-1 --to ap-southeast-1 ami-123456 =head1 IMPORTANT CAVEATS debian/patches/fix_man_pages.patch0000644000000000000000000001066012110474063014437 0ustar Description: upstream documentation contains error in format. Subject: fix pod and man page errors Bug: https://rt.cpan.org/Public/Bug/Display.html?id=81718 Forwarded: yes Author: Olivier Sallou Reviewed-by: gregor herrmann Last-Update: 2013-02-18 --- a/bin/migrate-ebs-image.pl +++ b/bin/migrate-ebs-image.pl @@ -2,7 +2,7 @@ =head1 NAME -migrate-ebs-image.pl Copy an EBS-backed Amazon Image from one region to another +migrate-ebs-image.pl - Copy an EBS-backed Amazon Image from one region to another =head1 SYNOPSYS --- a/lib/VM/EC2.pm +++ b/lib/VM/EC2.pm @@ -747,9 +747,13 @@ return $self->call('DescribeRegions',@params); } -=head2 @zones = $ec2->describe_availability_zones(@names) +=head2 describe_availability_zones(@names) -=head2 @zones = $ec2->describe_availability_zones(-zone_name=>\@names,-filter=>\%filters) +@zones = $ec2->describe_availability_zones(@names) + +=head2 describe_availability_zones(-zone_name=>\@names,-filter=>\%filters) + +@zones = $ec2->describe_availability_zones(-zone_name=>\@names,-filter=>\%filters) Describe availability zones and return a list of VM::EC2::AvailabilityZone objects. Call with no arguments to return @@ -2362,7 +2366,7 @@ =head2 $boolean = $ec2->enable_volume_io(-volume_id=>$volume_id) Given the ID of a volume whose I/O has been disabled (e.g. due to -hardware degradation), this method will reenable the I/O and return +hardware degradation), this method will re-enable the I/O and return true if successful. =cut @@ -3217,9 +3221,9 @@ return $self->call('DescribeReservedInstancesOfferings',@param); } -=head $id = $ec2->purchase_reserved_instances_offering($offering_id) +=head2 $id = $ec2->purchase_reserved_instances_offering($offering_id) -=head $id = $ec2->purchase_reserved_instances_offering(%args) +=head2 $id = $ec2->purchase_reserved_instances_offering(%args) Purchase one or more reserved instances based on an offering. @@ -3576,6 +3580,8 @@ return $self->call('RequestSpotInstances',@p); } +=back + =head2 @requests = $ec2->cancel_spot_instance_requests(@request_ids) This method cancels the pending requests. It does not terminate any --- a/lib/VM/EC2/VPC.pm +++ b/lib/VM/EC2/VPC.pm @@ -2,7 +2,7 @@ =head1 NAME -VM::EC2::VPC +VM::EC2::VPC - Manage EC2 VPC =head1 SYNOPSIS --- a/lib/VM/EC2/Security/Token.pm +++ b/lib/VM/EC2/Security/Token.pm @@ -59,7 +59,7 @@ expiry time between a few seconds and 36 hours. A VM::EC2::Security::Credentials object contained within the token -contains the temporary secret access key, acess key ID, and a session +contains the temporary secret access key, access key ID, and a session token string that unlocks the access key. The credentials object can be serialized into a form suitable for sending to a user via a secure channel, such as SSL or S/MIME e-mail, and unserialized at the --- a/lib/VM/EC2/NetworkInterface/PrivateIpAddress.pm +++ b/lib/VM/EC2/NetworkInterface/PrivateIpAddress.pm @@ -2,7 +2,7 @@ =head1 NAME -VM::EC2::NetworkInterface::PrivateIpAddress +VM::EC2::NetworkInterface::PrivateIpAddress - Manage EC2 private IP address =head1 SYNOPSIS --- a/lib/VM/EC2/Generic.pm +++ b/lib/VM/EC2/Generic.pm @@ -162,7 +162,6 @@ $vol->primary_id; -=back =head2 $xmlns = $object->xmlns --- a/lib/VM/EC2/Dispatch.pm +++ b/lib/VM/EC2/Dispatch.pm @@ -470,7 +470,9 @@ return $class->new($obj,$ec2,@{$parsed}{'xmlns','requestId'}); } -=head2 @objects = $dispatch->fetch_items($raw_xml,$ec2,$container_tag,$object_class,$nokey) +=head2 fetch_items($raw_xml,$ec2,$container_tag,$object_class,$nokey) + +@objects = $dispatch->fetch_items($raw_xml,$ec2,$container_tag,$object_class,$nokey) This is used for XML responses like this: --- a/lib/VM/EC2/Instance.pm +++ b/lib/VM/EC2/Instance.pm @@ -300,9 +300,13 @@ follow its progress by calling the returned image object's current_status() method. -=head2 $imageId = $instance->create_image($name [,$description]) +=head2 create_image($name [,$description]) -=head2 $imageId = $instance->create_image(-name=>$name,-description=>$description,-no_reboot=>$boolean) +$imageId = $instance->create_image($name [,$description]) + +=head2 create_image(name,description,no_reboot) + +$imageId = $instance->create_image(-name=>$name,-description=>$description,-no_reboot=>$boolean) Create an image from this instance and return a VM::EC2::Image object. The instance must be in the "stopped" or "running" state. In the debian/patches/series0000644000000000000000000000006312110474063012027 0ustar fix_man_pages.patch rename_binary_in_manpage.patch debian/copyright0000644000000000000000000002562412110474063011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/VM-EC2/ Upstream-Name: VM-EC2 Upstream-Contact: Lincoln Stein Files: * Copyright: 2011-2012, Ontario Institute for Cancer Research License: Artistic-2.0 or GPL-1+ Files: lib/VM/EC2/ELB.pm lib/VM/EC2/ELB/BackendServerDescription.pm lib/VM/EC2/ELB/HealthCheck.pm lib/VM/EC2/ELB/InstanceState.pm lib/VM/EC2/ELB/Listener.pm lib/VM/EC2/ELB/ListenerDescription.pm lib/VM/EC2/ELB/Policies.pm lib/VM/EC2/ELB/Policies/AppCookieStickinessPolicy.pm lib/VM/EC2/ELB/Policies/LBCookieStickinessPolicy.pm lib/VM/EC2/ELB/PolicyAttribute.pm lib/VM/EC2/ELB/PolicyAttributeType.pm lib/VM/EC2/ELB/PolicyDescription.pm lib/VM/EC2/ELB/PolicyTypeDescription.pm lib/VM/EC2/Spot/Status.pm lib/VM/EC2/VPC/CustomerGateway.pm lib/VM/EC2/VPC/NetworkAcl.pm lib/VM/EC2/VPC/NetworkAcl/Association.pm lib/VM/EC2/VPC/NetworkAcl/Entry.pm lib/VM/EC2/VPC/VpnConnection.pm lib/VM/EC2/VPC/VpnGateway.pm lib/VM/EC2/VPC/VpnTunnelTelemetry.pm Copyright: 2012, Loyalty Methods, Inc. License: Artistic-2.0 or GPL-1+ Files: debian/* Copyright: 2012, Olivier Sallou License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: Artistic-2.0 The Artistic License 2.0 . Copyright (c) 2000-2006, The Perl Foundation. . Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. . Preamble . This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. . You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. . Definitions . "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. . "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. . "You" and "your" means any person who would like to copy, distribute, or modify the Package. . "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. . "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. . "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. . "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. . "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. . "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. . "Source" form means the source code, documentation source, and configuration files for the Package. . "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. . . Permission for Use and Modification Without Distribution . (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. . . Permissions for Redistribution of the Standard Version . (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. . (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. . . Distribution of Modified Versions of the Package as Source . (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: . (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. . (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. . (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under . (i) the Original License or . (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. . . Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source . (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. . (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. . . Aggregating or Linking the Package . (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. . (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. . . Items That are Not Considered Part of a Modified Version . (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. . General Provisions . (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. . (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. . (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. . (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. . (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000015212110474063010213 0ustar version=3 https://metacpan.org/release/VM-EC2/ .*/VM-EC2-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$