nginx: update to 0.6.36

This commit is contained in:
Lucas Hazel 2009-04-11 20:27:25 +10:00
parent a62ae867e8
commit aac525772d
3 changed files with 32 additions and 36 deletions

View File

@ -1,2 +1,2 @@
45c7a2d3d91f27f5af1b463f0ff46070 nginx-0.6.35.tar.gz
0fd8cea245422ca81baba72feef86128 nginx.rc
15cce6102a2efcf4d4acde9bb71ea6d3 nginx-0.6.36.tar.gz
143b263676fb671c694f2e5a7e68a078 nginx.rc

View File

@ -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
}

View File

@ -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