diff --git a/package.php b/package.php new file mode 100644 index 00000000..579c7d8b --- /dev/null +++ b/package.php @@ -0,0 +1,53 @@ +setOptions( + array( + 'baseinstalldir' => '/', + 'packagefile' => 'package2.xml', + 'packagedirectory' => dirname(__FILE__) . '/library', + 'outputdirectory' => dirname(__FILE__), + 'filelistgenerator' => 'file', + 'installexceptions' => array('library/HTMLPurifier/' => 'HTMLPurifier/'), + 'include' => array('*'), + ) +); + +$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', 'edwardzyang', 'Edward Z. Yang', 'htmlpurifier@jpsband.org', 'yes'); + +$pkg->setChannel('hp.jpsband.org'); +$pkg->setAPIVersion('1.5'); +$pkg->setAPIStability('stable'); +$pkg->setReleaseVersion('1.5.0'); +$pkg->setReleaseStability('stable'); + +$pkg->addRelease(); + +$pkg->setNotes('Major bugs were fixed and some major internal refactoring was undertaken. The visible changes include XHTML 1.1-style modularization of HTMLDefinition, rudimentary internationalization, and a fix for a fatal error when the PHP4 DOM XML extension was loaded. The x subtag is now allowed in language codes. Element by element AllowedAttribute declaration is now possible for global attributes. Instead of *.class, you can write span.class. The old syntax still works, and enables the attribute for all elements.'); +$pkg->setPackageType('php'); + +$pkg->setPhpDep('4.3.9'); +$pkg->setPearinstallerDep('1.4.3'); + +$pkg->generateContents(); + +$compat =& $pkg->exportCompatiblePackageFile1(); +$compat->writePackageFile(); +$pkg->writePackageFile(); + +?> \ No newline at end of file diff --git a/package.xml b/package.xml new file mode 100644 index 00000000..d901a209 --- /dev/null +++ b/package.xml @@ -0,0 +1,204 @@ + + + + HTMLPurifier + Standards-compliant HTML filter + 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. + + + + edwardzyang + Edward Z. Yang + htmlpurifier@jpsband.org + lead + + + + 1.5.0 + 2007-03-24 + LGPL + stable + Major bugs were fixed and some major internal refactoring was undertaken. The visible changes include XHTML 1.1-style modularization of HTMLDefinition, rudimentary internationalization, and a fix for a fatal error when the PHP4 DOM XML extension was loaded. The x subtag is now allowed in language codes. Element by element AllowedAttribute declaration is now possible for global attributes. Instead of *.class, you can write span.class. The old syntax still works, and enables the attribute for all elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.5.0 + 2007-03-24 + LGPL + stable + Major bugs were fixed and some major internal refactoring was undertaken. The visible changes include XHTML 1.1-style modularization of HTMLDefinition, rudimentary internationalization, and a fix for a fatal error when the PHP4 DOM XML extension was loaded. The x subtag is now allowed in language codes. Element by element AllowedAttribute declaration is now possible for global attributes. Instead of *.class, you can write span.class. The old syntax still works, and enables the attribute for all elements. + + + +