HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/package.php
Go to the documentation of this file.
00001 <?php
00002 
00003 set_time_limit(0);
00004 
00005 require_once 'PEAR/PackageFileManager2.php';
00006 require_once 'PEAR/PackageFileManager/File.php';
00007 PEAR::setErrorHandling(PEAR_ERROR_PRINT);
00008 $pkg = new PEAR_PackageFileManager2;
00009 
00010 $pkg->setOptions(
00011     array(
00012         'baseinstalldir' => '/',
00013         'packagefile' => 'package.xml',
00014         'packagedirectory' => realpath(dirname(__FILE__) . '/library'),
00015         'filelistgenerator' => 'file',
00016         'include' => array('*'),
00017         'dir_roles' => array('/' => 'php'), // hack to put *.ser files in the right place
00018         'ignore' => array(
00019             'HTMLPurifier.standalone.php',
00020             'HTMLPurifier.path.php',
00021             '*.tar.gz',
00022             '*.tgz',
00023             'standalone/'
00024         ),
00025     )
00026 );
00027 
00028 $pkg->setPackage('HTMLPurifier');
00029 $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
00030 $pkg->setSummary('Standards-compliant HTML filter');
00031 $pkg->setDescription(
00032     'HTML Purifier is an HTML filter that will remove all malicious code
00033     (better known as XSS) with a thoroughly audited, secure yet permissive
00034     whitelist and will also make sure your documents are standards
00035     compliant.'
00036 );
00037 
00038 $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
00039 
00040 $version = trim(file_get_contents('VERSION'));
00041 $api_version = substr($version, 0, strrpos($version, '.'));
00042 
00043 $pkg->setChannel('htmlpurifier.org');
00044 $pkg->setAPIVersion($api_version);
00045 $pkg->setAPIStability('stable');
00046 $pkg->setReleaseVersion($version);
00047 $pkg->setReleaseStability('stable');
00048 
00049 $pkg->addRelease();
00050 
00051 $pkg->setNotes(file_get_contents('WHATSNEW'));
00052 $pkg->setPackageType('php');
00053 
00054 $pkg->setPhpDep('5.0.0');
00055 $pkg->setPearinstallerDep('1.4.3');
00056 
00057 $pkg->generateContents();
00058 
00059 $pkg->writePackageFile();
00060 
00061 // vim: et sw=4 sts=4