CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
63
airtime_mvc/library/pear/PEAR/Validator/PECL.php
Normal file
63
airtime_mvc/library/pear/PEAR/Validator/PECL.php
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
/**
|
||||
* Channel Validator for the pecl.php.net channel
|
||||
*
|
||||
* PHP 4 and PHP 5
|
||||
*
|
||||
* @category pear
|
||||
* @package PEAR
|
||||
* @author Greg Beaver <cellog@php.net>
|
||||
* @copyright 1997-2006 The PHP Group
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @version CVS: $Id: PECL.php 276383 2009-02-24 23:39:37Z dufuz $
|
||||
* @link http://pear.php.net/package/PEAR
|
||||
* @since File available since Release 1.4.0a5
|
||||
*/
|
||||
/**
|
||||
* This is the parent class for all validators
|
||||
*/
|
||||
require_once 'PEAR/Validate.php';
|
||||
/**
|
||||
* Channel Validator for the pecl.php.net channel
|
||||
* @category pear
|
||||
* @package PEAR
|
||||
* @author Greg Beaver <cellog@php.net>
|
||||
* @copyright 1997-2009 The Authors
|
||||
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
||||
* @version Release: 1.9.1
|
||||
* @link http://pear.php.net/package/PEAR
|
||||
* @since Class available since Release 1.4.0a5
|
||||
*/
|
||||
class PEAR_Validator_PECL extends PEAR_Validate
|
||||
{
|
||||
function validateVersion()
|
||||
{
|
||||
if ($this->_state == PEAR_VALIDATE_PACKAGING) {
|
||||
$version = $this->_packagexml->getVersion();
|
||||
$versioncomponents = explode('.', $version);
|
||||
$last = array_pop($versioncomponents);
|
||||
if (substr($last, 1, 2) == 'rc') {
|
||||
$this->_addFailure('version', 'Release Candidate versions must have ' .
|
||||
'upper-case RC, not lower-case rc');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function validatePackageName()
|
||||
{
|
||||
$ret = parent::validatePackageName();
|
||||
if ($this->_packagexml->getPackageType() == 'extsrc' ||
|
||||
$this->_packagexml->getPackageType() == 'zendextsrc') {
|
||||
if (strtolower($this->_packagexml->getPackage()) !=
|
||||
strtolower($this->_packagexml->getProvidesExtension())) {
|
||||
$this->_addWarning('providesextension', 'package name "' .
|
||||
$this->_packagexml->getPackage() . '" is different from extension name "' .
|
||||
$this->_packagexml->getProvidesExtension() . '"');
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue