nginx: 1.6.1 -> 1.8.0
This commit is contained in:
parent
523084496d
commit
67ac3a9200
@ -1,3 +1,3 @@
|
||||
169f1a4a3a67c83588c8d556e8407417 nginx
|
||||
45e5a11f48b001644676f7767980a2bf nginx-1.6.1.tar.gz
|
||||
3ca4a37931e9fa301964b8ce889da8cb nginx-1.8.0.tar.gz
|
||||
d922bb31d486e33d99381f3ff8e430be nginx.conf
|
||||
|
@ -4,56 +4,62 @@
|
||||
# Depends on: perl libpcre openssl
|
||||
|
||||
name=nginx
|
||||
version=1.6.1
|
||||
version=1.8.0
|
||||
release=1
|
||||
source=(http://nginx.org/download/$name-$version.tar.gz \
|
||||
$name.conf \
|
||||
$name)
|
||||
source=(http://nginx.org/download/$name-$version.tar.gz
|
||||
$name.conf
|
||||
$name)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
./configure --prefix=/etc/$name \
|
||||
--sbin-path=/usr/bin/$name \
|
||||
--conf-path=/etc/$name/$name.conf \
|
||||
--pid-path=/var/run/$name.pid \
|
||||
--lock-path=/var/lock/$name.lock \
|
||||
--http-client-body-temp-path=/var/spool/$name/client_body_temp \
|
||||
--http-proxy-temp-path=/var/spool/$name/proxy_temp \
|
||||
--http-fastcgi-temp-path=/var/spool/$name/fastcgi_temp \
|
||||
--http-uwsgi-temp-path=/var/spool/$name/uwscgi_temp \
|
||||
--http-scgi-temp-path=/var/spool/$name/scgi_temp \
|
||||
--error-log-path=/var/log/$name \
|
||||
--http-log-path=/var/log/$name/access.log \
|
||||
--error-log-path=/var/log/$name/error.log \
|
||||
--user=$name \
|
||||
--group=$name \
|
||||
--with-pcre \
|
||||
--with-zlib-asm=pentiumpro \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_ssl_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_perl_module
|
||||
|
||||
./configure \
|
||||
--prefix=/etc/$name \
|
||||
--sbin-path=/usr/bin/$name \
|
||||
--conf-path=/etc/$name/$name.conf \
|
||||
--pid-path=/var/run/$name.pid \
|
||||
--lock-path=/var/lock/$name.lock \
|
||||
--http-client-body-temp-path=/var/spool/$name/client_body_temp \
|
||||
--http-proxy-temp-path=/var/spool/$name/proxy_temp \
|
||||
--http-fastcgi-temp-path=/var/spool/$name/fastcgi_temp \
|
||||
--http-uwsgi-temp-path=/var/spool/$name/uwscgi_temp \
|
||||
--http-scgi-temp-path=/var/spool/$name/scgi_temp \
|
||||
--error-log-path=/var/log/$name \
|
||||
--http-log-path=/var/log/$name/access.log \
|
||||
--error-log-path=/var/log/$name/error.log \
|
||||
--user=$name \
|
||||
--group=$name \
|
||||
--with-pcre \
|
||||
--with-zlib-asm=pentiumpro \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_ssl_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_perl_module
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mkdir -p $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
|
||||
chown $name:0 $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
|
||||
chmod 700 $PKG/var/spool/$name/{client_body_temp,fastcgi_temp,uwscgi_temp,scgi_temp,proxy_temp}
|
||||
install -d -m 0700 -o $name \
|
||||
$PKG/var/spool/$name/{client_body_temp,fastcgi_temp} \
|
||||
$PKG/var/spool/$name/{uwscgi_temp,scgi_temp,proxy_temp}
|
||||
|
||||
touch $PKG/var/log/$name/access.log
|
||||
touch $PKG/var/log/$name/error.log
|
||||
|
||||
install -m 644 $SRC/$name.conf $PKG/etc/$name/$name.conf
|
||||
install -D -m 755 $SRC/$name $PKG/etc/rc.d/$name
|
||||
install -m 0644 $SRC/$name.conf $PKG/etc/$name/$name.conf
|
||||
install -m 0755 -D $SRC/$name $PKG/etc/rc.d/$name
|
||||
|
||||
rm -f $PKG/etc/$name/*.default
|
||||
|
||||
find $PKG -type f \( \
|
||||
-name '.packlist' -o \
|
||||
-name '*.bs' -o \
|
||||
-name 'autosplit.ix' -o \
|
||||
-name 'perllocal.pod' \) -delete
|
||||
|
||||
find $PKG/usr/lib/perl5 -name .packlist -exec rm {} \;
|
||||
find $PKG/usr/lib/perl5 -name perllocal.pod -exec rm {} \;
|
||||
find $PKG/usr/lib/perl5 -depth -type d -empty -exec rm -rf {} \;
|
||||
find $PKG/usr/lib/perl5 -name "*.bs" -exec rm {} \;
|
||||
find $PKG/usr/lib/perl5 -depth -type d -empty -delete
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user