2014-01-22 03:38:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This file is part of the phpseclib project.
|
|
|
|
#
|
|
|
|
# (c) Andreas Fischer <bantu@phpbb.com>
|
|
|
|
#
|
|
|
|
# For the full copyright and license information, please view the LICENSE
|
|
|
|
# file that was distributed with this source code.
|
|
|
|
#
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function install_php_extension
|
|
|
|
{
|
|
|
|
cd "$1"
|
|
|
|
phpize
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
|
|
|
}
|
|
|
|
|
2014-09-04 22:47:48 +02:00
|
|
|
# runkit
|
2015-12-13 23:02:17 +01:00
|
|
|
git clone https://github.com/zenovich/runkit.git
|
2014-09-04 22:47:48 +02:00
|
|
|
install_php_extension 'runkit'
|