SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "php56-pear"

# SliTaz package receipt.

PACKAGE="php56-pear"
VERSION="5.6.40"
CATEGORY="development"
SHORT_DESC="PHP 5.6 web programming language pear libs."
MAINTAINER="shann@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.php.net/"

DEPENDS="php56-cli"
WANTED="php56"

HOST_ARCH="i486 x86_64"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
        mkdir -p $fs/usr/share
    mkdir -p $fs/usr/bin $fs/etc/php56

        cp -a $install/usr/share/php56        $fs/usr/share
        cp -a $install/etc/php56/pear.conf    $fs/etc/php56
        cp -a $install/usr/bin/pe*        $fs/usr/bin
}

# Pre and post install commands for Tazpkg.
pre_install()
{
    while read daemon file
      do
        if [ -z "$1" -a -f "/var/run/$file" ]
          then
            /etc/init.d/$daemon stop
        fi
      done <<EOT
apache apache/httpd.pid
lighttpd lighttpd.pid
EOT
}

post_install()
{
    grep ^include_path "$1/etc/php56/php.ini"
    sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \
        "$1/etc/php56/php.ini"

    # Restart Web server.
    while read daemon file
      do
        [ -z "$1" ] || continue
        if [ -f "/var/run/$file" ]
          then
            /etc/init.d/$daemon stop
            sleep 2
        fi
        if [ -f /etc/init.d/$daemon ]
          then
            /etc/init.d/$daemon start
        fi
      done <<EOT
apache apache/httpd.pid
lighttpd lighttpd.pid
EOT
}
6094 packages and 521500 files in current database (Tue Jun 10 00:01:42 2025)