Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 91 lines (88 sloc) 3.225 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
<?php
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$a = PEAR_PackageFileManager2::importOptions(
    dirname(__FILE__) . '/package-manual.xml',
    array(
        'packagefile' => 'package-manual.xml',
        'baseinstalldir' => '/pear.php.net/',
        'filelistgenerator' => 'svn',
        'roles' => array('*' => 'www'),
        'exceptions' => array('pearweb_manual.php' => 'php'),
        'simpleoutput' => true,
        'include' => array(
            'cron/apidoc-fix-latest.php',
            'cron/apidoc-queue.php',
            'cron/find-documentation.php',
            'load-chm.sh',
            'public_html/admin/apidoc-log.php',
            'public_html/css/manual.css',
            'public_html/error/404-manual.php',
            'public_html/manual/',
            'public_html/notes/',
            'include/notes/',
            'include/pear-manual.php',
            'templates/notes/',
            'sql/pearweb_manual.xml',
        ),
    )
);
$a->setReleaseVersion('1.1.3');
$a->setReleaseStability('stable');
$a->setAPIStability('stable');
$a->setNotes('
Bug #16747 Broken licence links
Bug #17148 Add user note as doc bug syntax errors
Bug #16913 broken link to PEAR Installer
');
$a->resetUsesrole();
$a->clearDeps();
$a->setPhpDep('5.2.3');
$a->setPearInstallerDep('1.8.0');
$a->addPackageDepWithChannel('required', 'PEAR', 'pear.php.net', '1.8.0');
$a->addPackageDepWithChannel('required', 'pearweb', 'pear.php.net', '1.18.0');
$a->addPackageDepWithChannel('required', 'VFS', 'pear.php.net');
$a->addPackageDepWithChannel('required', 'HTTP_Request2', 'pear.php.net');
$a->addPackageDepWithChannel('required', 'phpDocumentor', 'pear.phpdoc.org');
$a->addExtensionDep('required', 'pcre');
$a->addExtensionDep('required', 'mysqli');

$script = &$a->initPostinstallScript('pearweb_manual.php');
$script->addParamGroup(
    'askdb',
    array(
        $script->getParam('yesno', 'Update pearweb database?', 'yesno', 'y'),
    )
    );
$script->addParamGroup(
    'init',
    array(
        $script->getParam('driver', 'Database driver', 'string', 'mysqli'),
        $script->getParam('user', 'Database User name', 'string', 'pear'),
        $script->getParam('password', 'Database password', 'password', 'pear'),
        $script->getParam('host', 'Database host', 'string', 'localhost'),
        $script->getParam('database', 'Database name', 'string', 'pear'),
    )
    );
$script->addParamGroup(
    'askhttpd',
    array(
        $script->getParam('yesno', 'Update httpd.conf to add pearweb? (y/n)', 'yesno', 'y'),
    )
    );
$script->addParamGroup(
    'httpdconf',
    array(
        $script->getParam('path', 'Full path to httpd.conf', 'string'),
    )
    );

$a->addPostinstallTask($script, 'pearweb_election.php');
$a->addReplacement('pearweb_election.php', 'pear-config', '@www-dir@', 'www_dir');
$a->addReplacement('pearweb_election.php', 'pear-config', '@php-dir@', 'php_dir');
$a->addReplacement('pearweb_election.php', 'package-info', '@version@', 'version');
$a->clearContents();
$a->generateContents();

if (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make') {
    $a->writePackageFile();
} else {
    $a->debugPackageFile();
}
Something went wrong with that request. Please try again.