-
Notifications
You must be signed in to change notification settings - Fork 64
/
package.php
52 lines (45 loc) · 1.94 KB
/
package.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
date_default_timezone_set('America/Toronto');
ini_set("include_path", ".:/usr/local/php/lib/php/:/usr/share/pear/");
require_once 'PEAR/PackageFileManager/File.php';
require_once 'PEAR/PackageFileManager2.php';
$pkg = new PEAR_PackageFileManager2;
$e = $pkg->setOptions([
'baseinstalldir' => '/',
'packagedirectory' => '/u/devel/net_dns/Net_DNS2/',
'ignore' => [
'package.php',
'package.xml',
'TODO',
'composer.json'
],
'installexceptions' => [ 'phpdoc' => '/*' ],
'dir_roles' => [
'tests' => 'test'
],
'exceptions' => [
'LICENSE' => 'doc',
'README.md' => 'doc'
]
]);
$pkg->setPackage('Net_DNS2');
$pkg->setSummary('PHP Resolver library used to communicate with a DNS server.');
$pkg->setDescription("Provides (roughly) the same functionality as Net_DNS, but using modern PHP objects, exceptions for error handling, better sockets support.\n\nThis release is (in most cases) 2x - 10x faster than Net_DNS, as well as includes more RR's (including DNSSEC RR's), and improved sockets and streams support.");
$pkg->setChannel('pear.php.net');
$pkg->setAPIVersion('1.5.3');
$pkg->setReleaseVersion('1.5.3');
$pkg->setReleaseStability('stable');
$pkg->setAPIStability('stable');
$pkg->setNotes(
"- added a new PHPUnit file to test the file cache.\n" .
"- PHP 8 issue: shmop_close() is deprecated is PHP 8.\n" .
"- PHP 8 issue: fread() throws an exception now if you set the length to 0; so I have to check the filesize() first before reading.\n"
);
$pkg->setPackageType('php');
$pkg->addRelease();
$pkg->setPhpDep('5.4');
$pkg->setPearinstallerDep('1.4.0a12');
$pkg->addMaintainer('lead', 'mikepultz', 'Mike Pultz', '[email protected]');
$pkg->setLicense('BSD License', 'http://www.opensource.org/licenses/bsd-license.php');
$pkg->generateContents();
$pkg->writePackageFile();