forked from centos-bz/ezhttp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
270 lines (207 loc) · 12.8 KB
/
init
File metadata and controls
270 lines (207 loc) · 12.8 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
########################软件包的百度网盘及官方下载地址设置#######################
###################主要安装包设置###################
#nginx设置
nginx_filename="nginx-1.4.4"
nginx_other_link="http://cdn.yyupload.com/down/499809/software/nginx-1.4.4.tar.gz"
nginx_official_link="http://nginx.org/download/nginx-1.4.4.tar.gz"
#tengine设置
tengine_filename="tengine-1.5.2"
tengine_other_link="http://cdn.yyupload.com/down/499809/software/tengine-1.5.2.tar.gz"
tengine_official_link="http://tengine.taobao.org/download/tengine-1.5.2.tar.gz"
#openresty设置
openresty_filename="ngx_openresty-1.4.3.6"
openresty_other_link="http://cdn.yyupload.com/down/499809/software/ngx_openresty-1.4.3.6.tar.gz"
openresty_official_link="http://openresty.org/download/ngx_openresty-1.4.3.6.tar.gz"
#apache设置
apache2_2_filename="httpd-2.2.26"
apache2_2_other_link="http://cdn.yyupload.com/down/499809/software/httpd-2.2.26.tar.gz"
apache2_2_official_link="http://psg.mtu.edu/pub/apache//httpd/httpd-2.2.26.tar.gz"
apache2_4_filename="httpd-2.4.7"
apache2_4_other_link="http://cdn.yyupload.com/down/499809/software/httpd-2.4.7.tar.gz"
apache2_4_official_link="http://psg.mtu.edu/pub/apache//httpd/httpd-2.4.7.tar.gz"
#mysql_server设置
mysql5_1_filename="mysql-5.1.72"
mysql5_1_other_link="http://cdn.yyupload.com/down/499809/software/mysql-5.1.72.tar.gz"
mysql5_1_official_link="http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.72.tar.gz"
mysql5_5_filename="mysql-5.5.34"
mysql5_5_other_link="http://cdn.yyupload.com/down/499809/software/mysql-5.5.34.tar.gz"
mysql5_5_official_link="http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34.tar.gz"
mysql5_6_filename="mysql-5.6.14"
mysql5_6_other_link="http://cdn.yyupload.com/down/499809/software/mysql-5.6.14.tar.gz"
mysql5_6_official_link="http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz"
#php设置
php5_2_filename="php-5.2.17"
php5_2_other_link="http://cdn.yyupload.com/down/499809/software/php-5.2.17.tar.gz"
php5_2_official_link="http://www.php.net/get/php-5.2.17.tar.gz/from/us1.php.net/mirror"
php5_3_filename="php-5.3.27"
php5_3_other_link="http://cdn.yyupload.com/down/499809/software/php-5.3.27.tar.gz"
php5_3_official_link="http://www.php.net/get/php-5.3.27.tar.gz/from/us1.php.net/mirror"
php5_4_filename="php-5.4.22"
php5_4_other_link="http://cdn.yyupload.com/down/499809/software/php-5.4.22.tar.gz"
php5_4_official_link="http://us1.php.net/distributions/php-5.4.22.tar.gz"
#ZendOptimizer设置
ZendOptimizer_filename="ZendOptimizer-3.3.9"
ZendOptimizer32_filename="ZendOptimizer-3.3.9-linux-glibc23-i386"
ZendOptimizer32_other_link="http://cdn.yyupload.com/down/499809/software/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz"
ZendOptimizer32_official_link="http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz"
ZendOptimizer64_filename="ZendOptimizer-3.3.9-linux-glibc23-x86_64"
ZendOptimizer64_other_link="http://cdn.yyupload.com/down/499809/software/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz"
ZendOptimizer64_official_link="http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz"
#eaccelerator设置
eaccelerator_filename="eaccelerator-0.9.6.1"
eaccelerator_other_link="http://cdn.yyupload.com/down/499809/software/eaccelerator-0.9.6.1.tar.bz2"
eaccelerator_official_link="http://cloud.github.com/downloads/eaccelerator/eaccelerator/eaccelerator-0.9.6.1.tar.bz2"
#xcache设置
xcache_filename="xcache-3.0.4"
xcache_other_link="http://cdn.yyupload.com/down/499809/software/xcache-3.0.4.tar.gz"
xcache_official_link="http://xcache.lighttpd.net/pub/Releases/3.0.4/xcache-3.0.4.tar.gz"
#php-memcache设置
php_memcache_filename="memcache-3.0.8"
php_memcache_other_link="http://cdn.yyupload.com/down/499809/software/"
php_memcache_official_link="http://pecl.php.net/get/memcache-3.0.8.tgz"
#ImageMagick设置
ImageMagick_filename="ImageMagick-6.8.7-6"
ImageMagick_other_link="http://cdn.yyupload.com/down/499809/software/ImageMagick-6.8.7-6.tar.gz"
ImageMagick_official_link="http://www.imagemagick.org/download/ImageMagick-6.8.7-6.tar.gz"
#pkgconfig设置
pkgconfig_filename="pkgconfig-0.18"
pkgconfig_other_link="http://cdn.yyupload.com/down/499809/software/"
pkgconfig_official_link="http://pkgconfig.freedesktop.org/releases/pkgconfig-0.18.tar.gz"
php_imagemagick_filename="imagick-3.1.2"
php_imagemagick_other_link="http://cdn.yyupload.com/down/499809/software/imagick-3.1.2.tgz"
php_imagemagick_official_link="http://pecl.php.net/get/imagick-3.1.2.tgz"
#ionCube设置
ionCube_filename="ioncube_loaders"
ionCube32_filename="ioncube_loaders_lin_x86"
ionCube32_other_link="http://cdn.yyupload.com/down/499809/software/ioncube_loaders_lin_x86.tar.gz"
ionCube32_official_link="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz"
ionCube64_filename="ioncube_loaders_lin_x86-64"
ionCube64_other_link="http://cdn.yyupload.com/down/499809/software/ioncube_loaders_lin_x86-64.tar.gz"
ionCube64_official_link="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz"
#ZendGuardLoader设置
ZendGuardLoader_filename="ZendGuardLoader"
ZendGuardLoader53_32_filename="ZendGuardLoader-php-5.3-linux-glibc23-i386"
ZendGuardLoader53_32_other_link="http://cdn.yyupload.com/down/499809/software/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz"
ZendGuardLoader53_32_official_link="http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz"
ZendGuardLoader54_32_filename="ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386"
ZendGuardLoader54_32_other_link="http://cdn.yyupload.com/down/499809/software/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz"
ZendGuardLoader54_32_official_link="http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz"
ZendGuardLoader53_64_filename="ZendGuardLoader-php-5.3-linux-glibc23-x86_64"
ZendGuardLoader53_64_other_link="http://cdn.yyupload.com/down/499809/software/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz"
ZendGuardLoader53_64_official_link="http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz"
ZendGuardLoader54_64_filename="ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64"
ZendGuardLoader54_64_other_link="http://cdn.yyupload.com/down/499809/software/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz"
ZendGuardLoader54_64_official_link="http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz"
#memcached设置
memcached_filename="memcached-1.4.15"
memcached_other_link="http://cdn.yyupload.com/down/499809/software/memcached-1.4.15.tar.gz"
memcached_official_link="http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz"
#phpMyAdmin设置
phpMyAdmin_filename="phpMyAdmin-4.0.9-all-languages"
phpMyAdmin_other_link="http://cdn.yyupload.com/down/499809/software/phpMyAdmin-4.0.9-all-languages.tar.gz"
phpMyAdmin_official_link="http://hivelocity.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.9/phpMyAdmin-4.0.9-all-languages.tar.gz"
#PureFTPd设置
PureFTPd_filename="pure-ftpd-1.0.36"
PureFTPd_other_link="http://cdn.yyupload.com/down/499809/software/pure-ftpd-1.0.36.tar.gz"
PureFTPd_official_link="http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.36.tar.gz"
######################依赖包设置######################
#cmake设置
cmake_filename="cmake-2.8.11.1"
cmake_other_link="http://cdn.yyupload.com/down/499809/software/cmake-2.8.11.1.tar.gz"
cmake_official_link="http://www.cmake.org/files/v2.8/cmake-2.8.11.1.tar.gz"
#ncurses设置(保持5.8版本)
ncurses_filename="ncurses-5.8"
ncurses_other_link="http://cdn.yyupload.com/down/499809/software/ncurses-5.8.tar.gz"
ncurses_official_link="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.8.tar.gz"
#ncurses设置(保持5.5版本,用于mysql5.1的安装)
ncurses_filename2="ncurses-5.5"
ncurses_other_link2="http://cdn.yyupload.com/down/499809/software/ncurses-5.5.tar.gz"
ncurses_official_link2="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.5.tar.gz"
#bison设置
bison_filename="bison-2.7"
bison_other_link="http://cdn.yyupload.com/down/499809/software/bison-2.7.tar.gz"
bison_official_link="http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz"
#patch设置
patch_filename="patch-2.7"
patch_other_link="http://cdn.yyupload.com/down/499809/software/patch-2.7.tar.gz"
patch_official_link="http://ftp.gnu.org/gnu/patch/patch-2.7.tar.gz"
#libiconv设置
libiconv_filename="libiconv-1.14"
libiconv_other_link="http://cdn.yyupload.com/down/499809/software/libiconv-1.14.tar.gz"
libiconv_official_link="http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz"
#autoconf设置(保持2.59版本)
autoconf_filename="autoconf-2.59"
autoconf_other_link="http://cdn.yyupload.com/down/499809/software/autoconf-2.59.tar.gz"
autoconf_official_link="http://ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.gz"
#libxml2设置(保持2-2.8.0版本)
libxml2_filename="libxml2-2.8.0"
libxml2_other_link="http://cdn.yyupload.com/down/499809/software/libxml2-2.8.0.tar.gz"
libxml2_official_link="ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz"
#openssl设置
openssl_filename="openssl-1.0.1e"
openssl_other_link="http://cdn.yyupload.com/down/499809/software/openssl-1.0.1e.tar.gz"
openssl_official_link="http://www.openssl.org/source/openssl-1.0.1e.tar.gz"
#zlib设置
zlib_filename="zlib-1.2.8"
zlib_other_link="http://cdn.yyupload.com/down/499809/software/zlib-1.2.8.tar.gz"
zlib_official_link="http://zlib.net/zlib-1.2.8.tar.gz"
#libcurl设置
libcurl_filename="curl-7.30.0"
libcurl_other_link="http://cdn.yyupload.com/down/499809/software/curl-7.30.0.tar.gz"
libcurl_official_link="http://curl.haxx.se/download/curl-7.30.0.tar.gz"
#pcre设置
pcre_filename="pcre-8.33"
pcre_other_link="http://cdn.yyupload.com/down/499809/software/pcre-8.33.tar.gz"
pcre_official_link="http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz"
#libtool设置
libtool_filename="libtool-2.4"
libtool_other_link="http://cdn.yyupload.com/down/499809/software/libtool-2.4.tar.gz"
libtool_official_link="http://mirrors.kernel.org/gnu/libtool/libtool-2.4.tar.gz"
#libjpeg设置
libjpeg_filename="jpeg-6b"
libjpeg_other_link="http://cdn.yyupload.com/down/499809/software/jpegsrc.v6b.tar.gz"
libjpeg_official_link="http://hivelocity.dl.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsrc.v6b.tar.gz"
#freetype设置
freetype_filename="freetype-2.5.0"
freetype_other_link="http://cdn.yyupload.com/down/499809/software/freetype-2.5.0.tar.gz"
freetype_official_link="http://download.savannah.gnu.org/releases/freetype/freetype-2.5.0.tar.gz"
#libpng设置
libpng_filename="libpng-1.4.12"
libpng_other_link="http://cdn.yyupload.com/down/499809/software/libpng-1.4.12.tar.gz"
libpng_official_link="http://superb-dca3.dl.sourceforge.net/project/libpng/libpng14/1.4.12/libpng-1.4.12.tar.gz"
#mhash设置
mhash_filename="mhash-0.9.9.9"
mhash_other_link="http://cdn.yyupload.com/down/499809/software/mhash-0.9.9.9.tar.gz"
mhash_official_link="http://hivelocity.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz"
#libmcrypt设置
libmcrypt_filename="libmcrypt-2.5.8"
libmcrypt_other_link="http://cdn.yyupload.com/down/499809/software/libmcrypt-2.5.8.tar.gz"
libmcrypt_official_link="http://hivelocity.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz"
#m4设置
m4_filename="m4-1.4.16"
m4_other_link="http://cdn.yyupload.com/down/499809/software/m4-1.4.16.tar.gz"
m4_official_link="http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz"
#libevent设置
libevent_filename="libevent-2.0.21-stable"
libevent_other_link="http://cdn.yyupload.com/down/499809/software/libevent-2.0.21-stable.tar.gz"
libevent_official_link="http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
#apr设置
apr_filename="apr-1.5.0"
apr_other_link="http://cdn.yyupload.com/down/499809/software/apr-1.5.0.tar.gz"
apr_official_link="http://apache.fayea.com/apache-mirror/apr/apr-1.5.0.tar.gz"
#apr-util设置
apr_util_filename="apr-util-1.5.3"
apr_util_other_link="http://cdn.yyupload.com/down/499809/software/apr-util-1.5.3.tar.gz"
apr_util_official_link="http://apache.fayea.com/apache-mirror/apr/apr-util-1.5.3.tar.gz"
#tomcat7
########################其它设置########################
#各软件菜单设置
nginx_arr=(${nginx_filename} ${tengine_filename} ${openresty_filename} custom_version do_not_install)
apache_arr=(${apache2_2_filename} ${apache2_4_filename} custom_version do_not_install)
mysql_arr=(${mysql5_1_filename} ${mysql5_5_filename} ${mysql5_6_filename} libmysqlclient18 custom_version do_not_install)
php_arr=(${php5_2_filename} ${php5_3_filename} ${php5_4_filename} custom_version do_not_install)
php_mode_arr=(with_apache with_fastcgi)
php_modules_arr=(${ZendOptimizer_filename} ${ZendGuardLoader_filename} ${xcache_filename} ${eaccelerator_filename} ${php_imagemagick_filename} ${ionCube_filename} ${php_memcache_filename} do_not_install)
other_soft_arr=(${memcached_filename} ${PureFTPd_filename} ${phpMyAdmin_filename} do_not_install)
#依赖包安装路径
depends_prefix=/opt/ezhttp