Fri Feb 22 17:06:54 2013 UTC ()
Initial import of nginx-devel, version 1.3.13, into the NetBSD Packages
Collection.
nginx (pronounced "engine X") is a lightweight web (HTTP) server/reverse proxy
and mail (IMAP/POP3) proxy written by Igor Sysoev.
nginx has been running for more than three years on many heavily loaded Russian
sites including Rambler (RamblerMedia.com). In March 2007 about 20% of all
Russian virtual hosts were served or proxied by nginx. According to Google
Online Security Blog nginx serves or proxies about 4% of all Internet virtual
hosts, although Netcraft shows much less percent.
The sources are licensed under a BSD-like license.
(imil)
diff -r0 -r1.1 pkgsrc/www/nginx-devel/DESCR
diff -r0 -r1.1 pkgsrc/www/nginx-devel/MESSAGE
diff -r0 -r1.1 pkgsrc/www/nginx-devel/Makefile
diff -r0 -r1.1 pkgsrc/www/nginx-devel/PLIST
diff -r0 -r1.1 pkgsrc/www/nginx-devel/distinfo
diff -r0 -r1.1 pkgsrc/www/nginx-devel/files/nginx.sh
diff -r0 -r1.1 pkgsrc/www/nginx-devel/patches/patch-aa
diff -r0 -r1.1 pkgsrc/www/nginx-devel/patches/patch-ab
nginx (pronounced "engine X") is a lightweight web (HTTP) server/reverse proxy
and mail (IMAP/POP3) proxy written by Igor Sysoev.
nginx has been running for more than three years on many heavily loaded Russian
sites including Rambler (RamblerMedia.com). In March 2007 about 20% of all
Russian virtual hosts were served or proxied by nginx. According to Google
Online Security Blog nginx serves or proxies about 4% of all Internet virtual
hosts, although Netcraft shows much less percent.
The sources are licensed under a BSD-like license.
===========================================================================
$NetBSD: MESSAGE,v 1.1 2013/02/22 17:06:54 imil Exp $
Consider adding something like following lines to /etc/newsyslog.conf:
${NGINX_LOGDIR}/access.log ${NGINX_USER}:${NGINX_GROUP} 640 7 * 24 Z ${NGINX_PIDDIR}/nginx.pid SIGUSR1
${NGINX_LOGDIR}/error.log ${NGINX_USER}:${NGINX_GROUP} 640 7 * 24 Z ${NGINX_PIDDIR}/nginx.pid SIGUSR1
===========================================================================
# $NetBSD: Makefile,v 1.1 2013/02/22 17:06:54 imil Exp $
DISTNAME= nginx-1.3.13
MAINTAINER= imil@NetBSD.org
.include "../../www/nginx/Makefile.common"
@comment $NetBSD: PLIST,v 1.1 2013/02/22 17:06:54 imil Exp $
man/man8/nginx.8
sbin/nginx
share/examples/nginx/conf/fastcgi.conf
share/examples/nginx/conf/fastcgi_params
share/examples/nginx/conf/koi-utf
share/examples/nginx/conf/koi-win
share/examples/nginx/conf/mime.types
share/examples/nginx/conf/nginx.conf
${PLIST.uwsgi}share/examples/nginx/conf/uwsgi_params
${PLIST.naxsi}share/examples/nginx/conf/naxsi_core.rules
share/examples/nginx/conf/win-utf
share/examples/nginx/html/50x.html
share/examples/nginx/html/index.html
share/examples/rc.d/nginx
$NetBSD: distinfo,v 1.1 2013/02/22 17:06:54 imil Exp $
SHA1 (naxsi-core-0.49.tgz) = d36294647302bb56cb134c32156c8aadf4418d68
RMD160 (naxsi-core-0.49.tgz) = 85e6ca2ff8bad2e5aba8caa5b882ac430f6c719f
Size (naxsi-core-0.49.tgz) = 49852 bytes
SHA1 (nginx-1.3.13.tar.gz) = b09b1c35b2b741292d41db1caa3b8a4123805a4c
RMD160 (nginx-1.3.13.tar.gz) = 830e44f117d1f77900bf63d11c73ae08a4dcbeab
Size (nginx-1.3.13.tar.gz) = 747470 bytes
SHA1 (nginx_http_push_module-0.692.tar.gz) = 72103084cad8f4d3d9a49a6b04cf780e4541605d
RMD160 (nginx_http_push_module-0.692.tar.gz) = 9d2be16074cf28115af0f1d8f3646937cda649ad
Size (nginx_http_push_module-0.692.tar.gz) = 29119 bytes
SHA1 (nginx_upload_module-2.2.0.tar.gz) = 93d6e83e613a0ce2ed057a434b344fa1b6609b47
RMD160 (nginx_upload_module-2.2.0.tar.gz) = 5734af837be3fe8ec444a7e5e7f6707118594098
Size (nginx_upload_module-2.2.0.tar.gz) = 25796 bytes
SHA1 (patch-aa) = adf433d1b56a88c6c2ed09c4bd54fdb1a336582f
SHA1 (patch-ab) = 6f20ef8ac9a042faf7e22770de7c16b351cb1191
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: nginx.sh,v 1.1 2013/02/22 17:06:54 imil Exp $
#
# PROVIDE: nginx
# REQUIRE: DAEMON
. /etc/rc.subr
name="nginx"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
pidfile="@VARBASE@/run/${name}.pid"
start_precmd="ulimit -n 2048"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"
$NetBSD: patch-aa,v 1.1 2013/02/22 17:06:54 imil Exp $
This patch provides config file adapted to pkgsrc settings.
--- conf/nginx.conf.orig 2011-06-27 15:47:51.000000000 +0000
+++ conf/nginx.conf
@@ -1,28 +1,29 @@
-#user nobody;
+user %%NGINX_USER%% %%NGINX_GROUP%%;
worker_processes 1;
-#error_log logs/error.log;
-#error_log logs/error.log notice;
-#error_log logs/error.log info;
-
-#pid logs/nginx.pid;
+#error_log %%NGINX_LOGDIR%%/error.log;
+#error_log %%NGINX_LOGDIR%%/error.log notice;
+#error_log %%NGINX_LOGDIR%%/error.log info;
+#pid %%NGINX_PIDDIR%%/nginx.pid;
events {
+ # After increasing this value You probably should increase limit
+ # of file descriptors (for example in start_precmd in startup script)
worker_connections 1024;
}
http {
- include mime.types;
+ include %%PKG_SYSCONFDIR%%/mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
+ #access_log %%NGINX_LOGDIR%%/access.log main;
sendfile on;
#tcp_nopush on;
@@ -38,10 +39,10 @@ http {
#charset koi8-r;
- #access_log logs/host.access.log main;
+ #access_log %%NGINX_LOGDIR%%/host.access.log main;
location / {
- root html;
+ root share/examples/nginx/html;
index index.html index.htm;
}
@@ -51,7 +52,7 @@ http {
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
- root html;
+ root share/examples/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
@@ -67,7 +68,7 @@ http {
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
- # include fastcgi_params;
+ # include %%PKG_SYSCONFDIR%%/fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
@@ -87,7 +88,7 @@ http {
# server_name somename alias another.alias;
# location / {
- # root html;
+ # root share/examples/nginx/html;
# index index.html index.htm;
# }
#}
@@ -110,7 +111,7 @@ http {
# ssl_prefer_server_ciphers on;
# location / {
- # root html;
+ # root share/examples/nginx/html;
# index index.html index.htm;
# }
#}
$NetBSD: patch-ab,v 1.1 2013/02/22 17:06:54 imil Exp $
Workaround for /bin/sh bug on NetBSD
--- auto/install.orig 2010-06-15 19:50:33.000000000 +0000
+++ auto/install
@@ -114,9 +114,6 @@ install: $NGX_OBJS${ngx_dirsep}nginx${ng
|| cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PATH'
cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PREFIX/nginx.conf.default'
- test -d '\$(DESTDIR)`dirname "$NGX_PID_PATH"`' \
- || mkdir -p '\$(DESTDIR)`dirname "$NGX_PID_PATH"`'
-
test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' || \
mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'