nginx: update to 0.6.36
This commit is contained in:
parent
a62ae867e8
commit
aac525772d
@ -1,2 +1,2 @@
|
||||
45c7a2d3d91f27f5af1b463f0ff46070 nginx-0.6.35.tar.gz
|
||||
0fd8cea245422ca81baba72feef86128 nginx.rc
|
||||
15cce6102a2efcf4d4acde9bb71ea6d3 nginx-0.6.36.tar.gz
|
||||
143b263676fb671c694f2e5a7e68a078 nginx.rc
|
||||
|
@ -4,33 +4,35 @@
|
||||
# Depends on: zlib, libpcre, openssl
|
||||
|
||||
name=nginx
|
||||
version=0.6.35
|
||||
release=2
|
||||
version=0.6.36
|
||||
release=1
|
||||
source=(http://sysoev.ru/nginx/$name-$version.tar.gz $name.rc)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
./configure --prefix=/etc/$name \
|
||||
--conf-path=/etc/$name/$name.conf \
|
||||
--pid-path=/var/run/$name.pid \
|
||||
--lock-path=/var/lock/$name.lock \
|
||||
--error-log-path=/var/log/$name/error.log \
|
||||
--http-log-path=/var/log/$name/access.log \
|
||||
--user=www \
|
||||
--group=www \
|
||||
--http-client-body-temp-path=/var/tmp/client_body_temp \
|
||||
--http-proxy-temp-path=/var/tmp/proxy_temp \
|
||||
--http-fastcgi-temp-path=/var/tmp/fastcgi_temp \
|
||||
--with-http_ssl_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mkdir $PKG/usr
|
||||
mv $PKG/etc/nginx/sbin $PKG/usr
|
||||
rm -rf $PKG/var/run
|
||||
|
||||
install -D -m 0755 $SRC/$name.rc $PKG/etc/rc.d/$name
|
||||
cd $name-$version
|
||||
./configure --prefix=/etc/$name \
|
||||
--conf-path=/etc/$name/$name.conf \
|
||||
--pid-path=/var/run/$name.pid \
|
||||
--lock-path=/var/lock/$name.lock \
|
||||
--error-log-path=/var/log/$name/error.log \
|
||||
--http-log-path=/var/log/$name/access.log \
|
||||
--user=www \
|
||||
--group=www \
|
||||
--http-client-body-temp-path=/var/tmp/client_body_temp \
|
||||
--http-proxy-temp-path=/var/tmp/proxy_temp \
|
||||
--http-fastcgi-temp-path=/var/tmp/fastcgi_temp \
|
||||
--with-http_ssl_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-pcre
|
||||
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
mkdir $PKG/usr
|
||||
mv $PKG/etc/nginx/sbin $PKG/usr
|
||||
rm -rf $PKG/var/run
|
||||
|
||||
install -D -m 0755 $SRC/$name.rc $PKG/etc/rc.d/$name
|
||||
}
|
||||
|
@ -12,16 +12,10 @@ case $1 in
|
||||
/usr/sbin/nginx
|
||||
;;
|
||||
stop)
|
||||
kill -QUIT `cat /var/run/nginx.pid`
|
||||
;;
|
||||
reload)
|
||||
kill -HUP `cat /var/run/nginx.pid`
|
||||
;;
|
||||
upgrade)
|
||||
kill -USR2 `cat /var/run/nginx.pid`
|
||||
kill -9 `cat /var/run/nginx.pid`
|
||||
;;
|
||||
*)
|
||||
echo "usage: nginx [start|stop|reload|upgrade]"
|
||||
echo "usage: nginx [start|stop]"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user