#!/bin/bash # # This file is part of the phpBB Forum Software package. # # @copyright (c) phpBB Limited # @license GNU General Public License, version 2 (GPL-2.0) # # For full copyright and license information, please see # the docs/CREDITS.txt file. # set -e set -x function find_php_ini { echo $(php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||") } # $1 - PHP extension name # $2 - PHP ini file path function register_php_extension { echo "extension=$1.so" >> "$2" } # $1 - PHP extension name # $2 - PHP ini file path function install_php_extension { echo "Installing $1 PHP extension" # See http://www.php.net/manual/en/install.pecl.phpize.php cd "$1" phpize ./configure make make install cd .. register_php_extension "$1" "$2" } php_ini_file=$(find_php_ini) # apc if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ] then echo 'Enabling APC PHP extension' register_php_extension 'apc' "$php_ini_file" echo 'apc.enable_cli=1' >> "$php_ini_file" fi # redis # Disabled redis for now as it causes travis to fail # git clone git://github.com/nicolasff/phpredis.git redis # install_php_extension 'redis' "$php_ini_file" tro/mdv2010.0'>distro/mdv2010.0 Mageia Network Control Libraries/UtilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-25 18:40:03 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-25 18:40:03 +0000
commit271fa18bee9a0786c6349bc27349d6b632fd1016 (patch)
treec4e1c6dc5eb42019ebb0c569c72c1969595ecc3a
parentb23eaa9ee3e594b11fd906c5fa53c135e16a4670 (diff)
downloaddrakx-net-271fa18bee9a0786c6349bc27349d6b632fd1016.tar
drakx-net-271fa18bee9a0786c6349bc27349d6b632fd1016.tar.gz
drakx-net-271fa18bee9a0786c6349bc27349d6b632fd1016.tar.bz2
drakx-net-271fa18bee9a0786c6349bc27349d6b632fd1016.tar.xz
drakx-net-271fa18bee9a0786c6349bc27349d6b632fd1016.zip
po: sync with code.