Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 178 lines (158 sloc) 5.639 kB
6548184 @till Make file executable (and add shebang).
till authored
1 #!/usr/bin/env php
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
2 <?php
6548184 @till Make file executable (and add shebang).
till authored
3 error_reporting(0); // E_STRICT mess
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
4 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
5
6 /**
7 * This is the package.xml generator for Services_Amazon_S3
8 *
9 * PHP version 5
10 *
11 * LICENSE:
12 *
36b5562 New release.
Michael Gauthier authored
13 * Copyright 2009-2011 silverorange
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
14 *
15 * Copyright (c) 2008-2009, Peytz & Co. A/S
36b5562 New release.
Michael Gauthier authored
16 * Copyright (c) 2009-2011, silverorange
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
17 *
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions
20 * are met:
21 *
514dedb Cleanups to file docblock in Services_Amazon_S3 package.xml generator.
Michael Gauthier authored
22 * * Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * * Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in
26 * the documentation and/or other materials provided with the distribution.
27 * * Neither the name of the PHP_LexerGenerator nor the names of its
28 * contributors may be used to endorse or promote products derived
29 * from this software without specific prior written permission.
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
30 *
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
32 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
33 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
34 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
35 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
36 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
37 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
38 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
39 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 *
43 * @category Services
44 * @package Services_Amazon_S3
45 * @author Michael Gauthier <mike@silverorange.com>
36b5562 New release.
Michael Gauthier authored
46 * @copyright 2009-2011 silverorange
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
47 * @license http://www.opensource.org/licenses/bsd-license.php BSD
6e8a80b PEAR coding standard fixes.
Michael Gauthier authored
48 * @version SVN: $Id$
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
49 * @link http://pear.php.net/package/Services_Amazon_S3
50 */
51
52 require_once 'PEAR/PackageFileManager2.php';
53 PEAR::setErrorHandling(PEAR_ERROR_DIE);
54
b10fbbe @till Update settings for 0.4.0.
till authored
55 $api_version = '0.4.0';
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
56 $api_state = 'alpha';
57
b10fbbe @till Update settings for 0.4.0.
till authored
58 $release_version = '0.4.0';
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
59 $release_state = 'alpha';
60 $release_notes =
b10fbbe @till Update settings for 0.4.0.
till authored
61 " Request #17131 Ability to fetch the logging information per bucket.\n";
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
62
63 $description =
64 "This package provides an object-oriented interface to the Amazon " .
65 "Simple Storage Service (S3). This package is based on the 2006-03-01 " .
66 "REST API.\n\n" .
67 "Features:\n\n" .
68 " 1. List, create and delete buckets, including buckets with location " .
69 " constraints (European buckets).\n" .
70 " 2. Create, read and delete objects including metadata.\n" .
71 " 3. List keys in a bucket using an SPL Iterator with support for " .
72 " paging, key prefixes and delimiters.\n" .
73 " 4. Manipulate access control lists for buckets and objects.\n" .
74 " 5. Specify the request style (virtualhost, cname, path style) and " .
75 " endpoint.\n" .
76 " 6. Get signed URLs to allow a trusted third party to access private " .
77 " files.\n" .
78 " 7. Access buckets and objects using PHP filesystem functions through " .
79 " a stream wrapper\n";
80
81 $package = new PEAR_PackageFileManager2();
82
83 $package->setOptions(
84 array(
6548184 @till Make file executable (and add shebang).
till authored
85 'filelistgenerator' => 'file',
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
86 'simpleoutput' => true,
87 'baseinstalldir' => '/',
88 'packagedirectory' => './',
89 'dir_roles' => array(
90 'Services' => 'php',
91 'Services/Amazon' => 'php',
92 'Services/Amazon/S3' => 'php',
00dabb2 @till Ensure 'README.md' is of type 'doc'.
till authored
93 'tests' => 'test',
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
94 ),
00dabb2 @till Ensure 'README.md' is of type 'doc'.
till authored
95 'exceptions' => array(
96 'README.md' => 'doc',
97 ),
98 'ignore' => array(
43d41ba @till Ignore releases.
till authored
99 '.gitignore',
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
100 'package.php',
101 '*.tgz'
102 )
103 )
104 );
105
106 $package->setPackage('Services_Amazon_S3');
107 $package->setSummary('PHP API for Amazon S3 (Simple Storage Service)');
108 $package->setDescription($description);
109 $package->setChannel('pear.php.net');
110 $package->setPackageType('php');
111 $package->setLicense(
112 'BSD',
113 'http://www.opensource.org/licenses/bsd-license.php'
114 );
115
116 $package->setNotes($release_notes);
117 $package->setReleaseVersion($release_version);
118 $package->setReleaseStability($release_state);
119 $package->setAPIVersion($api_version);
120 $package->setAPIStability($api_state);
121
122 $package->addMaintainer(
123 'lead',
124 'schmidt',
125 'Christian Schmidt',
126 'chsc@peytz.dk'
127 );
128
129 $package->addMaintainer(
130 'lead',
131 'gauthierm',
132 'Mike Gauthier',
133 'mike@silverorange.com'
134 );
135
136 $package->addReplacement(
109f0cb Add VIM folding, and clean up file and class docblocks.
Michael Gauthier authored
137 'Services/Amazon/S3.php,Services/Amazon/S3/*,Services/Amazon/S3/Resource/*',
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
138 'package-info',
109f0cb Add VIM folding, and clean up file and class docblocks.
Michael Gauthier authored
139 '@release-version@',
140 'version'
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
141 );
142
143 $package->setPhpDep('5.1.1');
144
145 $package->addPackageDepWithChannel(
146 'required',
147 'PEAR',
3511ae9 Set PEAR version dependency for PEAR_Exception.
Michael Gauthier authored
148 'pear.php.net',
149 '1.3.2'
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
150 );
151
152 $package->addPackageDepWithChannel(
153 'required',
154 'Crypt_HMAC2',
155 'pear.php.net',
156 '0.2.1'
157 );
158
159 $package->addPackageDepWithChannel(
160 'required',
161 'HTTP_Request2',
162 'pear.php.net',
27ef634 Update min-version of HTTP_Request2. Required for Req #15239 and Req …
Michael Gauthier authored
163 '0.5.1'
b0f2c25 Add package.xml generator script for Services_Amazon_S3.
Michael Gauthier authored
164 );
165
166 $package->addExtensionDep('required', 'spl');
167 $package->setPearInstallerDep('1.4.0a7');
168 $package->generateContents();
169
170 if ( isset($_GET['make'])
171 || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')
172 ) {
173 $package->writePackageFile();
174 } else {
175 $package->debugPackageFile();
176 }
177
Something went wrong with that request. Please try again.