#!/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) # APCu if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ] then if ! [ "$(pecl info pecl/apcu)" ] then echo 'Enabling APCu PHP extension' printf "\n" | pecl install apcu echo 'apc.enabled=1' >> "$php_ini_file" echo 'apc.enable_cli=1' >> "$php_ini_file" fi fi # Disable xdebug on travis phpenv config-rm xdebug.ini || true # memcached register_php_extension memcached "$php_ini_file" # 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" 'distro/mga2'>distro/mga2 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2003-05-16 15:55:38 +0000
committerPablo Saratxaga <pablo@mandriva.com>2003-05-16 15:55:38 +0000
commit411e0e9d500d91cf111fb93209acd7d461ee2453 (patch)
tree2ad2bc9508b90d8be8a0dc571ee75b43be5b0019 /perl-install
parent1af0da3b2f30c11993aaefd4a9271768cb2e1bf3 (diff)
downloaddrakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.gz
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.bz2
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.tar.xz
drakx-411e0e9d500d91cf111fb93209acd7d461ee2453.zip
updated pot file
Diffstat (limited to 'perl-install')