2007-03-24 20:39:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
set_time_limit(0);
|
|
|
|
|
|
|
|
require_once 'PEAR/PackageFileManager2.php';
|
|
|
|
PEAR::setErrorHandling(PEAR_ERROR_PRINT);
|
|
|
|
$pkg = new PEAR_PackageFileManager2;
|
|
|
|
|
|
|
|
$pkg->setOptions(
|
|
|
|
array(
|
|
|
|
'baseinstalldir' => '/',
|
|
|
|
'packagefile' => 'package2.xml',
|
2007-11-06 16:37:25 +00:00
|
|
|
'packagedirectory' => realpath(dirname(__FILE__) . '/library'),
|
2007-03-24 20:39:00 +00:00
|
|
|
'filelistgenerator' => 'file',
|
|
|
|
'include' => array('*'),
|
2007-04-29 04:06:40 +00:00
|
|
|
'dir_roles' => array('/' => 'php'), // hack to put .ser in the right place
|
2007-11-06 16:37:25 +00:00
|
|
|
'ignore' => array('HTMLPurifier.auto.php', 'HTMLPurifier.standalone.php', 'standalone/'),
|
2007-03-24 20:39:00 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2007-12-14 04:12:06 +00:00
|
|
|
$pkg->setPackage('HTMLPurifier3');
|
2007-03-24 20:39:00 +00:00
|
|
|
$pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
|
|
|
|
$pkg->setSummary('Standards-compliant HTML filter');
|
|
|
|
$pkg->setDescription(
|
|
|
|
'HTML Purifier is an HTML filter that will remove all malicious code
|
|
|
|
(better known as XSS) with a thoroughly audited, secure yet permissive
|
|
|
|
whitelist and will also make sure your documents are standards
|
|
|
|
compliant.'
|
|
|
|
);
|
|
|
|
|
2007-04-22 02:56:05 +00:00
|
|
|
$pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
|
2007-03-24 20:39:00 +00:00
|
|
|
|
2007-04-02 03:58:59 +00:00
|
|
|
$version = file_get_contents('VERSION');
|
|
|
|
$api_version = substr($version, 0, strrpos($version, '.'));
|
|
|
|
|
2007-04-22 02:56:05 +00:00
|
|
|
$pkg->setChannel('htmlpurifier.org');
|
2007-04-02 03:58:59 +00:00
|
|
|
$pkg->setAPIVersion($api_version);
|
2007-03-24 20:39:00 +00:00
|
|
|
$pkg->setAPIStability('stable');
|
2007-04-02 03:58:59 +00:00
|
|
|
$pkg->setReleaseVersion($version);
|
2007-03-24 20:39:00 +00:00
|
|
|
$pkg->setReleaseStability('stable');
|
|
|
|
|
|
|
|
$pkg->addRelease();
|
|
|
|
|
2007-04-02 03:58:59 +00:00
|
|
|
$pkg->setNotes(file_get_contents('WHATSNEW'));
|
2007-03-24 20:39:00 +00:00
|
|
|
$pkg->setPackageType('php');
|
|
|
|
|
2007-12-14 04:12:06 +00:00
|
|
|
$pkg->setPhpDep('5.0.0');
|
2007-03-24 20:39:00 +00:00
|
|
|
$pkg->setPearinstallerDep('1.4.3');
|
|
|
|
|
|
|
|
$pkg->generateContents();
|
|
|
|
|
|
|
|
$compat =& $pkg->exportCompatiblePackageFile1();
|
|
|
|
$compat->writePackageFile();
|
|
|
|
$pkg->writePackageFile();
|
|
|
|
|