setOptions([ 'baseinstalldir' => '/', 'packagedirectory' => '/u/devel/net_dns/Net_DNS2_1.5.x/', '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.5'); $pkg->setReleaseVersion('1.5.5'); $pkg->setReleaseStability('stable'); $pkg->setAPIStability('stable'); $pkg->setNotes( "- increased minimum PHP requirement to v7.1\n" . "- fixed the PHP 8.4 deprecation notices - #154.\n" . "- fixed the infinite loop issue related to the v1.5.4 changes - #146\n" . "- modified the TCP write process to avoid possible TCP segmentation with the length prefix.\n" . "- added support for microsecond level timeout values by passing a float value to the timeout option instead of a whole integer.\n" . "- updated the PEAR package.php file; the last version was missing some new files.\n" ); $pkg->setPackageType('php'); $pkg->addRelease(); $pkg->setPhpDep('7.1'); $pkg->setPearinstallerDep('1.4.0a12'); $pkg->addMaintainer('lead', 'mikepultz', 'Mike Pultz', 'mike@mikepultz.com'); $pkg->setLicense('BSD License', 'https://opensource.org/license/bsd-3-clause/'); $pkg->generateContents(); $pkg->writePackageFile();