comparison vendor/pear/crypt_gpg/package.php @ 0:1e000243b222

vanilla 1.3.3 distro, I hope
author Charlie Root
date Thu, 04 Jan 2018 15:50:29 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1e000243b222
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * This is the package.xml generator for Crypt_GPG
7 *
8 * PHP version 5
9 *
10 * LICENSE:
11 *
12 * This library is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License as
14 * published by the Free Software Foundation; either version 2.1 of the
15 * License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, see
24 * <http://www.gnu.org/licenses/>
25 *
26 * @category Encryption
27 * @package Crypt_GPG
28 * @author Michael Gauthier <mike@silverorange.com>
29 * @author Nathan Fredrikson <nathan@silverorange.com>
30 * @copyright 2005-2013 silverorange
31 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
32 * @link http://pear.php.net/package/Crypt_GPG
33 */
34
35 require_once 'PEAR/PackageFileManager2.php';
36 PEAR::setErrorHandling(PEAR_ERROR_DIE);
37
38 $apiVersion = '1.6.2';
39 $apiState = 'stable';
40
41 $releaseVersion = '1.6.2';
42 $releaseState = 'stable';
43 $releaseNotes =
44 "Added options to configure digest/cipher algorithms.";
45
46 $description =
47 "This package provides an object oriented interface to GNU Privacy " .
48 "Guard (GnuPG). It requires the GnuPG executable to be on the system.\n\n" .
49 "Though GnuPG can support symmetric-key cryptography, this package is " .
50 "intended only to facilitate public-key cryptography.\n\n" .
51 "This package requires PHP version 5.4.8 or greater.";
52
53 $package = new PEAR_PackageFileManager2();
54
55 $package->setOptions(
56 array(
57 'filelistgenerator' => 'file',
58 'simpleoutput' => true,
59 'baseinstalldir' => '/',
60 'packagedirectory' => './',
61 'dir_roles' => array(
62 'Crypt' => 'php',
63 'Crypt/GPG' => 'php',
64 'tests' => 'test',
65 'data' => 'data'
66 ),
67 'exceptions' => array(
68 'LICENSE' => 'doc',
69 'README.md' => 'doc',
70 'scripts/crypt-gpg-pinentry' => 'script'
71 ),
72 'ignore' => array(
73 'tests/config.php',
74 'tools/',
75 'package.php',
76 'composer.json',
77 '*.tgz'
78 ),
79 'installexceptions' => array(
80 'scripts/crypt-gpg-pinentry' => '/'
81 )
82 )
83 );
84
85 $package->setPackage('Crypt_GPG');
86 $package->setSummary('GNU Privacy Guard (GnuPG)');
87 $package->setDescription($description);
88 $package->setChannel('pear.php.net');
89 $package->setPackageType('php');
90 $package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.html');
91
92 $package->setNotes($releaseNotes);
93 $package->setReleaseVersion($releaseVersion);
94 $package->setReleaseStability($releaseState);
95 $package->setAPIVersion($apiVersion);
96 $package->setAPIStability($apiState);
97
98 $package->addMaintainer(
99 'lead',
100 'gauthierm',
101 'Mike Gauthier',
102 'mike@silverorange.com'
103 );
104
105 $package->addMaintainer(
106 'lead',
107 'nrf',
108 'Nathan Fredrickson',
109 'nathan@silverorange.com'
110 );
111
112 $package->addMaintainer(
113 'lead',
114 'alec',
115 'Aleksander Machniak',
116 'alec@alec.pl'
117 );
118
119 $package->addReplacement(
120 'data/pinentry-cli.xml',
121 'package-info',
122 '@package-version@',
123 'version'
124 );
125
126 $package->addReplacement(
127 'Crypt/GPG/PinEntry.php',
128 'package-info',
129 '@package-name@',
130 'name'
131 );
132
133 $package->addReplacement(
134 'Crypt/GPG/PinEntry.php',
135 'pear-config',
136 '@data-dir@',
137 'data_dir'
138 );
139
140 $package->addReplacement(
141 'Crypt/GPG/Engine.php',
142 'pear-config',
143 '@bin-dir@',
144 'bin_dir'
145 );
146
147 $package->addReplacement(
148 'scripts/crypt-gpg-pinentry',
149 'pear-config',
150 '@php-dir@',
151 'php_dir'
152 );
153
154 $package->setPhpDep('5.4.8');
155 $package->addExtensionDep('optional', 'posix');
156 $package->addExtensionDep('required', 'mbstring');
157 $package->addOsDep('windows', true);
158 $package->setPearinstallerDep('1.4.0');
159 $package->addPackageDepWithChannel(
160 'required',
161 'Console_CommandLine',
162 'pear.php.net',
163 '1.1.10'
164 );
165
166 $package->generateContents();
167
168 $package->addRelease();
169 $package->addInstallAs(
170 'scripts/crypt-gpg-pinentry',
171 'crypt-gpg-pinentry'
172 );
173
174 if ( isset($_GET['make'])
175 || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')
176 ) {
177 $package->writePackageFile();
178 } else {
179 $package->debugPackageFile();
180 }
181
182 ?>