diff --git a/.gitignore b/.gitignore index 65a453c5f..8af6621df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,21 +1,3 @@ -system/pear/*.php -system/pear/Archive -system/pear/Auth -system/pear/Console -system/pear/Date -system/pear/HTTP -system/pear/Mail -system/pear/Net -system/pear/OS -system/pear/PEAR -system/pear/PHP -system/pear/System.php -system/pear/Text -system/pear/XML -system/pear/scripts -system/pear/LICENSE - - public_html/.htaccess public_html/web.config aspnet_client/ @@ -24,7 +6,6 @@ db-config.php public_html/siteconfig.php system/lib-custom.php -public_html/.htaccess public_html/sitemap.xml public_html/filemanager/scripts/filemanager.config.js diff --git a/plugins/calendar/buildpackage.php b/plugins/calendar/buildpackage.php deleted file mode 100644 index 148e0a8a0..000000000 --- a/plugins/calendar/buildpackage.php +++ /dev/null @@ -1,70 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$packagedir = dirname(__FILE__); -$glDir = realpath(dirname(__FILE__).'/../../'); - -/** - * Calendar configuration file - */ -require $packagedir . '/config.php'; - -//print $glDir; exit; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_Calendar'; -// Should be actual FCKeditor version number to avoid any confusion -$version = $_CA_CONF['version']; -$summary = <<setOptions( - array( - 'packagefile' => 'package-calendar.xml', - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array( - 'buildpackage*.php', - 'package.xml', - '*.tgz' - ), - 'include' => array( - $packagedir . '/', - $glDir.'/public_html/calendar/', - $glDir . '/public_html/admin/plugins/calendar/' - ), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include $glDir . '/system/build/buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/plugins/links/buildpackage.php b/plugins/links/buildpackage.php deleted file mode 100644 index 4695002f7..000000000 --- a/plugins/links/buildpackage.php +++ /dev/null @@ -1,67 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$packagedir = dirname(__FILE__); -$glDir = realpath(dirname(__FILE__).'/../../'); - -/** - * Link configuration file - */ -require $packagedir . '/config.php'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_Link'; -// Should be actual FCKeditor version number to avoid any confusion -$version = $_LI_CONF['version']; -$summary = <<setOptions( - array( - 'packagefile' => 'package-link.xml', - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array( - 'buildpackage*.php', - 'package.xml', - '*.tgz' - ), - 'include' => array( - $packagedir . '/', - $glDir.'/public_html/links/', - $glDir . '/public_html/admin/plugins/links/' - ), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include $glDir . '/system/build/buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/plugins/polls/buildpackage.php b/plugins/polls/buildpackage.php deleted file mode 100644 index 740da54f2..000000000 --- a/plugins/polls/buildpackage.php +++ /dev/null @@ -1,67 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$packagedir = dirname(__FILE__); -$glDir = realpath(dirname(__FILE__).'/../../'); - -/** - * Poll configuration file - */ -require $packagedir . '/config.php'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_Poll'; -// Should be actual FCKeditor version number to avoid any confusion -$version = $_PO_CONF['version']; -$summary = <<setOptions( - array( - 'packagefile' => 'package-poll.xml', - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array( - 'buildpackage*.php', - 'package.xml', - '*.tgz' - ), - 'include' => array( - $packagedir . '/', - $glDir.'/public_html/polls/', - $glDir . '/public_html/admin/plugins/polls/' - ), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include $glDir . '/system/build/buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/plugins/spamx/buildpackage.php b/plugins/spamx/buildpackage.php deleted file mode 100644 index 42d1be283..000000000 --- a/plugins/spamx/buildpackage.php +++ /dev/null @@ -1,67 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$packagedir = dirname(__FILE__); -$glDir = realpath(dirname(__FILE__).'/../../'); - -/** - * Spamx configuration file - */ -require $packagedir . '/config.php'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_Spamx'; -// Should be actual FCKeditor version number to avoid any confusion -$version = $_SPX_CONF['version']; -$summary = <<setOptions( - array( - 'packagefile' => 'package-spamx.xml', - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array( - 'buildpackage*.php', - 'package.xml', - '*.tgz' - ), - 'include' => array( - $packagedir . '/', - $glDir.'/public_html/spamx/', - $glDir . '/public_html/admin/plugins/spamx/' - ), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include $glDir . '/system/build/buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/plugins/staticpages/buildpackage.php b/plugins/staticpages/buildpackage.php deleted file mode 100644 index 8d1e3cd86..000000000 --- a/plugins/staticpages/buildpackage.php +++ /dev/null @@ -1,70 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$packagedir = dirname(__FILE__); -$glDir = realpath(dirname(__FILE__).'/../../'); - -/** - * Static page configuration file - */ -require $packagedir . '/config.php'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_Staticpages'; -// Should be actual FCKeditor version number to avoid any confusion -$version = $_SP_CONF['version']; -$summary = <<setOptions( - array( - 'packagefile' => 'package-staticpages.xml', - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array( - 'buildpackage*.php', - 'package.xml', - '*.tgz' - ), - 'include' => array( - $packagedir . '/', - $glDir.'/public_html/staticpages/', - $glDir . '/public_html/admin/plugins/staticpages/', - $glDir . '/public_html/javascript/staticpages_fckeditor.js', - ), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -$pkg->addPackageDepWithChannel('required', 'Geeklog_FCKeditor', 'pear.geeklog.net', '2.3.1'); - -include $glDir . '/system/build/buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/system/build/README.txt b/system/build/README.txt deleted file mode 100644 index 762a7f019..000000000 --- a/system/build/README.txt +++ /dev/null @@ -1,71 +0,0 @@ -Crash Course on Building Geeklog's PEAR packages -------------------------------------------------- -1) If you have added or changed default options for Geeklog's config.php, copy config.php to - config.php.dist and be sure to check in the changes to CVS. NOTE: config.php isn't shipped in - PEAR-based releases that's why this is so important. - -2) Open shell in windows and unix and build the PEAR package XML files. These files contain all - the metadata about a package: - - #>php build-geeklog-packagexmls.hp - -3) Verify you have at least eight package*.xml files in /path/to/geeklog/. Five of them should be - for the core Geeklog plugins along with one for the Professional theme, one for FCKeditor and - one for Geeklog itself. If one didn't build or didn't build properly you will want to generate - the PEAR XML by hand to debug. Each plugin has their own buildpackage.php file in - /path/to/geeklog/plugins/[plugin_name] that you can run as either with: - - #>php buildpackage.php - - ...which outputs the XML to the screen OR by running - - #>php buildpackage.php make - - ...which otuputs the XML in an XML file in /path/to/geeklog - -4) Using the same shell from step #3 build the PEAR compatible tarballs - - #>php build-geeklog-pear-packages.php - - ...or - - #>php build-geeklog-pear-package.php keepXML - - ...which keeps the package*.xml files around in case you were to need them for something else - -5) Verify this worked by looking in /path/to/geeklog/system/build for all the .tgz files. Then you - should verify further by running: - - #>pear install [package_tarball] - - ...for each package you created - -6) Once you have tested everything for your release, please upload the tarballs from step #4 to - pear.geeklog.net which publishes them to the public - -Description of Files ---------------------- - -build-geeklog-packagexmls.php - Scans the entire GL tree for buildpackage.php files. For the ones -it finds it runs them which generates a package*.xml file that is then used to build the PEAR -compatible files - -build-geeklog-pear-packages.php - Scans the entire GL tee for package*.xml and then runs "pear -package" on it to create the PEAR compatible .tgz file. - -buildpackage-end.php - Used by most buildpackage.php files to do common finsihing tasks - -buildpackage-fckeditor.php - Builds the package XML for FCKeditor - -buildpackage-theme-professional.php - Builds the package XML for the Professional theme - -buildpackage.php - Builds the package XML for Geeklog itself. - -Important Note ----------------- - -This is directory is where PEAR build data and files should go. There is a "bug" in PEAR that -prevents us from puting the PEAR package XML files in this directory. Namely, despite the fact we -specify the "packagedirectory" option with PEAR_PackageFileManager2 the XML files must be in the -root of the project for it to work. I am working with the PEAR developers to ensure this is, in -fact a bug and if they agree get a patch. \ No newline at end of file diff --git a/system/build/build-geeklog-packagexmls.php b/system/build/build-geeklog-packagexmls.php deleted file mode 100644 index 295604b1d..000000000 --- a/system/build/build-geeklog-packagexmls.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - */ -$glDir = realpath(dirname(__FILE__) . '/../../'); -$curDir = dirname(__FILE__); - -// Quick OS hack...should probably use a $_SERVER setting or some other superglobal. -if (stristr($curDir, 'C:')) { - echo "building Geeklog's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php \"$curDir/buildpackage.php\" make"); - if (!empty($output)) echo $output; - echo "building FCKeditor's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php \"$curDir/buildpackage-fckeditor.php\" make"); - if (!empty($output)) echo $output; - echo "building Professional Theme's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php \"$curDir/buildpackage-theme-professional.php\" make"); - if (!empty($output)) echo $output; -} else { - $curDir = str_replace(' ','\ ',$curDir); - echo "building Geeklog's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php $curDir/buildpackage.php make"); - if (!empty($output)) echo $output; - echo "building FCKeditor's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php $curDir/buildpackage-fckeditor.php make"); - if (!empty($output)) echo $output; - echo "building Professional Theme's PEAR XML...\n"; - $output = ''; - $output = shell_exec("php $curDir/buildpackage-theme-professional.php make"); - if (!empty($output)) echo $output; -} - -$pluginBuildFiles = getPluginBuildFiles($glDir); - -echo "building PEAR XML for plugins found in $glDir/plugins...\n"; -foreach ($pluginBuildFiles as $curKey=>$curBuildFile) { - echo (" running PEAR XML build file: $curBuildFile...\n"); - $output = ''; - if (stristr($curDir, 'C:')) { - $output = shell_exec("php \"$curBuildFile\" make"); - } else { - $curBuildFile = str_replace(' ','\ ',$curBuildFile); - $output = shell_exec("php $curBuildFile make"); - } - if (!empty($output)) echo $output; -} - -function getPluginBuildFiles($glDir) -{ - $pluginDir = $glDir . '/plugins/'; - - $fd = opendir($pluginDir); - - $buildFiles = array(); - while(($dir = @readdir($fd)) == TRUE) - { - $curPluginDir = $pluginDir . $dir; - if (is_dir($curPluginDir) AND $dir <> '.' AND $dir <> '..' AND $dir <> 'CVS') { - echo "checking $curPluginDir for buildpackage.php...\n"; - if (file_exists($curPluginDir .'/buildpackage.php')) - { - $buildFiles[] = $curPluginDir . '/buildpackage.php'; - } - } - } - return $buildFiles; -} - -?> \ No newline at end of file diff --git a/system/build/build-geeklog-pear-packages.php b/system/build/build-geeklog-pear-packages.php deleted file mode 100644 index b3a4ccdc3..000000000 --- a/system/build/build-geeklog-pear-packages.php +++ /dev/null @@ -1,52 +0,0 @@ - - * - */ -$glDir = realpath(dirname(__FILE__) . '/../../'); -$curDir = dirname(__FILE__); - -$xmlFiles = getPEARXMLFiles($glDir); - -foreach ($xmlFiles as $curKey=>$curXMLFile) { - echo (" running PEAR package for file: $curXMLFile...\n"); - $output = ''; - if (stristr($curDir, 'C:')) { - $output = shell_exec("pear package \"$curXMLFile\""); - } else { - $curBuildFile = str_replace(' ','\ ',$curXMLFile); - $output = shell_exec("pear package $curXMLFile"); - } - if (!empty($output)) echo $output; - if (isset($argv[1]) AND $argv[1] === 'keepXML') { - continue; - } else { - echo "Removing PEAR package xml $curXMLFile...\n"; - unlink($curXMLFile); - } -} - - -function getPEARXMLFiles($glDir) -{ - $buildDir = $glDir . DIRECTORY_SEPARATOR; - - $fd = opendir($buildDir); - - $xmlFiles = array(); - - while(($curFile = @readdir($fd)) == TRUE) - { - $fullFile = $buildDir . $curFile; - if (is_file($fullFile) AND stristr($curFile,'package') AND stristr($curFile,'.xml')) { - echo "found PEAR XML file $fullFile...\n"; - $xmlFiles[] = $fullFile; - } - } - return $xmlFiles; -} - -?> \ No newline at end of file diff --git a/system/build/buildpackage-end.php b/system/build/buildpackage-end.php deleted file mode 100644 index 75e415dcf..000000000 --- a/system/build/buildpackage-end.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @author Tony Bibbs - * @version $Id: buildpackage-end.php,v 1.1 2007/03/19 18:40:39 tony Exp $ - * @copyright The Geeklog Development Team, 2007 - * @todo chmod directories as said in public_html/docs/install.html - * - */ - -// Set misc package information -$pkg->setPackage($package); -$pkg->setSummary($summary); -$pkg->setDescription($description); -$pkg->setChannel($channel); - -$pkg->setReleaseStability('stable'); -$pkg->setAPIStability('stable'); -$pkg->setReleaseVersion($version); -$pkg->setAPIVersion($version); - -$pkg->setLicense($license); -$pkg->setNotes($notes); - -// Our package contains PHP files (not C extension files) -$pkg->setPackageType('php'); - -// Must be available in new package.xml format -$pkg->setPhpDep('4.3.0'); -$pkg->setPearinstallerDep('1.4.2'); - -// Require custom file role for our web installation -$pkg->addPackageDepWithChannel('required', 'Role_Web', 'pearified.com'); - -// Define that we will use our custom file role in this script -$pkg->addUsesRole('web', 'Webfiles'); - -// Mapping misc roles to file name extensions -$pkg->addRole('', 'web'); -$pkg->addRole('png', 'web'); -$pkg->addRole('gif', 'web'); -$pkg->addRole('jpeg', 'web'); - -$pkg->addRelease(); -$pkg->addMaintainer('lead', 'tony', 'Tony Bibbs', 'tony@tonybibbs.com'); -$test = $pkg->generateContents(); - -if (isset($argv[1]) && $argv[1] === 'make') { - $pkg->writePackageFile(); -} else { - $pkg->debugPackageFile(); -} -?> \ No newline at end of file diff --git a/system/build/buildpackage-fckeditor.php b/system/build/buildpackage-fckeditor.php deleted file mode 100644 index 8d04091a3..000000000 --- a/system/build/buildpackage-fckeditor.php +++ /dev/null @@ -1,54 +0,0 @@ - -*/ - -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -/* don't modify this */ -// Directory where the package files are located. -$glDir = realpath(dirname(__FILE__).'/../../'); -$packagedir = $glDir . '\public_html\fckeditor\\'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Plugins'; -$package = 'Geeklog_Plugin_FCKeditor'; -// Should be actual FCKeditor version number to avoid any confusion -$version = '2.3.1'; -$summary = <<setOptions( - array( - 'packagefile' => 'package-FCKeditor.xml', - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - //'pathtopackagefile' => dirname(__FILE__), - 'filelistgenerator' => 'CVS', - 'ignore' => array('package*.xml','buildpackage*.php'), - 'include' => array($packagedir . DIRECTORY_SEPARATOR), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include 'buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/system/build/buildpackage-theme-professional.php b/system/build/buildpackage-theme-professional.php deleted file mode 100644 index 958874027..000000000 --- a/system/build/buildpackage-theme-professional.php +++ /dev/null @@ -1,77 +0,0 @@ - - * @author Tony Bibbs - * @version $Id: buildpackage-theme-professional.php,v 1.1 2007/03/19 18:40:39 tony Exp $ - * @copyright The Geeklog Development Team, 2007 - * - */ -require_once 'PEAR/PackageFileManager2.php'; - -//using this, we don't need to do any error handling ourselves -PEAR::setErrorHandling(PEAR_ERROR_DIE); - -// NOTE: this theme uses the same version number as Geeklog because it is shipped by default -$glDir = realpath(dirname(__FILE__).'/../../'); -require_once $glDir . '/config.php'; -$currentGeeklogVersion = '1.4.1'; - -$packagedir = $glDir . '\public_html\layout\professional\\'; - -$channel = 'pear.geeklog.net'; -$category = 'Geeklog Themes'; -$package = 'Geeklog_Theme_Professional'; -$version = VERSION; -$summary = <<setOptions( - array( - 'packagefile' => 'package-theme-professional.xml', - 'outputdirectory' => $glDir . DIRECTORY_SEPARATOR, - 'packagedirectory' => $glDir . DIRECTORY_SEPARATOR, - 'baseinstalldir' => 'Geeklog', - 'filelistgenerator' => 'CVS', - 'ignore' => array('package*.xml','buildpackage*.php'), - 'include' => array($packagedir), - 'simpleoutput' => true, - 'dir_roles' => array('*' => 'web'), - 'roles' => array('*' => 'web'), - ) -); - -include 'buildpackage-end.php'; - -?> \ No newline at end of file diff --git a/system/build/buildpackage.php b/system/build/buildpackage.php deleted file mode 100644 index 46c075b94..000000000 --- a/system/build/buildpackage.php +++ /dev/null @@ -1,228 +0,0 @@ - - * @author Tony Bibbs - * @version $Id: buildpackage.php,v 1.2 2007/08/05 09:33:02 dhaun Exp $ - * @copyright The Geeklog Development Team, 2007 - * @todo chmod directories as said in public_html/docs/install.html - * - */ - -/** - * PEAR::PEAR_PackageFileManager2 - */ -require_once 'PEAR/PackageFileManager2.php'; - -// Set the main package directory -$packagedir = realpath(dirname(__FILE__) . '\..\..\\'); -require_once $packagedir . '/config.php'; - -// Name of the channel, this package will be distributed through -$channel = 'pear.geeklog.net'; - -// Category and name of the package -$category = 'Applications'; -$package = 'Geeklog'; - -// Version -$version = VERSION; - -// Summary description -$summary = <<setOptions( - array( - 'packagefile' => 'package.xml', - // Where are our package files. - 'packagedirectory' => $packagedir, - // Where will package files be installed in the local web_dir - 'baseinstalldir' => 'Geeklog', - 'outputdirectory' => $packagedir . DIRECTORY_SEPARATOR, - // Just simple output, no MD5 sums and tags - 'simpleoutput' => true, - // Use standard file list generator, choose CVS, if you have your code in CVS - 'filelistgenerator' => 'CVS', - - // List of files to ignore and put not explicitly into the package - 'ignore' => $arGlIgnores, - // Global mapping of directories to file roles. - // @see http://pear.php.net/manual/en/guide.migrating.customroles.defining.php - 'dir_roles' => array( - 'backups' => 'web', - 'system' => 'web', - 'language' => 'web', - 'plugins' => 'web', - 'sql' => 'web', - 'data' => 'data', - 'logs' => 'web', - 'public_html' => 'web' - ), - 'roles' => array('*' => 'web'), - ) -); - -// The following modifies the require_once of config.php in lib-common.php automagically -$pkg->addReplacement('public_html/lib-common.php', 'pear-config', '@WEB_DIR@', 'web_dir'); -$pkg->addReplacement('public_html/lib-common.php', 'package-info', '@PACKAGE@', 'name'); - -// PEAR error checking -if (PEAR::isError($e)) { - die($e->getMessage()); -} - -// Choices for this are alpha, beta and stable. -$pkg->setReleaseStability('stable'); - -// Set misc package information. You shouldn't have to ever change these. -$pkg->setPackage($package); -$pkg->setSummary($summary); -$pkg->setDescription($description); -$pkg->setChannel($channel); -$pkg->setAPIStability('stable'); -$pkg->setReleaseVersion($version); -$pkg->setAPIVersion($version); -$pkg->setLicense($license); -$pkg->setNotes($notes); -$pkg->setPackageType('php'); -$pkg->setPhpDep('4.3.0'); -$pkg->setPearinstallerDep('1.4.2'); - -// Require custom file role for our web installation -$pkg->addPackageDepWithChannel('required', 'Role_Web', 'pearified.com'); - -// Geeklog Required Packages. In a 'typcial' for non-core plugins this wouldn't happen and -// instead the plugins would require a specific version of Geeklog. In fact, for non-core -// plugins (e.g. Forum, File Manager, etc) that's exactly what should happen -$pkg->addPackageDepWithChannel('required', 'Geeklog_FCKeditor', 'pear.geeklog.net', '2.3.1'); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Layout_Professional', 'pear.geeklog.net', $currentGeeklogVersion); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Plugin_Calendar', 'pear.geeklog.net', '1.0.2'); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Plugin_Links', 'pear.geeklog.net', '1.1.1'); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Plugin_Polls', 'pear.geeklog.net', '2.0.1'); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Plugin_Spamx', 'pear.geeklog.net', '1.1.1'); -$pkg->addPackageDepWithChannel('required', 'Geeklog_Plugin_Staticpages', 'pear.geeklog.net', '1.4.4'); - -// Define that we will use our custom file role in this script -$pkg->addUsesRole('web', 'Webfiles'); - -// Mapping misc roles to file name extensions -$pkg->addRole('', 'web'); -$pkg->addRole('png', 'web'); -$pkg->addRole('gif', 'web'); -$pkg->addRole('jpeg', 'web'); - -// Create the current release and add it to the package definition -$pkg->addRelease(); - -// Package release needs a maintainer -$pkg->addMaintainer('lead', 'tony', 'Tony Bibbs', 'tony@tonybibbs.com'); - -// Internally generate the XML for our package.xml (does not perform output!) -$test = $pkg->generateContents(); - -// If called without "make" parameter, we just want to debug the generated package.xml file and -// want to receive additional information on error. -if (isset($argv[1]) AND $argv[1] === 'make') { - $pkg->writePackageFile(); -} else { - $pkg->debugPackageFile(); -} - -?>