Offline PEAR install in DAB Makefile

Discussion in 'Debian Appliance Builder' started by apmuthu, Aug 26, 2014.

  1. apmuthu

    apmuthu Member

    Joined:
    Feb 26, 2009
    Messages:
    744
    Likes Received:
    3
    For a Wheezy DAB Template the following lines were used to install PEAR and the Horde-Pear Packages needed:
    Code:
        # Start of PEAR Manual Install
        mkdir -p ${BASEDIR}/usr/src/pear
        unzip -o pear-pkgs.zip -d ${BASEDIR}/usr/src/pear
    #    dab exec pear install /usr/src/pear/Archive_Tar-1.3.12.tgz /usr/src/pear/Console_Getopt-1.3.1.tgz /usr/src/pear/XML_Util-1.2.3.tgz
    #    # Ignore Console_GetoptPlus_beta for now even though it does not break anything as yet
        dab exec pear upgrade --force /usr/src/pear/*.tgz
        rm -rf ${BASEDIR}/usr/src/pear
        install -m 0700 PEAR-1.9.5.tgz ${BASEDIR}/root/PEAR-1.9.5.tgz
        dab exec pear upgrade -f /root/PEAR-1.9.5.tgz
        rm -f ${BASEDIR}/root/PEAR-1.9.5.tgz
    #    # wget http://pear.horde.org/channel.xml -O horde-channel.xml
        install -m 0755 horde-channel.xml ${BASEDIR}/usr/src/horde-channel.xml
        dab exec pear channel-add /usr/src/horde-channel.xml
        rm -f ${BASEDIR}/usr/src/horde-channel.xml
        mkdir -p ${BASEDIR}/usr/src/horde
        unzip -o pear-horde-pkgs.zip -d ${BASEDIR}/usr/src/horde
        dab exec pear install -f /usr/src/horde/*.tgz
        rm -rf ${BASEDIR}/usr/src/horde
        # End of PEAR Manual Install
        dab exec ln -s /usr/share/php /usr/share/pear
    
    References:
    http://php.net/manual/en/install.pecl.php
    http://forum.proxmox.com/threads/12623-pear-install-thru-dab
    http://pear.php.net/manual/en/guide.users.commandline.installing.php
    http://forum.proxmox.com/threads/12623-pear-install-thru-dab
    http://pear.php.net/manual/en/guide.users.commandline.installing.php
    http://php.net/manual/en/install.pecl.php
    https://pve.proxmox.com/mediawiki/i...l_PECL_Extensions_in_OpenVZ_Debian_Appliances
    http://yuval.bar-or.org/blog/2009/11/offline-installation-of-pear-packages/
    http://www.siteground.com/tutorials/php-mysql/pear_modules.htm
    http://christian.roy.name/blog/install-pear-without-network-no-internet-accessoffline

    IPs:
    pear.php.net => euk1.php.net => 5.77.39.20
    pear.horde.org => ftp.horde.org => 200.46.208.218
     
    #1 apmuthu, Aug 26, 2014
    Last edited: Aug 26, 2014
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice