setOptions( array( 'baseinstalldir' => '/', 'packagefile' => 'package2.xml', 'packagedirectory' => dirname(__FILE__) . '/library', 'filelistgenerator' => 'file', 'include' => array('*'), 'ignore' => array('HTMLPurifier.auto.php'), ) ); $pkg->setPackage('HTMLPurifier'); $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.' ); $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes'); $version = file_get_contents('VERSION'); $api_version = substr($version, 0, strrpos($version, '.')); $pkg->setChannel('htmlpurifier.org'); $pkg->setAPIVersion($api_version); $pkg->setAPIStability('stable'); $pkg->setReleaseVersion($version); $pkg->setReleaseStability('stable'); $pkg->addRelease(); $pkg->setNotes(file_get_contents('WHATSNEW')); $pkg->setPackageType('php'); $pkg->setPhpDep('4.3.9'); $pkg->setPearinstallerDep('1.4.3'); $pkg->generateContents(); $compat =& $pkg->exportCompatiblePackageFile1(); $compat->writePackageFile(); $pkg->writePackageFile(); ?>