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

Generated on Thu Jun 19 18:47:27 2008 for HTMLPurifier by  doxygen 1.5.3