summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2013-02-22 17:06:54 +0000
committerimil <imil@pkgsrc.org>2013-02-22 17:06:54 +0000
commit943dd3246acd69b77f78714b0d8e888b85083d25 (patch)
treebf1d34df896cadb4dcf1396b51eed699af7528da /www
parent79501c8efb4f6083ecc6374bc01865a5edb01f88 (diff)
downloadpkgsrc-943dd3246acd69b77f78714b0d8e888b85083d25.tar.gz
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.
Diffstat (limited to 'www')
-rw-r--r--www/nginx-devel/DESCR10
-rw-r--r--www/nginx-devel/MESSAGE9
-rw-r--r--www/nginx-devel/Makefile6
-rw-r--r--www/nginx-devel/PLIST15
-rw-r--r--www/nginx-devel/distinfo16
-rw-r--r--www/nginx-devel/files/nginx.sh19
-rw-r--r--www/nginx-devel/patches/patch-aa93
-rw-r--r--www/nginx-devel/patches/patch-ab16
8 files changed, 184 insertions, 0 deletions
diff --git a/www/nginx-devel/DESCR b/www/nginx-devel/DESCR
new file mode 100644
index 00000000000..8c79764c22c
--- /dev/null
+++ b/www/nginx-devel/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/www/nginx-devel/MESSAGE b/www/nginx-devel/MESSAGE
new file mode 100644
index 00000000000..595f95d2b21
--- /dev/null
+++ b/www/nginx-devel/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$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
+
+===========================================================================
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
new file mode 100644
index 00000000000..67e9a88037c
--- /dev/null
+++ b/www/nginx-devel/Makefile
@@ -0,0 +1,6 @@
+# $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"
diff --git a/www/nginx-devel/PLIST b/www/nginx-devel/PLIST
new file mode 100644
index 00000000000..ab40a8a5152
--- /dev/null
+++ b/www/nginx-devel/PLIST
@@ -0,0 +1,15 @@
+@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
diff --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo
new file mode 100644
index 00000000000..e489392c039
--- /dev/null
+++ b/www/nginx-devel/distinfo
@@ -0,0 +1,16 @@
+$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
diff --git a/www/nginx-devel/files/nginx.sh b/www/nginx-devel/files/nginx.sh
new file mode 100644
index 00000000000..cfaee259f81
--- /dev/null
+++ b/www/nginx-devel/files/nginx.sh
@@ -0,0 +1,19 @@
+#!@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"
diff --git a/www/nginx-devel/patches/patch-aa b/www/nginx-devel/patches/patch-aa
new file mode 100644
index 00000000000..b19839affcc
--- /dev/null
+++ b/www/nginx-devel/patches/patch-aa
@@ -0,0 +1,93 @@
+$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;
+ # }
+ #}
diff --git a/www/nginx-devel/patches/patch-ab b/www/nginx-devel/patches/patch-ab
new file mode 100644
index 00000000000..0c37fdfc799
--- /dev/null
+++ b/www/nginx-devel/patches/patch-ab
@@ -0,0 +1,16 @@
+$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"`'
+