[25099] trunk/dports/www

source_changes at macosforge.org source_changes at macosforge.org
Sun May 13 17:42:51 PDT 2007


Revision: 25099
          http://trac.macosforge.org/projects/macports/changeset/25099
Author:   boeyms at macports.org
Date:     2007-05-13 17:42:50 -0700 (Sun, 13 May 2007)

Log Message:
-----------
www/nginx:
 * Add new port ("High-performance HTTP(S) server, HTTP(S) reverse proxy and
   IMAP/POP3 proxy server").

Added Paths:
-----------
    trunk/dports/www/nginx/
    trunk/dports/www/nginx/Portfile
    trunk/dports/www/nginx/files/
    trunk/dports/www/nginx/files/patch-auto__install
    trunk/dports/www/nginx/files/patch-conf__nginx.conf

Added: trunk/dports/www/nginx/Portfile
===================================================================
--- trunk/dports/www/nginx/Portfile	                        (rev 0)
+++ trunk/dports/www/nginx/Portfile	2007-05-14 00:42:50 UTC (rev 25099)
@@ -0,0 +1,71 @@
+# $Id$
+
+PortSystem 1.0
+
+name            nginx
+version         0.5.20
+categories      www mail
+platforms       darwin
+maintainers     boeyms at macports.org
+description     High-performance HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
+long_description    Nginx ("engine x") is a high-performance HTTP(S) server \
+                    and reverse proxy, as well as an IMAP/POP3 proxy server. \
+                    Nginx was written by Igor Sysoev for Rambler.ru, Russia's \
+                    second-most visited website, where it has been running in \
+                    production for over two and a half years. Igor has \
+                    released the source code under a BSD-like license. \
+                    Although still in beta, Nginx is known for its stability, \
+                    rich feature set, simple configuration, and low resource \
+                    consumption.
+homepage        http://wiki.codemongers.com/nginx
+master_sites    http://sysoev.ru/nginx
+checksums       md5 4a1a0f8cbfe743bc74818443f3799b34 \
+                sha1 7636497e0b95f0c1245aec306c87781b5428565f \
+                rmd160 b9bf74cd12040a4bd054627da66734b162710729
+
+depends_lib     port:pcre port:zlib
+
+patchfiles      patch-auto__install patch-conf__nginx.conf
+post-patch {
+    reinplace "s|__DESTROOT__|${destroot}|g" \
+        ${worksrcpath}/auto/install
+}
+
+set pidfile     ${prefix}/var/run/${name}.pid
+
+configure.args-append \
+            --conf-path=${prefix}/etc/${name}/${name}.conf \
+            --error-log-path=${prefix}/var/log/${name}/error.log \
+            --http-log-path=${prefix}/var/log/${name}/access.log \
+            --pid-path=${pidfile} \
+            --lock-path=${prefix}/var/run/${name}.lock \
+            --http-client-body-temp-path=${prefix}/var/run/${name}/client_body_temp \
+            --http-proxy-temp-path=${prefix}/var/run/${name}/proxy_temp \
+            --http-fastcgi-temp-path=${prefix}/var/run/${name}/fastcgi_temp
+
+build.target        build
+destroot.keepdirs   ${prefix}/var/log/${name} ${prefix}/var/run/${name} 
+
+startupitem.create      yes
+startupitem.executable  ${prefix}/sbin/nginx
+startupitem.pidfile     auto ${pidfile}
+
+variant dav {
+    configure.args-append   --with-http_dav_module
+}
+
+variant flv {
+    configure.args-append   --with-http_flv_module
+}
+
+variant mail {
+    configure.args-append   --with-mail
+}
+
+variant ssl {
+    depends_lib-append      port:openssl
+    configure.args-append   --with-http_ssl_module
+    if [variant_isset mail] {
+        configure.args-append   --with-mail_ssl_module
+    }
+}


Property changes on: trunk/dports/www/nginx/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/www/nginx/files/patch-auto__install
===================================================================
--- trunk/dports/www/nginx/files/patch-auto__install	                        (rev 0)
+++ trunk/dports/www/nginx/files/patch-auto__install	2007-05-14 00:42:50 UTC (rev 25099)
@@ -0,0 +1,70 @@
+--- auto/install	2006-08-30 10:39:17.000000000 +0000
++++ auto/install.new	2007-05-12 09:36:11.000000000 +0000
+@@ -19,42 +19,44 @@
+ 
+ install:	$NGX_OBJS${ngx_dirsep}nginx${ngx_binext}	\
+ 		$NGX_INSTALL_PERL_MODULES
+-	test -d '$NGX_PREFIX' || mkdir -p '$NGX_PREFIX'
++	test -d '__DESTROOT__$NGX_PREFIX' || mkdir -p '__DESTROOT__$NGX_PREFIX'
+ 
+-	test -d '`dirname "$NGX_SBIN_PATH"`' \
+-		|| mkdir -p '`dirname "$NGX_SBIN_PATH"`'
+-	test ! -f '$NGX_SBIN_PATH' || mv '$NGX_SBIN_PATH' '$NGX_SBIN_PATH.old'
+-	cp $NGX_OBJS/nginx '$NGX_SBIN_PATH'
++	test -d '`dirname "__DESTROOT__$NGX_SBIN_PATH"`' \
++		|| mkdir -p '`dirname "__DESTROOT__$NGX_SBIN_PATH"`'
++	test ! -f '__DESTROOT__$NGX_SBIN_PATH' || mv '__DESTROOT__$NGX_SBIN_PATH' '__DESTROOT__$NGX_SBIN_PATH.old'
++	cp $NGX_OBJS/nginx '__DESTROOT__$NGX_SBIN_PATH'
+ 
+-	test -d '`dirname "$NGX_CONF_PATH"`' \
+-		|| mkdir -p '`dirname "$NGX_CONF_PATH"`'
++	test -d '`dirname "__DESTROOT__$NGX_CONF_PATH"`' \
++		|| mkdir -p '`dirname "__DESTROOT__$NGX_CONF_PATH"`'
+ 
+-	cp conf/koi-win '`dirname "$NGX_CONF_PATH"`'
+-	cp conf/koi-utf '`dirname "$NGX_CONF_PATH"`'
+-	cp conf/win-utf '`dirname "$NGX_CONF_PATH"`'
++	cp conf/koi-win '`dirname "__DESTROOT__$NGX_CONF_PATH"`'
++	cp conf/koi-utf '`dirname "__DESTROOT__$NGX_CONF_PATH"`'
++	cp conf/win-utf '`dirname "__DESTROOT__$NGX_CONF_PATH"`'
+ 
+-	test -f '`dirname "$NGX_CONF_PATH"`/mime.types' || \
+-		cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types'
+-	cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types.default'
++	test -f '`dirname "__DESTROOT__$NGX_CONF_PATH"`/mime.types' || \
++		cp conf/mime.types '`dirname "__DESTROOT__$NGX_CONF_PATH"`/mime.types'
++	cp conf/mime.types '`dirname "__DESTROOT__$NGX_CONF_PATH"`/mime.types.default'
+ 
+-	test -f '$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_CONF_PATH'
+-	cp conf/nginx.conf '`dirname "$NGX_CONF_PATH"`/nginx.conf.default'
++	test -f '__DESTROOT__$NGX_CONF_PATH' || cp conf/nginx.conf '__DESTROOT__$NGX_CONF_PATH'
++	cp conf/nginx.conf '`dirname "__DESTROOT__$NGX_CONF_PATH"`/nginx.conf.default'
+ 
+-	test -d '`dirname "$NGX_PID_PATH"`' \
+-		|| mkdir -p '`dirname "$NGX_PID_PATH"`'
++	test -d '`dirname "__DESTROOT__$NGX_PID_PATH"`' \
++		|| mkdir -p '`dirname "__DESTROOT__$NGX_PID_PATH"`'
+ 
+-	test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \
+-		mkdir -p '`dirname "$NGX_HTTP_LOG_PATH"`'
++	test -d '`dirname "__DESTROOT__$NGX_HTTP_LOG_PATH"`' || \
++		mkdir -p '`dirname "__DESTROOT__$NGX_HTTP_LOG_PATH"`'
+ 
+-	test -d '$NGX_PREFIX/html' || cp -r html '$NGX_PREFIX'
++	test -d '__DESTROOT__$NGX_PREFIX/share/nginx/html' || \
++		mkdir -p '__DESTROOT__$NGX_PREFIX/share/nginx/html' && \
++		cp -r html '__DESTROOT__$NGX_PREFIX/share/nginx'
+ END
+ 
+ 
+-if test -n "$NGX_ERROR_LOG_PATH"; then
++if test -n "__DESTROOT__$NGX_ERROR_LOG_PATH"; then
+     cat << END                                                >> $NGX_MAKEFILE
+ 
+-	test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \
+-		mkdir -p '`dirname "$NGX_ERROR_LOG_PATH"`'
++	test -d '`dirname "__DESTROOT__$NGX_ERROR_LOG_PATH"`' || \
++		mkdir -p '`dirname "__DESTROOT__$NGX_ERROR_LOG_PATH"`'
+ END
+ 
+ fi


Property changes on: trunk/dports/www/nginx/files/patch-auto__install
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/dports/www/nginx/files/patch-conf__nginx.conf
===================================================================
--- trunk/dports/www/nginx/files/patch-conf__nginx.conf	                        (rev 0)
+++ trunk/dports/www/nginx/files/patch-conf__nginx.conf	2007-05-14 00:42:50 UTC (rev 25099)
@@ -0,0 +1,47 @@
+--- conf/nginx.conf	2007-05-12 07:19:58.000000000 +0000
++++ conf/nginx.conf.new	2007-05-12 07:19:36.000000000 +0000
+@@ -15,7 +15,7 @@
+ 
+ 
+ http {
+-    include       conf/mime.types;
++    include       etc/nginx/mime.types;
+     default_type  application/octet-stream;
+ 
+     #log_format  main  '$remote_addr - $remote_user [$time_local] $request '
+@@ -41,7 +41,7 @@
+         #access_log  logs/host.access.log  main;
+ 
+         location / {
+-            root   html;
++            root   share/nginx/html;
+             index  index.html index.htm;
+         }
+ 
+@@ -51,7 +51,7 @@
+         #
+         error_page   500 502 503 504  /50x.html;
+         location = /50x.html {
+-            root   html;
++            root   share/nginx/html;
+         }
+ 
+         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+@@ -86,7 +86,7 @@
+     #    server_name  somename  alias  another.alias;
+ 
+     #    location / {
+-    #        root   html;
++    #        root   share/nginx/html;
+     #        index  index.html index.htm;
+     #    }
+     #}
+@@ -109,7 +109,7 @@
+     #    ssl_prefer_server_ciphers   on;
+ 
+     #    location / {
+-    #        root   html;
++    #        root   share/nginx/html;
+     #        index  index.html index.htm;
+     #    }
+     #}


Property changes on: trunk/dports/www/nginx/files/patch-conf__nginx.conf
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070513/0e348a55/attachment.html


More information about the macports-changes mailing list