nginx: initial commit

This commit is contained in:
Lucas Hazel 2009-01-29 16:24:13 +11:00
parent e588bc14ec
commit da29ac57ee
4 changed files with 85 additions and 0 deletions

22
nginx/.footprint Normal file
View File

@ -0,0 +1,22 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/nginx/
-rw-r--r-- root/root etc/nginx/fastcgi_params
-rw-r--r-- root/root etc/nginx/fastcgi_params.default
drwxr-xr-x root/root etc/nginx/html/
-rw-r--r-- root/root etc/nginx/html/50x.html
-rw-r--r-- root/root etc/nginx/html/index.html
-rw-r--r-- root/root etc/nginx/koi-utf
-rw-r--r-- root/root etc/nginx/koi-win
-rw-r--r-- root/root etc/nginx/mime.types
-rw-r--r-- root/root etc/nginx/mime.types.default
-rw-r--r-- root/root etc/nginx/nginx.conf
-rw-r--r-- root/root etc/nginx/nginx.conf.default
-rw-r--r-- root/root etc/nginx/win-utf
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/nginx
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/nginx
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/log/
drwxr-xr-x root/root var/log/nginx/

2
nginx/.md5sum Normal file
View File

@ -0,0 +1,2 @@
45c7a2d3d91f27f5af1b463f0ff46070 nginx-0.6.35.tar.gz
e35a059e12b936fb1385315453b44739 nginx.rc

36
nginx/Pkgfile Normal file
View File

@ -0,0 +1,36 @@
# Description: HTTP server and mail proxy
# URL: http://nginx.net
# Maintainer: Lucas Hazel, lucas at die dot net dot au
# Depends on: zlib, libpcre, openssl
name=nginx
version=0.6.35
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
}

25
nginx/nginx.rc Normal file
View File

@ -0,0 +1,25 @@
#
# /etc/rc.d/nginx: start, stop or retart nginx server
#
case $1 in
start)
if [ -s /var/run/nginx.pid ]
then
echo "nginx is already running"
exit 1
fi
/usr/sbin/nginx
;;
stop)
kill -QUIT `cat /var/run/nginx.pid`
;;
reload)
kill -USR2 `cat /var/run/nginx.pid`
;;
*)
echo "usage: nginx [start|stop|reload]"
;;
esac
# End of file