forked from noname007/script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.bak
74 lines (66 loc) · 3.41 KB
/
Makefile.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
PHP_PATH=/home/software/php7.0.14dd
OEPNRESTY_PATH=/home/software/openrestydd
prerequisites:
yum install -y readline-devel pcre-devel openssl-devel gcc wget \
icu libicu libicu-devel \
autoconf libjpeg-dev libpng-dev libmcrypt-dev bzip2 libbz2-dev curl libcurl4-gnutls-dev libfreetype6-dev libxml2-devel gd-devel libmcrypt-devel libcurl-devel \
libuuid-devel bzip2-devel gcc-c++\
openresty: prerequisites
test -f 'openresty-1.11.2.2.tar.gz' || wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
test -d 'openresty-1.11.2.2' || tar -zxvf openresty-1.11.2.2.tar.gz
test -d $(OEPNRESTY_PATH) || (\
cd openresty-1.11.2.2 &&\
./configure --prefix=$(OEPNRESTY_PATH) --with-pcre-jit --with-ipv6 --with-http_gzip_static_module --with-http_stub_status_module -j2 &&\
make -j2 &&\
sudo make install &&\
echo 'PATH=$(OEPNRESTY_PATH)/bin:$$PATH'>> ~/.bashrc && source ~/.bashrc \
)
lor: openresty
test -d lor || git clone https://github.com/sumory/lor
cd lor && sh install.sh
orange: lor
test -d orange || git clone https://github.com/sumory/orange.git
cd orange && ((git branch|grep 0.6.0) || git checkout -b 0.6.0 0.6.0) && make install
php7:
test -f 'php-7.0.14.tar.gz' || wget http://cn2.php.net/distributions/php-7.0.14.tar.gz
test -d php-7.0.14 || tar -zxvf php-7.0.14.tar.gz
test -d $(PHP_PATH) || ( \
cd php-7.0.14 &&\
./configure --prefix=$(PHP_PATH)/ --with-gd --enable-gd-native-ttf --with-zlib --with-mcrypt --enable-shmop --enable-sockets --enable-wddx --enable-zip --enable-fpm --enable-mbstring --with-zlib-dir --with-bz2 --with-curl --enable-exif --with-iconv --enable-xml --enable-inline-optimization --enable-bcmath --with-openssl --with-gettext --enable-session --enable-fpm --enable-intl --enable-mbstring --enable-opcache --with-pdo-mysql --enable-mysqlnd &&\
make -j &&\
make install && \
cp php.ini-production $(PHP_PATH)/lib/php.ini && \
cp $(PHP_PATH)/etc/php-fpm.conf.default $(PHP_PATH)/etc/php-fpm.conf && \
cp $(PHP_PATH)/etc/php-fpm.d/www.conf.default $(PHP_PATH)/etc/php-fpm.d/www.conf && \
echo "zend_extension=opcache.so" >> $(PHP_PATH)/lib/php.ini && \
echo 'export PATH=$(PHP_PATH)/bin/:$$PATH' >> ~/.bashrc && source ~/.bashrc \
)
php7-ext-stomp: php7
test -f 'stomp-2.0.0.tgz'||wget https://pecl.php.net/get/stomp-2.0.0.tgz
test -d 'stomp-2.0.0' || tar -zxvf stomp-2.0.0.tgz
source ~/.bashrc && \
cd stomp-2.0.0 && \
phpize && ./configure && make && make install && \
echo "extension=stomp.so" >> $(PHP_PATH)/lib/php.ini
php7-ext-redis: php7
test -f "redis.3.0.0.tar.gz" || wget https://github.com/phpredis/phpredis/archive/3.0.0.tar.gz -O redis.3.0.0.tar.gz
test -d "phpredis-3.0.0" || tar -zxvf redis.3.0.0.tar.gz
source ~/.bashrc && \
cd phpredis-3.0.0 &&\
phpize && ./configure && make && make install && \
echo "extension=redis.so" >> $(PHP_PATH)/lib/php.ini
php7-ext-phalcon: php7
test -d "cphalcon"|| git clone git://github.com/thisverygoodhhhh/cphalcon.git
source ~/.bashrc &&\
echo $$PATH && \
cd cphalcon/build && \
./install && \
echo "extension=phalcon.so" >> $(PHP_PATH)/lib/php.ini
php-composer:
test -d "composer.phar" || wget https://getcomposer.org/download/1.3.2/composer.phar
chmod +x composer.phar
cp composer.phar /bin/composer
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer
install: prerequisites openresty php7 php7-ext-stomp php7-ext-redis php7-ext-phalcon