Plugin to allow visitor contributions to WordPress posts, wiki style.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.7 KiB

  1. <?php
  2. set_time_limit(0);
  3. require_once 'PEAR/PackageFileManager2.php';
  4. require_once 'PEAR/PackageFileManager/File.php';
  5. PEAR::setErrorHandling(PEAR_ERROR_PRINT);
  6. $pkg = new PEAR_PackageFileManager2;
  7. $pkg->setOptions(
  8. array(
  9. 'baseinstalldir' => '/',
  10. 'packagefile' => 'package.xml',
  11. 'packagedirectory' => realpath(dirname(__FILE__) . '/library'),
  12. 'filelistgenerator' => 'file',
  13. 'include' => array('*'),
  14. 'dir_roles' => array('/' => 'php'), // hack to put *.ser files in the right place
  15. 'ignore' => array(
  16. 'HTMLPurifier.standalone.php',
  17. 'HTMLPurifier.path.php',
  18. '*.tar.gz',
  19. '*.tgz',
  20. 'standalone/'
  21. ),
  22. )
  23. );
  24. $pkg->setPackage('HTMLPurifier');
  25. $pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
  26. $pkg->setSummary('Standards-compliant HTML filter');
  27. $pkg->setDescription(
  28. 'HTML Purifier is an HTML filter that will remove all malicious code
  29. (better known as XSS) with a thoroughly audited, secure yet permissive
  30. whitelist and will also make sure your documents are standards
  31. compliant.'
  32. );
  33. $pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
  34. $version = trim(file_get_contents('VERSION'));
  35. $api_version = substr($version, 0, strrpos($version, '.'));
  36. $pkg->setChannel('htmlpurifier.org');
  37. $pkg->setAPIVersion($api_version);
  38. $pkg->setAPIStability('stable');
  39. $pkg->setReleaseVersion($version);
  40. $pkg->setReleaseStability('stable');
  41. $pkg->addRelease();
  42. $pkg->setNotes(file_get_contents('WHATSNEW'));
  43. $pkg->setPackageType('php');
  44. $pkg->setPhpDep('5.0.0');
  45. $pkg->setPearinstallerDep('1.4.3');
  46. $pkg->generateContents();
  47. $pkg->writePackageFile();
  48. // vim: et sw=4 sts=4