cvs: pear-core / package-PEAR.xml package-RemoteInstall.xml package2.xml /PEAR Config.php RemoteInstaller.php /PEAR/Command Install-init.php
Install.php Remoteinstall-init.php Remoteinstall.php
| From: | Greg Beaver | Date: | Fri, 19 Aug 2005 19:45:40 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml package-RemoteInstall.xml package2.xml /PEAR Config.php RemoteInstaller.php /PEAR/Command Install-init.php Install.php Remoteinstall-init.php Remoteinstall.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-34169@lists.php.net to get a copy of this message | ||
cellog Fri Aug 19 15:45:40 2005 EDT
Added files:
/pear-core/PEAR/Command Remoteinstall-init.php Remoteinstall.php
/pear-core/PEAR RemoteInstaller.php
/pear-core package-RemoteInstall.xml
Modified files:
/pear-core/PEAR/Command Install-init.php Install.php
/pear-core/PEAR Config.php
/pear-core package-PEAR.xml package2.xml
Log:
split out PEAR_RemoteInstaller from PEAR. Prepare for 1.4.0b1
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install-init.php?r1=1.1&r2=1.2&ty=u Index: pear-core/PEAR/Command/Install-init.php diff -u pear-core/PEAR/Command/Install-init.php:1.1 pear-core/PEAR/Command/Install-init.php:1.2 --- pear-core/PEAR/Command/Install-init.php:1.1 Thu Mar 24 00:03:59 2005 +++ pear-core/PEAR/Command/Install-init.php Fri Aug 19 15:45:38 2005 @@ -46,11 +46,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -128,11 +123,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -181,11 +171,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are @@ -214,11 +199,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.100&r2=1.101&ty=u Index: pear-core/PEAR/Command/Install.php diff -u pear-core/PEAR/Command/Install.php:1.100 pear-core/PEAR/Command/Install.php:1.101 --- pear-core/PEAR/Command/Install.php:1.100 Sat Jul 30 00:29:01 2005 +++ pear-core/PEAR/Command/Install.php Fri Aug 19 15:45:38 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Install.php,v 1.100 2005/07/30 04:29:01 cellog Exp $ + * @version CVS: $Id: Install.php,v 1.101 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -90,11 +90,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -172,11 +167,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -225,11 +215,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are @@ -258,11 +243,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', @@ -349,12 +329,6 @@ if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } - if (isset($options['remoteconfig'])) { - $e = $this->config->readFTPConfigFile($options['remoteconfig']); - if (!PEAR::isError($e)) { - $this->installer->setConfig($this->config); - } - } if ($command == 'upgrade') { $options['upgrade'] = true; } @@ -627,7 +601,8 @@ } $this->ui->outputData("uninstall ok: $pkg", $command); } - if (!isset($options['offline']) && is_object($savepkg)) { + if (!isset($options['offline']) && is_object($savepkg) && + defined('PEAR_REMOTEINSTALL_OK')) { if ($this->config->isDefinedLayer('ftp')) { $this->installer->pushErrorHandling(PEAR_ERROR_RETURN); $info = $this->installer->ftpUninstall($savepkg); http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.111&r2=1.112&ty=u Index: pear-core/PEAR/Config.php diff -u pear-core/PEAR/Config.php:1.111 pear-core/PEAR/Config.php:1.112 --- pear-core/PEAR/Config.php:1.111 Mon May 23 00:38:08 2005 +++ pear-core/PEAR/Config.php Fri Aug 19 15:45:38 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Config.php,v 1.111 2005/05/23 04:38:08 cellog Exp $ + * @version CVS: $Id: Config.php,v 1.112 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -541,7 +541,7 @@ if (!$ftp_file) { $ftp_file = $this->get('remote_config'); } - if ($ftp_file) { + if ($ftp_file && defined('PEAR_REMOTEINSTALL_OK')) { $this->readFTPConfigFile($ftp_file); } foreach ($this->configuration_info as $key => $info) { http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.228&r2=1.229&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.228 pear-core/package-PEAR.xml:1.229 --- pear-core/package-PEAR.xml:1.228 Fri Aug 19 00:29:10 2005 +++ pear-core/package-PEAR.xml Fri Aug 19 15:45:39 2005 @@ -481,6 +481,16 @@ </notes> </release> <release> + <version>1.3.6</version> + <date>2005-08-18</date> + <state>stable</state> + <license>PHP License</license> + <notes> + * Bump XML_RPC dependency to 1.4.0 + * return by reference from PEAR::raiseError() + </notes> + </release> + <release> <version>1.4.0a1</version> <date>2005-02-26</date> <state>alpha</state> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.111&r2=1.112&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.111 pear-core/package2.xml:1.112 --- pear-core/package2.xml:1.111 Fri Aug 19 00:30:10 2005 +++ pear-core/package2.xml Fri Aug 19 15:45:39 2005 @@ -522,7 +522,7 @@ <name>pcre</name> </extension> </required> - <group name="default"> + <group name="default" hint="PEAR_Delegator"> <package> <name>PEAR_Delegator</name> <channel>pear.php.net</channel> @@ -603,6 +603,22 @@ </release> <release> <version> + <release>1.3.6</release> + <api>1.3.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2005-08-18</date> + <license>PHP License</license> + <notes> + * Bump XML_RPC dependency to 1.4.0 + * return by reference from PEAR::raiseError() + </notes> + </release> + <release> + <version> <release>1.4.0a1</release> <api>1.4.0</api> </version> http://cvs.php.net/co.php/pear-core/PEAR/Command/Remoteinstall-init.php?r=1.1&p=1 Index: pear-core/PEAR/Command/Remoteinstall-init.php +++ pear-core/PEAR/Command/Remoteinstall-init.php <?php define('PEAR_REMOTEINSTALL_OK', true); // for PEAR_Config // quick-load, small memory footprint command configuration $implements = array( 'remote-install' => array( 'summary' => 'Install Package', 'function' => 'doInstall', 'shortcut' => 'inr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'will overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, install anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as installed', ), 'soft' => array( 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '[channel/]<package> ... Installs one or more PEAR packages. You can specify a package to install in four ways: "Package-1.0.tgz" : installs from a local file "http://example.com/Package-1.0.tgz" : installs from anywhere on the net. "package.xml" : installs the package described in package.xml. Useful for testing, or for wrapping a PEAR package in another package manager such as RPM. "Package[-version/state][.tar]" : queries your default channel\'s server ({config master_server}) and downloads the newest package with the preferred quality/state ({config preferred_state}). To retrieve Package version 1.1, use "Package-1.1," to retrieve Package state beta, use "Package-beta." To retrieve an uncompressed file, append .tar (make sure there is no file by the same name first) To download a package from another channel, prefix with the channel name like "channel/Package" More than one package may be specified at once. It is ok to mix these four ways of specifying packages. '), 'remote-upgrade' => array( 'summary' => 'Upgrade Package', 'function' => 'doInstall', 'shortcut' => 'upr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '<package> ... Upgrades one or more PEAR packages. See documentation for the "install" command for ways to specify a package. When upgrading, your package will be updated if the provided new package has a higher version number (use the -f option if you need to upgrade anyway). More than one package may be specified at once. '), 'remote-upgrade-all' => array( 'summary' => 'Upgrade All Packages', 'function' => 'doInstall', 'shortcut' => 'uar', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are done only if there is a release available of the state specified in "preferred_state" (currently {config preferred_state}), or a state considered more stable. '), 'remote-uninstall' => array( 'summary' => 'Un-install Package', 'function' => 'doUninstall', 'shortcut' => 'unr', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, uninstall anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not remove files, only register the packages as not installed', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', ), ), 'doc' => '[channel/]<package> ... Uninstalls one or more PEAR packages. More than one package may be specified at once. Prefix with channel name to uninstall from a channel not in your default channel ({config default_channel}) '), ); ?> http://cvs.php.net/co.php/pear-core/PEAR/Command/Remoteinstall.php?r=1.1&p=1 Index: pear-core/PEAR/Command/Remoteinstall.php +++ pear-core/PEAR/Command/Remoteinstall.php <?php /** * PEAR_Command_Install (remote-install, remote-upgrade, remote-upgrade-all, remote-uninstall commands) * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: Remoteinstall.php,v 1.1 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ /** * base class */ require_once 'PEAR/Command/Install.php'; /** * PEAR commands for installation or deinstallation/upgrading of * packages. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ class PEAR_Command_RemoteInstall extends PEAR_Command_Install { // {{{ properties var $commands = array( 'remote-install' => array( 'summary' => 'Install Package', 'function' => 'doInstall', 'shortcut' => 'inr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'will overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, install anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as installed', ), 'soft' => array( 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '[channel/]<package> ... Installs one or more PEAR packages. You can specify a package to install in four ways: "Package-1.0.tgz" : installs from a local file "http://example.com/Package-1.0.tgz" : installs from anywhere on the net. "package.xml" : installs the package described in package.xml. Useful for testing, or for wrapping a PEAR package in another package manager such as RPM. "Package[-version/state][.tar]" : queries your default channel\'s server ({config master_server}) and downloads the newest package with the preferred quality/state ({config preferred_state}). To retrieve Package version 1.1, use "Package-1.1," to retrieve Package state beta, use "Package-beta." To retrieve an uncompressed file, append .tar (make sure there is no file by the same name first) To download a package from another channel, prefix with the channel name like "channel/Package" More than one package may be specified at once. It is ok to mix these four ways of specifying packages. '), 'remote-upgrade' => array( 'summary' => 'Upgrade Package', 'function' => 'doInstall', 'shortcut' => 'upr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '<package> ... Upgrades one or more PEAR packages. See documentation for the "install" command for ways to specify a package. When upgrading, your package will be updated if the provided new package has a higher version number (use the -f option if you need to upgrade anyway). More than one package may be specified at once. '), 'remote-upgrade-all' => array( 'summary' => 'Upgrade All Packages', 'function' => 'doInstall', 'shortcut' => 'uar', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are done only if there is a release available of the state specified in "preferred_state" (currently {config preferred_state}), or a state considered more stable. '), 'remote-uninstall' => array( 'summary' => 'Un-install Package', 'function' => 'doUninstall', 'shortcut' => 'unr', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, uninstall anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not remove files, only register the packages as not installed', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', ), ), 'doc' => '[channel/]<package> ... Uninstalls one or more PEAR packages. More than one package may be specified at once. Prefix with channel name to uninstall from a channel not in your default channel ({config default_channel}) '), ); // }}} // {{{ constructor /** * PEAR_Command_Install constructor. * * @access public */ function PEAR_Command_Remoteinstall(&$ui, &$config) { parent::PEAR_Command_Install($ui, $config); } // }}} /** * For unit testing purposes */ function &getDownloader(&$ui, $options, &$config) { if (!class_exists('PEAR_Downloader')) { require_once 'PEAR/Downloader.php'; } $a = &new PEAR_Downloader($ui, $options, $config); return $a; } /** * For unit testing purposes */ function &getInstaller(&$ui) { if (!class_exists('PEAR_RemoteInstaller')) { require_once 'PEAR/RemoteInstaller.php'; } $a = &new PEAR_RemoteInstaller($ui); return $a; } // {{{ doInstall() function doInstall($command, $options, $params) { if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } if (isset($options['remoteconfig'])) { $e = $this->config->readFTPConfigFile($options['remoteconfig']); if (!PEAR::isError($e)) { $this->installer->setConfig($this->config); } } elseif (!$this->config->get('remote_config')) { return $this->raiseError('Error: ' . $command . ' expects either option ' . '"remoteconfig" be set, or remote_config configuration variable be used'); } $command = str_replace('remote-', '', $command); // fool parent return parent::doInstall($command, $options, $params); } // }}} // {{{ doUninstall() function doUninstall($command, $options, $params) { if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } if (isset($options['remoteconfig'])) { $e = $this->config->readFTPConfigFile($options['remoteconfig']); if (!PEAR::isError($e)) { $this->installer->setConfig($this->config); } } elseif (!$this->config->get('remote_config')) { return $this->raiseError('Error: ' . $command . ' expects either option ' . '"remoteconfig" be set, or remote_config configuration variable be used'); } $command = 'uninstall'; // fool parent return parent::doUninstall($command, $options, $params); } // }}} } ?> http://cvs.php.net/co.php/pear-core/PEAR/RemoteInstaller.php?r=1.1&p=1 Index: pear-core/PEAR/RemoteInstaller.php +++ pear-core/PEAR/RemoteInstaller.php <?php /** * PEAR_Installer * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Tomas V.V. Cox <cox@idecnet.com> * @author Martin Jansen <mj@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: RemoteInstaller.php,v 1.1 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1.0 */ /** * parent class */ require_once 'PEAR/Installer.php'; /** * Administration class used to install PEAR packages and maintain the * installed package database. * * @category pear * @package PEAR * @author Greg Beaver <cellog@php.net> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1.0 */ class PEAR_RemoteInstaller extends PEAR_Installer { /** * Delete a package's installed files, does not remove empty directories. * * @param string package name * @param string channel name * @param bool if true, then files are backed up first * @return bool TRUE on success, or a PEAR error on failure * @access protected */ function _deletePackageFiles($package, $channel = false, $backup = false) { if (!$channel) { $channel = 'pear.php.net'; } if (!strlen($package)) { return $this->raiseError("No package to uninstall given"); } if (strtolower($package) == 'pear' && $channel == 'pear.php.net') { // to avoid race conditions, include all possible needed files require_once 'PEAR/Task/Common.php'; require_once 'PEAR/Task/Replace.php'; require_once 'PEAR/Task/Unixeol.php'; require_once 'PEAR/Task/Windowseol.php'; require_once 'PEAR/PackageFile/v1.php'; require_once 'PEAR/PackageFile/v2.php'; require_once 'PEAR/PackageFile/Generator/v1.php'; require_once 'PEAR/PackageFile/Generator/v2.php'; } $filelist = $this->_registry->packageInfo($package, 'filelist', $channel); if ($filelist == null) { return $this->raiseError("$channel/$package not installed"); } $ret = array(); if ($this->config->isDefinedLayer('ftp') && isset($this->_options['upgrade'])) { $pkg = $this->_registry->getPackage($package, $channel); $this->ftpUninstall($pkg); // no error checking } return parent::_deletePackageFiles($package, $channel, $backup); } /** * @param PEAR_PackageFile_v1|PEAR_PackageFile_v2 */ function ftpUninstall($pkg) { $ftp = &$this->config->getFTP(); if (!$ftp) { return $this->raiseError('FTP client not initialized'); } $this->log(2, 'Connect to FTP server'); $e = $ftp->init(); if (PEAR::isError($e)) { return $e; } PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); foreach ($pkg->getFilelist() as $file => $atts) { if ($pkg->getPackagexmlVersion() == '1.0') { $channel = 'pear.php.net'; switch ($atts['role']) { case 'doc': case 'data': case 'test': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel) . DIRECTORY_SEPARATOR . $pkg->getPackage(); unset($atts['baseinstalldir']); break; case 'ext': case 'php': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel); break; case 'script': $dest_dir = $this->config->get('bin_dir', 'ftp', $channel); break; default: continue 2; } $save_destdir = $dest_dir; if (!empty($atts['baseinstalldir'])) { $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; } if (dirname($file) != '.' && empty($atts['install-as'])) { $dest_dir .= DIRECTORY_SEPARATOR . dirname($file); } if (empty($atts['install-as'])) { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . basename($file); } else { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . $atts['install-as']; } // Clean up the DIRECTORY_SEPARATOR mess $ds2 = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR; $dest_file = preg_replace(array('!\\\\+!', '!/!', "!$ds2+!"), array('/', '/', '/'), $dest_file); } else { $role = &PEAR_Installer_Role::factory($pkg, $atts['role'], $this->config); $role->setup($this, $pkg, $atts, $file); if (!$role->isInstallable()) { continue; // this shouldn't happen } list($save_destdir, $dest_dir, $dest_file, $orig_file) = $role->processInstallation($pkg, $atts['attribs'], $file, $tmp_path, 'ftp'); $dest_file = str_replace(DIRECTORY_SEPARATOR, '/', $dest_file); } $this->log(2, 'Deleting "' . $dest_file . '"'); $ftp->rm($dest_file); } PEAR::staticPopErrorHandling(); $this->log(2, 'Disconnect from FTP server'); return $ftp->disconnect(); } /** * Upload an installed package - does not work with register-only packages! * @param PEAR_PackageFile_v1|PEAR_PackageFile_v2 */ function ftpInstall($pkg) { $ftp = &$this->config->getFTP(); if (!$ftp) { return PEAR::raiseError('FTP client not initialized'); } $this->log(2, 'Connect to FTP server'); $e = $ftp->init(); if (PEAR::isError($e)) { return $e; } $pf = &$this->_registry->getPackage($pkg->getPackage(), $pkg->getChannel()); foreach ($pf->getFilelist() as $file => $atts) { if ($pf->getPackagexmlVersion() == '1.0') { $channel = 'pear.php.net'; switch ($atts['role']) { case 'doc': case 'data': case 'test': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel) . DIRECTORY_SEPARATOR . $pf->getPackage(); unset($atts['baseinstalldir']); break; case 'ext': case 'php': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel); break; case 'script': $dest_dir = $this->config->get('bin_dir', 'ftp', $channel); break; default: continue 2; } $save_destdir = $dest_dir; if (!empty($atts['baseinstalldir'])) { $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; } if (dirname($file) != '.' && empty($atts['install-as'])) { $dest_dir .= DIRECTORY_SEPARATOR . dirname($file); } if (empty($atts['install-as'])) { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . basename($file); } else { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . $atts['install-as']; } // Clean up the DIRECTORY_SEPARATOR mess $ds2 = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR; $dest_file = preg_replace(array('!\\+!', '!/!', "!$ds2+!"), array('/', '/', '/'), $dest_file); } else { $role = &PEAR_Installer_Role::factory($pf, $atts['role'], $this->config); $role->setup($this, $pf, $atts, $file); if (!$role->isInstallable()) { continue; // this shouldn't happen } list($save_destdir, $dest_dir, $dest_file, $orig_file) = $role->processInstallation($pkg, $atts, $file, $file /* not used */, 'ftp'); $dest_file = str_replace(DIRECTORY_SEPARATOR, '/', $dest_file); } $installedas = $atts['installed_as']; $this->log(2, 'Uploading "' . $installedas . '" to "' . $dest_file . '"'); if (PEAR::isError($e = $ftp->installFile($installedas, $dest_file))) { return $e; } } $this->log(2, 'Disconnect from FTP server'); return $ftp->disconnect(); } } ?> http://cvs.php.net/co.php/pear-core/package-RemoteInstall.xml?r=1.1&p=1 Index: pear-core/package-RemoteInstall.xml +++ pear-core/package-RemoteInstall.xml <?xml version="1.0"?> <package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>PEAR_RemoteInstall</name> <channel>pear.php.net</channel> <summary>PEAR Remote installation plugin through FTP</summary> <description>Originally part of the 1.4.0 new features, remote installation through FTP is now its own package. This package adds the commands "remote-install" "remote-upgrade" "remote-uninstall" and "remote-upgrade-all" to the PEAR core. To take advantage, you must have a config file on the remote ftp server and full access to the server to create and remove files. The config-create command can be used to get started, and the remote_config configuration variable is set to the full URL as in "ftp://ftp.example.com/path/to/pear.ini" After this is done, install/upgrade as normal using the remote* commands as if they were local. </description> <lead> <name>Greg Beaver</name> <user>cellog</user> <email>cellog@php.net</email> <active>yes</active> </lead> <lead> <name>Stig Bakken</name> <user>ssb</user> <email>stig@php.net</email> <active>yes</active> </lead> <lead> <name>Tomas V.V.Cox</name> <user>cox</user> <email>cox@idecnet.com</email> <active>yes</active> </lead> <lead> <name>Pierre-Alain Joye</name> <user>pajoye</user> <email>pajoye@pearfr.org</email> <active>yes</active> </lead> <date>2005-08-20</date> <version> <release>0.1.0</release> <api>0.1.0</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license">PHP License</license> <notes> Initial release </notes> <contents> <dir name="/"> <dir name="PEAR"> <dir name="Command"> <file name="Remoteinstall-init.php" role="php"/> <file name="Remoteinstall.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> </dir> <!-- /PEAR/Command --> <file name="FTP.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> <file name="RemoteInstaller.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> </dir> <!-- /PEAR --> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.2</min> </php> <pearinstaller> <min>1.4.0a12</min> </pearinstaller> <package> <name>PEAR</name> <channel>pear.php.net</channel> <min>1.4.0b1</min> </package> <package> <name>Net_FTP</name> <channel>pear.php.net</channel> <min>1.3.0RC1</min> <recommended>1.3.1</recommended> </package> </required> </dependencies> <phprelease/> <changelog> <release> <version> <release>0.1.0</release> <api>0.1.0</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <date>2005-08-20</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes> initial separate release from PEAR </notes> </release> </changelog> </package>
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install-init.php?r1=1.1&r2=1.2&ty=u Index: pear-core/PEAR/Command/Install-init.php diff -u pear-core/PEAR/Command/Install-init.php:1.1 pear-core/PEAR/Command/Install-init.php:1.2 --- pear-core/PEAR/Command/Install-init.php:1.1 Thu Mar 24 00:03:59 2005 +++ pear-core/PEAR/Command/Install-init.php Fri Aug 19 15:45:38 2005 @@ -46,11 +46,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -128,11 +123,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -181,11 +171,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are @@ -214,11 +199,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.100&r2=1.101&ty=u Index: pear-core/PEAR/Command/Install.php diff -u pear-core/PEAR/Command/Install.php:1.100 pear-core/PEAR/Command/Install.php:1.101 --- pear-core/PEAR/Command/Install.php:1.100 Sat Jul 30 00:29:01 2005 +++ pear-core/PEAR/Command/Install.php Fri Aug 19 15:45:38 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Install.php,v 1.100 2005/07/30 04:29:01 cellog Exp $ + * @version CVS: $Id: Install.php,v 1.101 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -90,11 +90,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -172,11 +167,6 @@ 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', @@ -225,11 +215,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' - ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are @@ -258,11 +243,6 @@ 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), - 'remoteconfig' => array( - 'shortopt' => 'F', - 'arg' => 'URL', - 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' - ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', @@ -349,12 +329,6 @@ if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } - if (isset($options['remoteconfig'])) { - $e = $this->config->readFTPConfigFile($options['remoteconfig']); - if (!PEAR::isError($e)) { - $this->installer->setConfig($this->config); - } - } if ($command == 'upgrade') { $options['upgrade'] = true; } @@ -627,7 +601,8 @@ } $this->ui->outputData("uninstall ok: $pkg", $command); } - if (!isset($options['offline']) && is_object($savepkg)) { + if (!isset($options['offline']) && is_object($savepkg) && + defined('PEAR_REMOTEINSTALL_OK')) { if ($this->config->isDefinedLayer('ftp')) { $this->installer->pushErrorHandling(PEAR_ERROR_RETURN); $info = $this->installer->ftpUninstall($savepkg); http://cvs.php.net/diff.php/pear-core/PEAR/Config.php?r1=1.111&r2=1.112&ty=u Index: pear-core/PEAR/Config.php diff -u pear-core/PEAR/Config.php:1.111 pear-core/PEAR/Config.php:1.112 --- pear-core/PEAR/Config.php:1.111 Mon May 23 00:38:08 2005 +++ pear-core/PEAR/Config.php Fri Aug 19 15:45:38 2005 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Config.php,v 1.111 2005/05/23 04:38:08 cellog Exp $ + * @version CVS: $Id: Config.php,v 1.112 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -541,7 +541,7 @@ if (!$ftp_file) { $ftp_file = $this->get('remote_config'); } - if ($ftp_file) { + if ($ftp_file && defined('PEAR_REMOTEINSTALL_OK')) { $this->readFTPConfigFile($ftp_file); } foreach ($this->configuration_info as $key => $info) { http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.228&r2=1.229&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.228 pear-core/package-PEAR.xml:1.229 --- pear-core/package-PEAR.xml:1.228 Fri Aug 19 00:29:10 2005 +++ pear-core/package-PEAR.xml Fri Aug 19 15:45:39 2005 @@ -481,6 +481,16 @@ </notes> </release> <release> + <version>1.3.6</version> + <date>2005-08-18</date> + <state>stable</state> + <license>PHP License</license> + <notes> + * Bump XML_RPC dependency to 1.4.0 + * return by reference from PEAR::raiseError() + </notes> + </release> + <release> <version>1.4.0a1</version> <date>2005-02-26</date> <state>alpha</state> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.111&r2=1.112&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.111 pear-core/package2.xml:1.112 --- pear-core/package2.xml:1.111 Fri Aug 19 00:30:10 2005 +++ pear-core/package2.xml Fri Aug 19 15:45:39 2005 @@ -522,7 +522,7 @@ <name>pcre</name> </extension> </required> - <group name="default"> + <group name="default" hint="PEAR_Delegator"> <package> <name>PEAR_Delegator</name> <channel>pear.php.net</channel> @@ -603,6 +603,22 @@ </release> <release> <version> + <release>1.3.6</release> + <api>1.3.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2005-08-18</date> + <license>PHP License</license> + <notes> + * Bump XML_RPC dependency to 1.4.0 + * return by reference from PEAR::raiseError() + </notes> + </release> + <release> + <version> <release>1.4.0a1</release> <api>1.4.0</api> </version> http://cvs.php.net/co.php/pear-core/PEAR/Command/Remoteinstall-init.php?r=1.1&p=1 Index: pear-core/PEAR/Command/Remoteinstall-init.php +++ pear-core/PEAR/Command/Remoteinstall-init.php <?php define('PEAR_REMOTEINSTALL_OK', true); // for PEAR_Config // quick-load, small memory footprint command configuration $implements = array( 'remote-install' => array( 'summary' => 'Install Package', 'function' => 'doInstall', 'shortcut' => 'inr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'will overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, install anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as installed', ), 'soft' => array( 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '[channel/]<package> ... Installs one or more PEAR packages. You can specify a package to install in four ways: "Package-1.0.tgz" : installs from a local file "http://example.com/Package-1.0.tgz" : installs from anywhere on the net. "package.xml" : installs the package described in package.xml. Useful for testing, or for wrapping a PEAR package in another package manager such as RPM. "Package[-version/state][.tar]" : queries your default channel\'s server ({config master_server}) and downloads the newest package with the preferred quality/state ({config preferred_state}). To retrieve Package version 1.1, use "Package-1.1," to retrieve Package state beta, use "Package-beta." To retrieve an uncompressed file, append .tar (make sure there is no file by the same name first) To download a package from another channel, prefix with the channel name like "channel/Package" More than one package may be specified at once. It is ok to mix these four ways of specifying packages. '), 'remote-upgrade' => array( 'summary' => 'Upgrade Package', 'function' => 'doInstall', 'shortcut' => 'upr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '<package> ... Upgrades one or more PEAR packages. See documentation for the "install" command for ways to specify a package. When upgrading, your package will be updated if the provided new package has a higher version number (use the -f option if you need to upgrade anyway). More than one package may be specified at once. '), 'remote-upgrade-all' => array( 'summary' => 'Upgrade All Packages', 'function' => 'doInstall', 'shortcut' => 'uar', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are done only if there is a release available of the state specified in "preferred_state" (currently {config preferred_state}), or a state considered more stable. '), 'remote-uninstall' => array( 'summary' => 'Un-install Package', 'function' => 'doUninstall', 'shortcut' => 'unr', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, uninstall anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not remove files, only register the packages as not installed', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', ), ), 'doc' => '[channel/]<package> ... Uninstalls one or more PEAR packages. More than one package may be specified at once. Prefix with channel name to uninstall from a channel not in your default channel ({config default_channel}) '), ); ?> http://cvs.php.net/co.php/pear-core/PEAR/Command/Remoteinstall.php?r=1.1&p=1 Index: pear-core/PEAR/Command/Remoteinstall.php +++ pear-core/PEAR/Command/Remoteinstall.php <?php /** * PEAR_Command_Install (remote-install, remote-upgrade, remote-upgrade-all, remote-uninstall commands) * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: Remoteinstall.php,v 1.1 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ /** * base class */ require_once 'PEAR/Command/Install.php'; /** * PEAR commands for installation or deinstallation/upgrading of * packages. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ class PEAR_Command_RemoteInstall extends PEAR_Command_Install { // {{{ properties var $commands = array( 'remote-install' => array( 'summary' => 'Install Package', 'function' => 'doInstall', 'shortcut' => 'inr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'will overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, install anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as installed', ), 'soft' => array( 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '[channel/]<package> ... Installs one or more PEAR packages. You can specify a package to install in four ways: "Package-1.0.tgz" : installs from a local file "http://example.com/Package-1.0.tgz" : installs from anywhere on the net. "package.xml" : installs the package described in package.xml. Useful for testing, or for wrapping a PEAR package in another package manager such as RPM. "Package[-version/state][.tar]" : queries your default channel\'s server ({config master_server}) and downloads the newest package with the preferred quality/state ({config preferred_state}). To retrieve Package version 1.1, use "Package-1.1," to retrieve Package state beta, use "Package-beta." To retrieve an uncompressed file, append .tar (make sure there is no file by the same name first) To download a package from another channel, prefix with the channel name like "channel/Package" More than one package may be specified at once. It is ok to mix these four ways of specifying packages. '), 'remote-upgrade' => array( 'summary' => 'Upgrade Package', 'function' => 'doInstall', 'shortcut' => 'upr', 'options' => array( 'force' => array( 'shortopt' => 'f', 'doc' => 'overwrite newer installed packages', ), 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'alldeps' => array( 'shortopt' => 'a', 'doc' => 'install all required and optional dependencies', ), 'onlyreqdeps' => array( 'shortopt' => 'o', 'doc' => 'install all required dependencies', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to download any urls or contact channels', ), 'pretend' => array( 'shortopt' => 'p', 'doc' => 'Only list the packages that would be downloaded', ), ), 'doc' => '<package> ... Upgrades one or more PEAR packages. See documentation for the "install" command for ways to specify a package. When upgrading, your package will be updated if the provided new package has a higher version number (use the -f option if you need to upgrade anyway). More than one package may be specified at once. '), 'remote-upgrade-all' => array( 'summary' => 'Upgrade All Packages', 'function' => 'doInstall', 'shortcut' => 'uar', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, upgrade anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), 'nobuild' => array( 'shortopt' => 'B', 'doc' => 'don\'t build C extensions', ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)' ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are done only if there is a release available of the state specified in "preferred_state" (currently {config preferred_state}), or a state considered more stable. '), 'remote-uninstall' => array( 'summary' => 'Un-install Package', 'function' => 'doUninstall', 'shortcut' => 'unr', 'options' => array( 'nodeps' => array( 'shortopt' => 'n', 'doc' => 'ignore dependencies, uninstall anyway', ), 'register-only' => array( 'shortopt' => 'r', 'doc' => 'do not remove files, only register the packages as not installed', ), 'installroot' => array( 'shortopt' => 'R', 'arg' => 'DIR', 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', ), 'ignore-errors' => array( 'doc' => 'force install even if there were errors', ), 'remoteconfig' => array( 'shortopt' => 'F', 'arg' => 'URL', 'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)' ), 'offline' => array( 'shortopt' => 'O', 'doc' => 'do not attempt to uninstall remotely', ), ), 'doc' => '[channel/]<package> ... Uninstalls one or more PEAR packages. More than one package may be specified at once. Prefix with channel name to uninstall from a channel not in your default channel ({config default_channel}) '), ); // }}} // {{{ constructor /** * PEAR_Command_Install constructor. * * @access public */ function PEAR_Command_Remoteinstall(&$ui, &$config) { parent::PEAR_Command_Install($ui, $config); } // }}} /** * For unit testing purposes */ function &getDownloader(&$ui, $options, &$config) { if (!class_exists('PEAR_Downloader')) { require_once 'PEAR/Downloader.php'; } $a = &new PEAR_Downloader($ui, $options, $config); return $a; } /** * For unit testing purposes */ function &getInstaller(&$ui) { if (!class_exists('PEAR_RemoteInstaller')) { require_once 'PEAR/RemoteInstaller.php'; } $a = &new PEAR_RemoteInstaller($ui); return $a; } // {{{ doInstall() function doInstall($command, $options, $params) { if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } if (isset($options['remoteconfig'])) { $e = $this->config->readFTPConfigFile($options['remoteconfig']); if (!PEAR::isError($e)) { $this->installer->setConfig($this->config); } } elseif (!$this->config->get('remote_config')) { return $this->raiseError('Error: ' . $command . ' expects either option ' . '"remoteconfig" be set, or remote_config configuration variable be used'); } $command = str_replace('remote-', '', $command); // fool parent return parent::doInstall($command, $options, $params); } // }}} // {{{ doUninstall() function doUninstall($command, $options, $params) { if (empty($this->installer)) { $this->installer = &$this->getInstaller($this->ui); } if (isset($options['remoteconfig'])) { $e = $this->config->readFTPConfigFile($options['remoteconfig']); if (!PEAR::isError($e)) { $this->installer->setConfig($this->config); } } elseif (!$this->config->get('remote_config')) { return $this->raiseError('Error: ' . $command . ' expects either option ' . '"remoteconfig" be set, or remote_config configuration variable be used'); } $command = 'uninstall'; // fool parent return parent::doUninstall($command, $options, $params); } // }}} } ?> http://cvs.php.net/co.php/pear-core/PEAR/RemoteInstaller.php?r=1.1&p=1 Index: pear-core/PEAR/RemoteInstaller.php +++ pear-core/PEAR/RemoteInstaller.php <?php /** * PEAR_Installer * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category pear * @package PEAR * @author Stig Bakken <ssb@php.net> * @author Tomas V.V. Cox <cox@idecnet.com> * @author Martin Jansen <mj@php.net> * @author Greg Beaver <cellog@php.net> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: RemoteInstaller.php,v 1.1 2005/08/19 19:45:38 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1.0 */ /** * parent class */ require_once 'PEAR/Installer.php'; /** * Administration class used to install PEAR packages and maintain the * installed package database. * * @category pear * @package PEAR * @author Greg Beaver <cellog@php.net> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: @package_version@ * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1.0 */ class PEAR_RemoteInstaller extends PEAR_Installer { /** * Delete a package's installed files, does not remove empty directories. * * @param string package name * @param string channel name * @param bool if true, then files are backed up first * @return bool TRUE on success, or a PEAR error on failure * @access protected */ function _deletePackageFiles($package, $channel = false, $backup = false) { if (!$channel) { $channel = 'pear.php.net'; } if (!strlen($package)) { return $this->raiseError("No package to uninstall given"); } if (strtolower($package) == 'pear' && $channel == 'pear.php.net') { // to avoid race conditions, include all possible needed files require_once 'PEAR/Task/Common.php'; require_once 'PEAR/Task/Replace.php'; require_once 'PEAR/Task/Unixeol.php'; require_once 'PEAR/Task/Windowseol.php'; require_once 'PEAR/PackageFile/v1.php'; require_once 'PEAR/PackageFile/v2.php'; require_once 'PEAR/PackageFile/Generator/v1.php'; require_once 'PEAR/PackageFile/Generator/v2.php'; } $filelist = $this->_registry->packageInfo($package, 'filelist', $channel); if ($filelist == null) { return $this->raiseError("$channel/$package not installed"); } $ret = array(); if ($this->config->isDefinedLayer('ftp') && isset($this->_options['upgrade'])) { $pkg = $this->_registry->getPackage($package, $channel); $this->ftpUninstall($pkg); // no error checking } return parent::_deletePackageFiles($package, $channel, $backup); } /** * @param PEAR_PackageFile_v1|PEAR_PackageFile_v2 */ function ftpUninstall($pkg) { $ftp = &$this->config->getFTP(); if (!$ftp) { return $this->raiseError('FTP client not initialized'); } $this->log(2, 'Connect to FTP server'); $e = $ftp->init(); if (PEAR::isError($e)) { return $e; } PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); foreach ($pkg->getFilelist() as $file => $atts) { if ($pkg->getPackagexmlVersion() == '1.0') { $channel = 'pear.php.net'; switch ($atts['role']) { case 'doc': case 'data': case 'test': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel) . DIRECTORY_SEPARATOR . $pkg->getPackage(); unset($atts['baseinstalldir']); break; case 'ext': case 'php': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel); break; case 'script': $dest_dir = $this->config->get('bin_dir', 'ftp', $channel); break; default: continue 2; } $save_destdir = $dest_dir; if (!empty($atts['baseinstalldir'])) { $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; } if (dirname($file) != '.' && empty($atts['install-as'])) { $dest_dir .= DIRECTORY_SEPARATOR . dirname($file); } if (empty($atts['install-as'])) { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . basename($file); } else { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . $atts['install-as']; } // Clean up the DIRECTORY_SEPARATOR mess $ds2 = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR; $dest_file = preg_replace(array('!\\\\+!', '!/!', "!$ds2+!"), array('/', '/', '/'), $dest_file); } else { $role = &PEAR_Installer_Role::factory($pkg, $atts['role'], $this->config); $role->setup($this, $pkg, $atts, $file); if (!$role->isInstallable()) { continue; // this shouldn't happen } list($save_destdir, $dest_dir, $dest_file, $orig_file) = $role->processInstallation($pkg, $atts['attribs'], $file, $tmp_path, 'ftp'); $dest_file = str_replace(DIRECTORY_SEPARATOR, '/', $dest_file); } $this->log(2, 'Deleting "' . $dest_file . '"'); $ftp->rm($dest_file); } PEAR::staticPopErrorHandling(); $this->log(2, 'Disconnect from FTP server'); return $ftp->disconnect(); } /** * Upload an installed package - does not work with register-only packages! * @param PEAR_PackageFile_v1|PEAR_PackageFile_v2 */ function ftpInstall($pkg) { $ftp = &$this->config->getFTP(); if (!$ftp) { return PEAR::raiseError('FTP client not initialized'); } $this->log(2, 'Connect to FTP server'); $e = $ftp->init(); if (PEAR::isError($e)) { return $e; } $pf = &$this->_registry->getPackage($pkg->getPackage(), $pkg->getChannel()); foreach ($pf->getFilelist() as $file => $atts) { if ($pf->getPackagexmlVersion() == '1.0') { $channel = 'pear.php.net'; switch ($atts['role']) { case 'doc': case 'data': case 'test': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel) . DIRECTORY_SEPARATOR . $pf->getPackage(); unset($atts['baseinstalldir']); break; case 'ext': case 'php': $dest_dir = $this->config->get($atts['role'] . '_dir', 'ftp', $channel); break; case 'script': $dest_dir = $this->config->get('bin_dir', 'ftp', $channel); break; default: continue 2; } $save_destdir = $dest_dir; if (!empty($atts['baseinstalldir'])) { $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir']; } if (dirname($file) != '.' && empty($atts['install-as'])) { $dest_dir .= DIRECTORY_SEPARATOR . dirname($file); } if (empty($atts['install-as'])) { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . basename($file); } else { $dest_file = $dest_dir . DIRECTORY_SEPARATOR . $atts['install-as']; } // Clean up the DIRECTORY_SEPARATOR mess $ds2 = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR; $dest_file = preg_replace(array('!\\+!', '!/!', "!$ds2+!"), array('/', '/', '/'), $dest_file); } else { $role = &PEAR_Installer_Role::factory($pf, $atts['role'], $this->config); $role->setup($this, $pf, $atts, $file); if (!$role->isInstallable()) { continue; // this shouldn't happen } list($save_destdir, $dest_dir, $dest_file, $orig_file) = $role->processInstallation($pkg, $atts, $file, $file /* not used */, 'ftp'); $dest_file = str_replace(DIRECTORY_SEPARATOR, '/', $dest_file); } $installedas = $atts['installed_as']; $this->log(2, 'Uploading "' . $installedas . '" to "' . $dest_file . '"'); if (PEAR::isError($e = $ftp->installFile($installedas, $dest_file))) { return $e; } } $this->log(2, 'Disconnect from FTP server'); return $ftp->disconnect(); } } ?> http://cvs.php.net/co.php/pear-core/package-RemoteInstall.xml?r=1.1&p=1 Index: pear-core/package-RemoteInstall.xml +++ pear-core/package-RemoteInstall.xml <?xml version="1.0"?> <package version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>PEAR_RemoteInstall</name> <channel>pear.php.net</channel> <summary>PEAR Remote installation plugin through FTP</summary> <description>Originally part of the 1.4.0 new features, remote installation through FTP is now its own package. This package adds the commands "remote-install" "remote-upgrade" "remote-uninstall" and "remote-upgrade-all" to the PEAR core. To take advantage, you must have a config file on the remote ftp server and full access to the server to create and remove files. The config-create command can be used to get started, and the remote_config configuration variable is set to the full URL as in "ftp://ftp.example.com/path/to/pear.ini" After this is done, install/upgrade as normal using the remote* commands as if they were local. </description> <lead> <name>Greg Beaver</name> <user>cellog</user> <email>cellog@php.net</email> <active>yes</active> </lead> <lead> <name>Stig Bakken</name> <user>ssb</user> <email>stig@php.net</email> <active>yes</active> </lead> <lead> <name>Tomas V.V.Cox</name> <user>cox</user> <email>cox@idecnet.com</email> <active>yes</active> </lead> <lead> <name>Pierre-Alain Joye</name> <user>pajoye</user> <email>pajoye@pearfr.org</email> <active>yes</active> </lead> <date>2005-08-20</date> <version> <release>0.1.0</release> <api>0.1.0</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <license uri="http://www.php.net/license">PHP License</license> <notes> Initial release </notes> <contents> <dir name="/"> <dir name="PEAR"> <dir name="Command"> <file name="Remoteinstall-init.php" role="php"/> <file name="Remoteinstall.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> </dir> <!-- /PEAR/Command --> <file name="FTP.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> <file name="RemoteInstaller.php" role="php"> <tasks:replace from="@package_version@" to="version" type="package-info" /> </file> </dir> <!-- /PEAR --> </dir> <!-- / --> </contents> <dependencies> <required> <php> <min>4.2</min> </php> <pearinstaller> <min>1.4.0a12</min> </pearinstaller> <package> <name>PEAR</name> <channel>pear.php.net</channel> <min>1.4.0b1</min> </package> <package> <name>Net_FTP</name> <channel>pear.php.net</channel> <min>1.3.0RC1</min> <recommended>1.3.1</recommended> </package> </required> </dependencies> <phprelease/> <changelog> <release> <version> <release>0.1.0</release> <api>0.1.0</api> </version> <stability> <release>alpha</release> <api>alpha</api> </stability> <date>2005-08-20</date> <license uri="http://www.php.net/license/3_0.txt">PHP License</license> <notes> initial separate release from PEAR </notes> </release> </changelog> </package>