Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 23:46:53 -0500
From:      Jim Ohlstein <jim@seleium.jlkhosting.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185835: new port www/tengine
Message-ID:  <E1W41KX-000H1d-AW@selenium.jlkhosting.com>
Resent-Message-ID: <201401170450.s0H4o0t9041611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185835
>Category:       ports
>Synopsis:       new port www/tengine
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 17 04:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jim Ohlstein
>Release:        FreeBSD 10.0-PRERELEASE amd64
>Organization:
JLK Hosting
>Environment:
System: FreeBSD selenium.jlkhosting.com 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #0 r260431: Tue Jan 7 21:59:51 EST 2014 root@selenium.jlkhosting.com:/usr/obj/usr/src/sys/SELENIUMKERNEL amd64


>Description:
	Tengine is a fork of the popular web server nginx with enhanced features including support for DSO's
>How-To-Repeat:
	
>Fix:

	

--- tengine.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tengine
#	tengine/pkg-plist
#	tengine/pkg-descr
#	tengine/files
#	tengine/files/extra-patch-calio-iconv-nginx-module-config
#	tengine/files/patch-conf-nginx.conf
#	tengine/files/extra-patch-ngx_http_upstream.h
#	tengine/files/extra-patch-agentzh-set-misc-nginx-module-config
#	tengine/files/extra-patch-ngx_http_sflow_config.c
#	tengine/files/extra-patch-chaoslawful-drizzle-nginx-module-config
#	tengine/files/extra-patch-nginx-modsecurity-config
#	tengine/files/extra-patch-ngx_postgres-config
#	tengine/files/patch-man-nginx
#	tengine/files/nginx.in
#	tengine/files/extra-patch-ngx_http_sflow_config.h
#	tengine/files/extra-patch-ngx_http_notice_module.c
#	tengine/Makefile
#	tengine/distinfo
#
echo c - tengine
mkdir -p tengine > /dev/null 2>&1
echo x - tengine/pkg-plist
sed 's/^X//' >tengine/pkg-plist << '33921c1d82b29feeedecfb61befbfe47'
X@comment $FreeBSD$
X@unexec if cmp -s %D/%%ETCDIR%%/fastcgi_params-dist %D/%%ETCDIR%%/fastcgi_params; then rm -f %D/%%ETCDIR%%/fastcgi_params; fi
X%%ETCDIR%%/fastcgi_params-dist
X@exec if [ ! -f %D/%%ETCDIR%%/fastcgi_params ] ; then cp -p %D/%F %B/fastcgi_params && chmod u+w %B/fastcgi_params; fi
X%%ETCDIR%%/koi-utf
X%%ETCDIR%%/koi-win
X@unexec if cmp -s %D/%%ETCDIR%%/scgi_params-dist %D/%%ETCDIR%%/scgi_params; then rm -f %D/%%ETCDIR%%/scgi_params; fi
X%%ETCDIR%%/scgi_params-dist
X@exec if [ ! -f %D/%%ETCDIR%%/scgi_params ] ; then cp -p %D/%F %B/scgi_params && chmod u+w %B/scgi_params; fi
X@unexec if cmp -s %D/%%ETCDIR%%/uwsgi_params-dist %D/%%ETCDIR%%/uwsgi_params; then rm -f %D/%%ETCDIR%%/uwsgi_params; fi
X%%ETCDIR%%/uwsgi_params-dist
X@exec if [ ! -f %D/%%ETCDIR%%/uwsgi_params ] ; then cp -p %D/%F %B/uwsgi_params  && chmod u+w %B/uwsgi_params; fi
X%%ETCDIR%%/win-utf
X@unexec if cmp -s %D/%%ETCDIR%%/mime.types-dist %D/%%ETCDIR%%/mime.types; then rm -f %D/%%ETCDIR%%/mime.types; fi
X%%ETCDIR%%/mime.types-dist
X@exec if [ ! -f %D/%%ETCDIR%%/mime.types ] ; then cp -p %D/%F %B/mime.types  && chmod u+w %B/mime.types; fi
X@unexec if cmp -s %D/%%ETCDIR%%/nginx.conf-dist %D/%%ETCDIR%%/nginx.conf; then rm -f %D/%%ETCDIR%%/nginx.conf; fi
X@dirrmtry %%ETCDIR%%
X%%ETCDIR%%/nginx.conf-dist
X@exec if [ ! -f %D/%%ETCDIR%%/nginx.conf ] ; then cp -p %D/%F %B/nginx.conf && chmod u+w %B/nginx.conf; fi
X@exec if [ ! -d %%NGINX_TMPDIR%% ] ; then mkdir  %%NGINX_TMPDIR%%; fi
X%%WWWDATA%%@exec mkdir -p -m 755 %D/www/nginx-dist
X%%WWWDATA%%@exec if [ ! -d %D/www/nginx/ ] ; then ln -fs %D/www/nginx-dist %D/www/nginx; fi
X%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
X%%WWWDATA%%www/nginx-dist/index.html
X%%WWWDATA%%www/nginx-dist/50x.html
X%%WWWDATA%%@exec chmod a-w %D/www/nginx-dist
X%%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi
X%%WWWDATA%%@dirrmtry www/nginx-dist
Xetc/tengine/include/ddebug.h
Xetc/tengine/include/nginx.h
Xetc/tengine/include/ngx_alloc.h
Xetc/tengine/include/ngx_array.h
Xetc/tengine/include/ngx_atomic.h
Xetc/tengine/include/ngx_auto_config.h
Xetc/tengine/include/ngx_auto_headers.h
Xetc/tengine/include/ngx_buf.h
Xetc/tengine/include/ngx_channel.h
Xetc/tengine/include/ngx_conf_file.h
Xetc/tengine/include/ngx_config.h
Xetc/tengine/include/ngx_connection.h
Xetc/tengine/include/ngx_core.h
Xetc/tengine/include/ngx_crc.h
Xetc/tengine/include/ngx_crc32.h
Xetc/tengine/include/ngx_crypt.h
Xetc/tengine/include/ngx_cycle.h
Xetc/tengine/include/ngx_darwin.h
Xetc/tengine/include/ngx_darwin_config.h
Xetc/tengine/include/ngx_errno.h
Xetc/tengine/include/ngx_event.h
Xetc/tengine/include/ngx_event_busy_lock.h
Xetc/tengine/include/ngx_event_connect.h
Xetc/tengine/include/ngx_event_openssl.h
Xetc/tengine/include/ngx_event_pipe.h
Xetc/tengine/include/ngx_event_posted.h
Xetc/tengine/include/ngx_event_timer.h
Xetc/tengine/include/ngx_file.h
Xetc/tengine/include/ngx_files.h
Xetc/tengine/include/ngx_freebsd.h
Xetc/tengine/include/ngx_freebsd_config.h
Xetc/tengine/include/ngx_freebsd_rfork_thread.h
Xetc/tengine/include/ngx_gcc_atomic_amd64.h
Xetc/tengine/include/ngx_gcc_atomic_ppc.h
Xetc/tengine/include/ngx_gcc_atomic_sparc64.h
Xetc/tengine/include/ngx_gcc_atomic_x86.h
Xetc/tengine/include/ngx_hash.h
Xetc/tengine/include/ngx_http.h
Xetc/tengine/include/ngx_http_busy_lock.h
Xetc/tengine/include/ngx_http_cache.h
Xetc/tengine/include/ngx_http_config.h
Xetc/tengine/include/ngx_http_core_module.h
Xetc/tengine/include/ngx_http_lua_accessby.h
Xetc/tengine/include/ngx_http_lua_args.h
Xetc/tengine/include/ngx_http_lua_bodyfilterby.h
Xetc/tengine/include/ngx_http_lua_cache.h
Xetc/tengine/include/ngx_http_lua_capturefilter.h
Xetc/tengine/include/ngx_http_lua_clfactory.h
Xetc/tengine/include/ngx_http_lua_common.h
Xetc/tengine/include/ngx_http_lua_conf.h
Xetc/tengine/include/ngx_http_lua_consts.h
Xetc/tengine/include/ngx_http_lua_contentby.h
Xetc/tengine/include/ngx_http_lua_control.h
Xetc/tengine/include/ngx_http_lua_coroutine.h
Xetc/tengine/include/ngx_http_lua_ctx.h
Xetc/tengine/include/ngx_http_lua_directive.h
Xetc/tengine/include/ngx_http_lua_exception.h
Xetc/tengine/include/ngx_http_lua_headerfilterby.h
Xetc/tengine/include/ngx_http_lua_headers.h
Xetc/tengine/include/ngx_http_lua_headers_in.h
Xetc/tengine/include/ngx_http_lua_headers_out.h
Xetc/tengine/include/ngx_http_lua_initby.h
Xetc/tengine/include/ngx_http_lua_log.h
Xetc/tengine/include/ngx_http_lua_logby.h
Xetc/tengine/include/ngx_http_lua_misc.h
Xetc/tengine/include/ngx_http_lua_ndk.h
Xetc/tengine/include/ngx_http_lua_output.h
Xetc/tengine/include/ngx_http_lua_pcrefix.h
Xetc/tengine/include/ngx_http_lua_phase.h
Xetc/tengine/include/ngx_http_lua_probe.h
Xetc/tengine/include/ngx_http_lua_regex.h
Xetc/tengine/include/ngx_http_lua_req_body.h
Xetc/tengine/include/ngx_http_lua_req_method.h
Xetc/tengine/include/ngx_http_lua_rewriteby.h
Xetc/tengine/include/ngx_http_lua_script.h
Xetc/tengine/include/ngx_http_lua_setby.h
Xetc/tengine/include/ngx_http_lua_shdict.h
Xetc/tengine/include/ngx_http_lua_sleep.h
Xetc/tengine/include/ngx_http_lua_socket_tcp.h
Xetc/tengine/include/ngx_http_lua_socket_udp.h
Xetc/tengine/include/ngx_http_lua_string.h
Xetc/tengine/include/ngx_http_lua_subrequest.h
Xetc/tengine/include/ngx_http_lua_time.h
Xetc/tengine/include/ngx_http_lua_uri.h
Xetc/tengine/include/ngx_http_lua_uthread.h
Xetc/tengine/include/ngx_http_lua_util.h
Xetc/tengine/include/ngx_http_lua_variable.h
Xetc/tengine/include/ngx_http_request.h
Xetc/tengine/include/ngx_http_script.h
Xetc/tengine/include/ngx_http_ssi_filter_module.h
Xetc/tengine/include/ngx_http_ssl_module.h
Xetc/tengine/include/ngx_http_upstream.h
Xetc/tengine/include/ngx_http_upstream_round_robin.h
Xetc/tengine/include/ngx_http_variables.h
Xetc/tengine/include/ngx_inet.h
Xetc/tengine/include/ngx_linux.h
Xetc/tengine/include/ngx_linux_config.h
Xetc/tengine/include/ngx_list.h
Xetc/tengine/include/ngx_log.h
Xetc/tengine/include/ngx_md5.h
Xetc/tengine/include/ngx_murmurhash.h
Xetc/tengine/include/ngx_open_file_cache.h
Xetc/tengine/include/ngx_os.h
Xetc/tengine/include/ngx_palloc.h
Xetc/tengine/include/ngx_parse.h
Xetc/tengine/include/ngx_pipe.h
Xetc/tengine/include/ngx_posix_config.h
Xetc/tengine/include/ngx_process.h
Xetc/tengine/include/ngx_process_cycle.h
Xetc/tengine/include/ngx_queue.h
Xetc/tengine/include/ngx_radix_tree.h
Xetc/tengine/include/ngx_rbtree.h
Xetc/tengine/include/ngx_regex.h
Xetc/tengine/include/ngx_resolver.h
Xetc/tengine/include/ngx_segment_tree.h
Xetc/tengine/include/ngx_setaffinity.h
Xetc/tengine/include/ngx_setproctitle.h
Xetc/tengine/include/ngx_sha1.h
Xetc/tengine/include/ngx_shmem.h
Xetc/tengine/include/ngx_shmtx.h
Xetc/tengine/include/ngx_slab.h
Xetc/tengine/include/ngx_socket.h
Xetc/tengine/include/ngx_solaris.h
Xetc/tengine/include/ngx_solaris_config.h
Xetc/tengine/include/ngx_string.h
Xetc/tengine/include/ngx_sunpro_atomic_sparc64.h
Xetc/tengine/include/ngx_sysinfo.h
Xetc/tengine/include/ngx_syslog.h
Xetc/tengine/include/ngx_thread.h
Xetc/tengine/include/ngx_time.h
Xetc/tengine/include/ngx_times.h
Xetc/tengine/include/ngx_trie.h
Xetc/tengine/include/ngx_user.h
Xetc/tengine/modules/ngx_http_access_module.so
Xetc/tengine/modules/ngx_http_addition_filter_module.so
Xetc/tengine/modules/ngx_http_autoindex_module.so
Xetc/tengine/modules/ngx_http_browser_module.so
Xetc/tengine/modules/ngx_http_charset_filter_module.so
Xetc/tengine/modules/ngx_http_concat_module.so
Xetc/tengine/modules/ngx_http_empty_gif_module.so
Xetc/tengine/modules/ngx_http_fastcgi_module.so
Xetc/tengine/modules/ngx_http_flv_module.so
Xetc/tengine/modules/ngx_http_footer_filter_module.so
Xetc/tengine/modules/ngx_http_geoip_module.so
Xetc/tengine/modules/ngx_http_image_filter_module.so
Xetc/tengine/modules/ngx_http_limit_conn_module.so
Xetc/tengine/modules/ngx_http_limit_req_module.so
Xetc/tengine/modules/ngx_http_lua_module.so
Xetc/tengine/modules/ngx_http_map_module.so
Xetc/tengine/modules/ngx_http_memcached_module.so
Xetc/tengine/modules/ngx_http_mp4_module.so
Xetc/tengine/modules/ngx_http_random_index_module.so
Xetc/tengine/modules/ngx_http_referer_module.so
Xetc/tengine/modules/ngx_http_scgi_module.so
Xetc/tengine/modules/ngx_http_secure_link_module.so
Xetc/tengine/modules/ngx_http_slice_module.so
Xetc/tengine/modules/ngx_http_split_clients_module.so
Xetc/tengine/modules/ngx_http_sub_filter_module.so
Xetc/tengine/modules/ngx_http_sysguard_module.so
Xetc/tengine/modules/ngx_http_trim_filter_module.so
Xetc/tengine/modules/ngx_http_upstream_ip_hash_module.so
Xetc/tengine/modules/ngx_http_upstream_least_conn_module.so
Xetc/tengine/modules/ngx_http_upstream_session_sticky_module.so
Xetc/tengine/modules/ngx_http_user_agent_module.so
Xetc/tengine/modules/ngx_http_userid_filter_module.so
Xetc/tengine/modules/ngx_http_uwsgi_module.so
Xetc/tengine/modules/ngx_http_xslt_filter_module.so
Xsbin/nginx
Xsbin/dso_tool
Xman/man8/nginx.8.gz
X@unexec if [ -z ${UPGRADE_PORT} ] ; then rm -fr %%NGINX_TMPDIR%%; fi
X@dirrmtry etc/tengine/modules
X@dirrmtry etc/tengine/include
33921c1d82b29feeedecfb61befbfe47
echo x - tengine/pkg-descr
sed 's/^X//' >tengine/pkg-descr << '6512b8f85dd3956abc9047b1294d5879'
XNGINX is a high performance edge web server with the lowest memory footprint
Xand the key features to build modern and efficient web infrastructure.
X
XNGINX functionality includes HTTP server, HTTP and mail reverse proxy, caching,
Xload balancing, compression, request throttling, connection multiplexing and
Xreuse, SSL offload and HTTP media streaming.
X
XTENGINE is a fork of nginx byTaoBao.
X
XWWW: http://tengine.taobao.org/
XWWW: http://nginx.org/
XWWW: http://nginx.com/
6512b8f85dd3956abc9047b1294d5879
echo c - tengine/files
mkdir -p tengine/files > /dev/null 2>&1
echo x - tengine/files/extra-patch-calio-iconv-nginx-module-config
sed 's/^X//' >tengine/files/extra-patch-calio-iconv-nginx-module-config << 'f6184b6c392ea111250078b3cb4a6abb'
X--- ../calio-iconv-nginx-module-b37efb5/config.orig	2013-04-16 17:57:17.000000000 -0700
X+++ ../calio-iconv-nginx-module-b37efb5/config	2013-05-01 17:16:28.134624745 -0700
X@@ -39,12 +39,12 @@
X     fi
X 
X     if [ $ngx_found = no ]; then
X-        ngx_feature="libiconv in /usr/local/"
X-        ngx_feature_path="/usr/local/include"
X+        ngx_feature="libiconv in %%PREFIX%%/"
X+        ngx_feature_path="%%PREFIX%%/include"
X         if [ $NGX_RPATH = YES ]; then
X-            ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -liconv"
X+            ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -liconv"
X         else
X-            ngx_feature_libs="-L/usr/local/lib -liconv"
X+            ngx_feature_libs="-L%%PREFIX%%/lib -liconv"
X         fi
X         . auto/feature
X     fi
f6184b6c392ea111250078b3cb4a6abb
echo x - tengine/files/patch-conf-nginx.conf
sed 's/^X//' >tengine/files/patch-conf-nginx.conf << '8c620d08a584167446aac5b6472c4e96'
X--- conf/nginx.conf.orig	2014-01-08 13:24:46.000000000 +0100
X+++ conf/nginx.conf	2014-01-11 18:04:48.015083445 +0100
X@@ -13,12 +13,45 @@
X     worker_connections  1024;
X }
X 
X-# load modules compiled as Dynamic Shared Object (DSO)
X+# Load modules compiled as Dynamic Shared Object (DSO)
X+# Comment out modules you do not wish to load
X #
X-#dso {
X-#    load ngx_http_fastcgi_module.so;
X-#    load ngx_http_rewrite_module.so;
X-#}
X+dso {
X+	load ngx_http_access_module.so;
X+	load ngx_http_addition_filter_module.so;
X+	load ngx_http_autoindex_module.so;
X+	load ngx_http_browser_module.so;
X+	load ngx_http_charset_filter_module.so;
X+	load ngx_http_concat_module.so;
X+	load ngx_http_empty_gif_module.so;
X+	load ngx_http_fastcgi_module.so;
X+	load ngx_http_flv_module.so;
X+	load ngx_http_footer_filter_module.so;
X+	load ngx_http_geoip_module.so;
X+	load ngx_http_image_filter_module.so;
X+	load ngx_http_limit_conn_module.so;
X+	load ngx_http_limit_req_module.so;
X+	load ngx_http_lua_module.so;
X+	load ngx_http_map_module.so;
X+	load ngx_http_memcached_module.so;
X+	load ngx_http_mp4_module.so;
X+	load ngx_http_random_index_module.so;
X+	load ngx_http_referer_module.so;
X+	load ngx_http_scgi_module.so;
X+	load ngx_http_secure_link_module.so;
X+	load ngx_http_slice_module.so;
X+	load ngx_http_split_clients_module.so;
X+	load ngx_http_sub_filter_module.so;
X+	load ngx_http_sysguard_module.so;
X+	load ngx_http_trim_filter_module.so;
X+	load ngx_http_upstream_ip_hash_module.so;
X+	load ngx_http_upstream_least_conn_module.so;
X+	load ngx_http_upstream_session_sticky_module.so;
X+	load ngx_http_user_agent_module.so;
X+	load ngx_http_userid_filter_module.so;
X+	load ngx_http_uwsgi_module.so;
X+	load ngx_http_xslt_filter_module.so;
X+}
X 
X http {
X     include       mime.types;
X@@ -39,7 +72,7 @@
X     #gzip  on;
X 
X     server {
X-        listen       80;
X+        listen       %%HTTP_PORT%%;
X         server_name  localhost;
X 
X         #charset koi8-r;
X@@ -47,7 +80,7 @@
X         #access_log  logs/host.access.log  main;
X 
X         location / {
X-            root   html;
X+            root   %%PREFIX%%/www/nginx;
X             index  index.html index.htm;
X         }
X 
X@@ -57,7 +90,7 @@
X         #
X         error_page   500 502 503 504  /50x.html;
X         location = /50x.html {
X-            root   html;
X+            root   %%PREFIX%%/www/nginx-dist;
X         }
X 
X         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
X@@ -102,16 +135,16 @@
X     # HTTPS server
X     #
X     #server {
X-    #    listen       443;
X+    #    listen       443 ssl;
X     #    server_name  localhost;
X 
X-    #    ssl                  on;
X     #    ssl_certificate      cert.pem;
X     #    ssl_certificate_key  cert.key;
X 
X+    #    ssl_session_cache    shared:SSL:1m;
X     #    ssl_session_timeout  5m;
X 
X-    #    ssl_protocols  SSLv2 SSLv3 TLSv1;
X+    #    ssl_protocols  SSLv3 TLSv1 TLSv1.1 TLSv1.2;
X     #    ssl_ciphers  HIGH:!aNULL:!MD5;
X     #    ssl_prefer_server_ciphers   on;
X 
8c620d08a584167446aac5b6472c4e96
echo x - tengine/files/extra-patch-ngx_http_upstream.h
sed 's/^X//' >tengine/files/extra-patch-ngx_http_upstream.h << 'cd789e22e01c9408339c5566b117c85f'
X--- src/http/ngx_http_upstream.h.orig	2010-01-14 04:20:57.000000000 +0300
X+++ src/http/ngx_http_upstream.h	2010-01-14 04:22:00.000000000 +0300
X@@ -105,6 +105,10 @@
X 
X     ngx_array_t                     *servers;  /* ngx_http_upstream_server_t */
X 
X+    ngx_array_t                     *values;
X+    ngx_array_t                     *lengths;
X+    ngx_uint_t                       retries;
X+
X     ngx_uint_t                       flags;
X     ngx_str_t                        host;
X     u_char                          *file_name;
cd789e22e01c9408339c5566b117c85f
echo x - tengine/files/extra-patch-agentzh-set-misc-nginx-module-config
sed 's/^X//' >tengine/files/extra-patch-agentzh-set-misc-nginx-module-config << '4009e0f94118154e3cb6ba0c5bacbe2e'
X--- ../agentzh-set-misc-nginx-module-6ce586e/config.orig       2011-12-09 10:27:53.861265188 +0300
X+++ ../agentzh-set-misc-nginx-module-6ce586e/config    2011-12-09 10:28:07.107259301 +0300
X@@ -1,10 +1,3 @@
X-if echo $HTTP_MODULES | grep " ndk_http_module" > /dev/null; then
X-    echo "found ngx_devel_kit for ngx_set_misc; looks good."
X-else
X-    echo "error: ngx_devel_kit is required to build ngx_set_misc; please put it before ngx_set_misc." 1>&2
X-    exit 1
X-fi
X-
X ngx_addon_name=ngx_http_set_misc_module
X HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_set_misc_module"
X NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_set_base32.c $ngx_addon_dir/src/ngx_http_set_default_value.c $ngx_addon_dir/src/ngx_http_set_hashed_upstream.c $ngx_addon_dir/src/ngx_http_set_quote_sql.c $ngx_addon_dir/src/ngx_http_set_quote_json.c $ngx_addon_dir/src/ngx_http_set_unescape_uri.c $ngx_addon_dir/src/ngx_http_set_misc_module.c $ngx_addon_dir/src/ngx_http_set_escape_uri.c $ngx_addon_dir/src/ngx_http_set_hash.c $ngx_addon_dir/src/ngx_http_set_local_today.c $ngx_addon_dir/src/ngx_http_set_hex.c $ngx_addon_dir/src/ngx_http_set_base64.c $ngx_addon_dir/src/ngx_http_set_random.c"
4009e0f94118154e3cb6ba0c5bacbe2e
echo x - tengine/files/extra-patch-ngx_http_sflow_config.c
sed 's/^X//' >tengine/files/extra-patch-ngx_http_sflow_config.c << '447abc5167b213c5d73a656996a8c419'
X--- ../nginx-sflow-module-0.9.7/ngx_http_sflow_config.c.orig	2012-06-07 04:52:57.000000000 +0400
X+++ ../nginx-sflow-module-0.9.7/ngx_http_sflow_config.c	2012-06-07 04:59:18.000000000 +0400
X@@ -26,7 +26,6 @@
X         ngx_log_error(NGX_LOG_ERR, log, 0, "getaddrinfo() failed: %s", gai_strerror(err));
X         switch(err) {
X         case EAI_NONAME: break;
X-        case EAI_NODATA: break;
X         case EAI_AGAIN: break; // loop and try again?
X         default: ngx_log_error(NGX_LOG_ERR, log, 0, "getaddrinfo() error: %s", gai_strerror(err)); break;
X         }
447abc5167b213c5d73a656996a8c419
echo x - tengine/files/extra-patch-chaoslawful-drizzle-nginx-module-config
sed 's/^X//' >tengine/files/extra-patch-chaoslawful-drizzle-nginx-module-config << 'a488da3d4dd48411c60f0589f5a333e1'
X--- ../chaoslawful-drizzle-nginx-module-e6937ba/config.orig	2011-12-30 10:26:53.000000000 +0400
X+++ ../chaoslawful-drizzle-nginx-module-e6937ba/config	2011-12-30 10:28:20.000000000 +0400
X@@ -22,12 +22,12 @@
X 
X     if [ $ngx_found = no ]; then
X         # FreeBSD, OpenBSD
X-        ngx_feature="libdrizzle library in /usr/local/"
X-        ngx_feature_path="/usr/local/include/libdrizzle-1.0"
X+        ngx_feature="libdrizzle library in %%PREFIX%%"
X+        ngx_feature_path="%%PREFIX%%/include/libdrizzle"
X         if [ $NGX_RPATH = YES ]; then
X-            ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -ldrizzle"
X+            ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -ldrizzle"
X         else
X-            ngx_feature_libs="-L/usr/local/lib -ldrizzle"
X+            ngx_feature_libs="-L%%PREFIX%%/lib -ldrizzle"
X         fi
X         . auto/feature
X     fi
a488da3d4dd48411c60f0589f5a333e1
echo x - tengine/files/extra-patch-nginx-modsecurity-config
sed 's/^X//' >tengine/files/extra-patch-nginx-modsecurity-config << 'cd96b94293d6826a8e6c66418cb61f99'
X--- ../modsecurity-apache_2.7.5/nginx/modsecurity/config.orig	2013-06-04 10:14:07.000000000 +0400
X+++ ../modsecurity-apache_2.7.5/nginx/modsecurity/config	2013-06-04 10:17:30.000000000 +0400
X@@ -3,5 +3,5 @@
X HTTP_AUX_FILTER_MODULES="ngx_http_modsecurity $HTTP_AUX_FILTER_MODULES"
X NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_modsecurity.c $ngx_addon_dir/apr_bucket_nginx.c $ngx_addon_dir/ngx_pool_context.c"
X NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/apr_bucket_nginx.h $ngx_addon_dir/ngx_pool_context.h"
X-CORE_LIBS="$CORE_LIBS $ngx_addon_dir/../../standalone/.libs/standalone.a -L/usr/local/apr/lib -lapr-1  -L/usr/local/apr/lib -laprutil-1 -lpcre -lxml2 -lz -lm -ldl  "
X-CORE_INCS="$CORE_INCS $ngx_addon_dir $ngx_addon_dir/../../standalone $ngx_addon_dir/../../apache2 /usr/include/libxml2  /usr/local/apache2/include /usr/local/apr/include/apr-1 /usr/local/apr/include/apr-1"
X+CORE_LIBS="$CORE_LIBS $ngx_addon_dir/../../standalone/.libs/standalone.a -lapr-1 -laprutil-1 -lpcre -lxml2 -lz -lm "
X+CORE_INCS="$CORE_INCS $ngx_addon_dir $ngx_addon_dir/../../standalone $ngx_addon_dir/../../apache2 %%PREFIX%%/include/libxml2  %%PREFIX%%/include/apache22 %%PREFIX%%/include/apr-1 "
cd96b94293d6826a8e6c66418cb61f99
echo x - tengine/files/extra-patch-ngx_postgres-config
sed 's/^X//' >tengine/files/extra-patch-ngx_postgres-config << 'd2145566ea0bbe8af15a326ea99e7897'
X--- ../ngx_postgres-0.9/config.orig	2011-12-29 11:17:24.000000000 +0400
X+++ ../ngx_postgres-0.9/config	2011-12-29 11:18:47.000000000 +0400
X@@ -48,12 +48,12 @@
X 
X     if [ $ngx_found = no ]; then
X         # FreeBSD
X-        ngx_feature="libpq library in /usr/local/"
X-        ngx_feature_path="/usr/local/include"
X+        ngx_feature="libpq library in %%PREFIX%%/"
X+        ngx_feature_path="%%PREFIX%%/include"
X         if [ $NGX_RPATH = YES ]; then
X-            ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpq"
X+            ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lpq"
X         else
X-            ngx_feature_libs="-L/usr/local/lib -lpq"
X+            ngx_feature_libs="-L%%PREFIX%%/lib -lpq"
X         fi
X         . auto/feature
X     fi
d2145566ea0bbe8af15a326ea99e7897
echo x - tengine/files/patch-man-nginx
sed 's/^X//' >tengine/files/patch-man-nginx << 'd6ed2cfe856d1e7192ad721df9806e4e'
X--- man/nginx.8.orig 2013-11-22 08:47:33.000000000 +0100
X+++ man/nginx.8	2014-01-17 04:06:57.811820154 +0100
X@@ -1,6 +1,8 @@
X .\"
X .\" Copyright (C) 2010 Sergey A. Osokin
X+.\" Copyright (C) 2014 Jim Ohlstein
X .\" Copyright (C) Nginx, Inc.
X+.\" Copyright (C) Taobao, Inc.
X .\" All rights reserved.
X .\"
X .\" Redistribution and use in source and binary forms, with or without
X@@ -25,7 +27,7 @@
X .\" SUCH DAMAGE.
X .\"
X .\"
X-.Dd March 6, 2012
X+.Dd January 16, 2014
X .Dt NGINX 8
X .Os
X .Sh NAME
X@@ -35,7 +35,7 @@
X .Nd "HTTP and reverse proxy server, mail proxy server"
X .Sh SYNOPSIS
X .Nm
X-.Op Fl ?hqtVv
X+.Op Fl ?dhlmqtVv
X .Op Fl c Ar file
X .Op Fl g Ar directives
X .Op Fl p Ar prefix
X@@ -46,6 +48,13 @@
X It is known for its high performance, stability, rich feature set, simple
X configuration, and low resource consumption.
X .Pp
X+Tengine (pronounced
X+.Dq T engine )
X+is a fork of 
X+.Nm
X+by Taobao in 2011. It supports dynamic shared objects (DSO's) 
X+and has other enhanced features.
X+.Pp
X The options are as follows:
X .Bl -tag -width ".Fl d Ar directives"
X .It Fl ?\& , h
X@@ -53,11 +62,22 @@
X .It Fl c Ar file
X Use an alternative configuration
X .Ar file .
X+.It Fl d
X+Dump the contents of the configuration file, including the 
X+contents of 'included' files.
X .It Fl g Ar directives
X Set global configuration directives.
X See
X .Sx EXAMPLES
X for details.
X+.It Fl l
X+Show all supported directives then exit.
X+.It Fl m
X+Show all compiled-in modules then exit. 
X+Tengine supports DSO modules since 1.4.0.
X+The tag 'static' means static module.
X+The tag 'shared' means dynamic shared module which is also 
X+attached with major and minor version of this modules.
X .It Fl p Ar prefix
X Set the prefix path.
X The default value is
X@@ -113,10 +133,6 @@
X Shut down gracefully.
X .It Dv SIGUSR1
X Reopen log files.
X-.It Dv SIGUSR2
X-Upgrade the
X-.Nm
X-executable on the fly.
X .It Dv SIGWINCH
X Shut down worker processes gracefully.
X .El
X@@ -183,14 +199,20 @@
X .\"Xr nginx.conf 5
X .\"Pp
X Documentation at
X-.Pa http://nginx.org/en/docs/ .
X+.Pa http://nginx.org/en/docs/ 
X+and 
X+.Pa http://tengine.taobao.org/documentation.html .
X .Pp
X For questions and technical support, please refer to
X-.Pa http://nginx.org/en/support.html .
X+.Pa http://nginx.org/en/support.html 
X+and 
X+.Pa http://tengine.taobao.org/ .
X .Sh HISTORY
X Development of
X .Nm
X started in 2002, with the first public release on October 4, 2004.
X+.Pp
X+Tengine was open sourced in 2011.
X .Sh AUTHORS
X .An -nosplit
X .An Igor Sysoev Aq igor@sysoev.ru .
X@@ -199,4 +221,6 @@
X .An Sergey A. Osokin Aq osa@FreeBSD.org.ru
X as a result of compiling many
X .Nm
X-documents from all over the world.
X+documents from all over the world. Tengine specific
X+portions added by 
X+.An Jim Ohlstein Aq jim@ohlste.in
d6ed2cfe856d1e7192ad721df9806e4e
echo x - tengine/files/nginx.in
sed 's/^X//' >tengine/files/nginx.in << 'e7aad54f4f475e5c0e437fe4ab8541f0'
X#!/bin/sh
X# $FreeBSD $
X
X# PROVIDE: nginx
X# REQUIRE: LOGIN cleanvar
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable nginx:
X# nginx_enable (bool):		Set to "NO" by default.
X#				Set it to "YES" to enable nginx
X# nginx_profiles (str):		Set to "" by default.
X#				Define your profiles here.
X# nginx_pid_prefix (str):	Set to "" by default.
X#				When using profiles manually assign value to "nginx_"
X#				for prevent collision with other PIDs names.
X# nginxlimits_enable (bool):	Set to "NO" by default.
X#				Set it to yes to run `limits $limits_args`
X#				just before nginx starts.
X# nginx_flags (str):		Set to "" by default.
X#				Extra flags passed to start command.
X# nginxlimits_args (str):	Default to "-e -U %%WWWOWN%%"
X#				Arguments of pre-start limits run.
X
X. /etc/rc.subr
X
Xname="nginx"
Xrcvar=nginx_enable
X
Xstart_precmd="nginx_precmd"
Xrestart_precmd="nginx_checkconfig"
Xreload_precmd="nginx_checkconfig"
Xconfigtest_cmd="nginx_checkconfig"
Xgracefulstop_cmd="nginx_gracefulstop"
Xcommand="%%PREFIX%%/sbin/nginx"
X_pidprefix="%%NGINX_RUNDIR%%"
Xpidfile="${_pidprefix}/${name}.pid"
X_tmpprefix="%%NGINX_TMPDIR%%"
Xrequired_files=%%PREFIX%%/etc/tengine/nginx.conf
Xextra_commands="reload configtest gracefulstop"
X
X[ -z "$nginx_enable" ]		&& nginx_enable="NO"
X[ -z "$nginxlimits_enable" ]	&& nginxlimits_enable="NO"
X[ -z "$nginxlimits_args" ]	&& nginxlimits_args="-e -U %%WWWOWN%%"
X
Xload_rc_config $name
X
Xif [ -n "$2" ]; then
X	profile="$2"
X	if [ "x${nginx_profiles}" != "x" ]; then
X		pidfile="${_pidprefix}/${nginx_pid_prefix}${profile}.pid"
X		eval nginx_configfile="\${nginx_${profile}_configfile:-}"
X		if [ "x${nginx_configfile}" = "x" ]; then
X			echo "You must define a configuration file (nginx_${profile}_configfile)"
X			exit 1
X		fi
X		required_files="${nginx_configfile}"
X		eval nginx_enable="\${nginx_${profile}_enable:-${nginx_enable}}"
X		eval nginx_flags="\${nginx_${profile}_flags:-${nginx_flags}}"
X		eval nginxlimits_enable="\${nginxlimits_${profile}_enable:-${nginxlimits_enable}}"
X		eval nginxlimits_args="\${nginxlimits_${profile}_args:-${nginxlimits_args}}"
X		nginx_flags="-c ${nginx_configfile} -g \"pid ${pidfile};\" ${nginx_flags}"
X	else
X		echo "$0: extra argument ignored"
X	fi
Xelse
X	if [ "x${nginx_profiles}" != "x" -a "x$1" != "x" ]; then
X		for profile in ${nginx_profiles}; do
X			echo "===> nginx profile: ${profile}"
X			%%PREFIX%%/etc/rc.d/nginx $1 ${profile}
X			retcode="$?"
X			if [ "0${retcode}" -ne 0 ]; then
X				failed="${profile} (${retcode}) ${failed:-}"
X			else
X				success="${profile} ${success:-}"
X			fi
X		done
X		exit 0
X	fi
Xfi
X
X# tmpfs(5)
Xnginx_checktmpdir()
X{
X	if [ ! -d ${_tmpprefix} ] ; then
X		install -d -o %%WWWOWN%% -g %%WWWGRP%% -m 755 ${_tmpprefix}
X	fi
X}
X
Xnginx_checkconfig()
X{
X	nginx_checktmpdir
X
X	echo "Performing sanity check on nginx configuration:"
X	eval ${command} ${nginx_flags} -t
X}
X
Xnginx_gracefulstop()
X{
X	echo "Performing a graceful stop:"
X	sig_stop="QUIT"
X	run_rc_command ${rc_prefix}stop $rc_extra_args || return 1
X}
X
Xnginx_precmd() 
X{
X	nginx_checkconfig
X
X	if checkyesno nginxlimits_enable
X	then
X		eval `/usr/bin/limits ${nginxlimits_args}` 2>/dev/null
X	else
X		return 0
X	fi
X}
X
Xrun_rc_command "$1"
e7aad54f4f475e5c0e437fe4ab8541f0
echo x - tengine/files/extra-patch-ngx_http_sflow_config.h
sed 's/^X//' >tengine/files/extra-patch-ngx_http_sflow_config.h << '0ee1896b8f54624d8c8f283436444705'
X--- ../nginx-sflow-module-0.9.7/ngx_http_sflow_config.h.orig	2012-07-31 21:36:49.000000000 +0400
X+++ ../nginx-sflow-module-0.9.7/ngx_http_sflow_config.h	2012-07-31 21:37:20.000000000 +0400
X@@ -17,7 +17,7 @@
X   -----------------___________________________------------------
X */
X 
X-#define SFWB_DEFAULT_CONFIGFILE "/etc/hsflowd.auto"
X+#define SFWB_DEFAULT_CONFIGFILE "%%PREFIX%%/etc/hsflowd.auto"
X #define SFWB_SEPARATORS " \t\r\n="
X #define SFWB_QUOTES "'\" \t\r\n"
X /* SFWB_MAX LINE LEN must be enough to hold the whole list of targets */
0ee1896b8f54624d8c8f283436444705
echo x - tengine/files/extra-patch-ngx_http_notice_module.c
sed 's/^X//' >tengine/files/extra-patch-ngx_http_notice_module.c << 'de5264320b56e2b1dba91a840a41a8ef'
X--- ../kr-nginx-notice-3c95966/ngx_http_notice_module.c.orig	2009-07-16 18:37:57.000000000 +0200
X+++ ../kr-nginx-notice-3c95966/ngx_http_notice_module.c	2009-07-16 08:09:38.000000000 +0200
X@@ -153,7 +153,7 @@
X         return NGX_HTTP_NOT_ALLOWED;
X     }
X 
X-    rc = ngx_http_discard_body(r);
X+    rc = ngx_http_discard_request_body(r);
X 
X     if (rc != NGX_OK && rc != NGX_AGAIN) {
X         return rc;
de5264320b56e2b1dba91a840a41a8ef
echo x - tengine/Makefile
sed 's/^X//' >tengine/Makefile << '0a79284ef27480c49b747e5319d0095a'
X# Created by: Jim Ohlstein <jim@ohlste.in>
X# $FreeBSD$
X
XPORTNAME=	tengine
XPORTVERSION=	1.5.2
XCATEGORIES=	www
XMASTER_SITES=	https://github.com/alibaba/${PORTNAME}/archive/:${PORTNAME}
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX}:${PORTNAME}
X
XMAINTAINER=	jim@ohlste.in
XCOMMENT=	Robust and small WWW server forked from nginx by Taobao
X
XLICENSE=	BSD2CLAUSE
X
XWRKSRC=	${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION}
X
XUSE_GNOME=	libxml2 \
X		libxslt
X
XLIB_DEPENDS+=	libluajit-5.1.so:${PORTSDIR}/lang/luajit \
X			libgd.so:${PORTSDIR}/graphics/gd \
X			libGeoIP.so:${PORTSDIR}/net/GeoIP
X
XNO_OPTIONS_SORT=	yes
XOPTIONS_DEFINE=	\
X	DEBUG \
X	DEBUGLOG \
X	FILE_AIO \
X	IPV6 \
X	HTTP \
X	HTTP_CACHE \
X	HTTP_DAV \
X	HTTP_GZIP_STATIC \
X	HTTP_PERL \
X	HTTP_REALIP \
X	HTTP_REWRITE \
X	HTTP_SSL \
X	HTTP_STATUS \
X	MAIL \
X	MAIL_IMAP \
X	MAIL_POP3 \
X	MAIL_SMTP \
X	MAIL_SSL \
X	CPP_TEST \
X	TFS \
X	WWW \
X	CACHE_PURGE \
X	ECHO \
X	HEADERS_MORE \
X	HTTP_ACCEPT_LANGUAGE \
X	HTTP_ACCESSKEY \
X	HTTP_AUTH_DIGEST \
X	HTTP_AUTH_LDAP \
X	HTTP_AUTH_PAM \
X	HTTP_AUTH_REQ \
X	HTTP_DAV_EXT \
X	HTTP_EVAL \
X	HTTP_FANCYINDEX \
X	HTTP_MOGILEFS \
X	HTTP_NOTICE \
X	HTTP_PUSH \
X	HTTP_PUSH_STREAM \
X	HTTP_REDIS \
X	HTTP_RESPONSE \
X	HTTP_UPLOAD \
X	HTTP_UPLOAD_PROGRESS \
X	HTTP_UPSTREAM_FAIR \
X	HTTP_VIDEO_THUMBEXTRACTOR \
X	HTTP_ZIP \
X	ARRAYVAR \
X	DRIZZLE \
X	ENCRYPTSESSION \
X	FORMINPUT \
X	GRIDFS \
X	ICONV \
X	LET \
X	MEMC \
X	MODSECURITY \
X	POSTGRES \
X	RDS_CSV \
X	RDS_JSON \
X	REDIS2 \
X	RTMP \
X	SET_MISC \
X	SFLOW \
X	SLOWFS_CACHE \
X	SRCACHE \
X	SUPERVISORD \
X	TCP_PROXY \
X	XRID_HEADER \
X	XSS
X
XOPTIONS_DEFAULT=	IPV6 HTTP HTTP_CACHE HTTP_REWRITE HTTP_STATUS WWW
X
XDEBUGLOG_DESC=			Enable debug log (--with-debug)
XFILE_AIO_DESC=			Enable file aio
XHTTP_DESC=			Enable HTTP module
XHTTP_CACHE_DESC=		Enable http_cache module
XHTTP_DAV_DESC=			Enable http_webdav module
XHTTP_GZIP_STATIC_DESC=		Enable http_gzip_static module
XHTTP_PERL_DESC=			Enable http_perl module
XHTTP_REALIP_DESC=		Enable http_realip module
XHTTP_REWRITE_DESC=			Enable http_rewrite module
XHTTP_SSL_DESC=			Enable http_ssl module
XHTTP_STATUS_DESC=		Enable http_stub_status module
XMAIL_DESC=			Enable IMAP4/POP3/SMTP proxy module
XMAIL_IMAP_DESC=			Enable IMAP4 proxy module
XMAIL_POP3_DESC=			Enable POP3 proxy module
XMAIL_SMTP_DESC=			Enable SMTP proxy module
XMAIL_SSL_DESC=			Enable mail_ssl module
XCPP_TEST_DESC=			Enable CPP Test module
XTFS_DESC=			Enable TaoBao File System
XWWW_DESC=			Enable html sample files
XCACHE_PURGE_DESC=		3rd party cache_purge module
XECHO_DESC=			3rd party echo module
XHEADERS_MORE_DESC=		3rd party headers_more module
XHTTP_ACCEPT_LANGUAGE_DESC=	3rd party accept_language module
XHTTP_ACCESSKEY_DESC=		3rd party http_accesskey module
XHTTP_AUTH_DIGEST_DESC=		3rd party http_authdigest module
XHTTP_AUTH_LDAP_DESC=		3rd party http_auth_ldap module
XHTTP_AUTH_PAM_DESC=		3rd party http_auth_pam module
XHTTP_AUTH_REQ_DESC=		3rd party http_auth_request module
XHTTP_DAV_EXT_DESC=		3rd party webdav_ext module
XHTTP_EVAL_DESC=			3rd party eval module
XHTTP_FANCYINDEX_DESC=		3rd party http_fancyindex module
XHTTP_MOGILEFS_DESC=		3rd party mogilefs module
XHTTP_NOTICE_DESC=		3rd party notice module
XHTTP_PUSH_DESC=			3rd party push module
XHTTP_PUSH_STREAM_DESC=		3rd party push stream module
XHTTP_REDIS_DESC=		3rd party http_redis module
XHTTP_RESPONSE_DESC=		3rd party http_response module
XHTTP_UPLOAD_DESC=		3rd party upload module
XHTTP_UPLOAD_PROGRESS_DESC=	3rd party uploadprogress module
XHTTP_UPSTREAM_FAIR_DESC=	3rd party upstream fair module
XHTTP_VIDEO_THUMBEXTRACTOR_DESC=		3rd party video_thumbextractor module
XHTTP_ZIP_DESC=			3rd party http_zip module
XARRAYVAR_DESC=			3rd party array_var module
XDRIZZLE_DESC=			3rd party drizzlie module
XENCRYPTSESSION_DESC=		3rd party encrypted_session module
XFORMINPUT_DESC=			3rd party form_input module
XGRIDFS_DESC=			3rd party gridfs module
XICONV_DESC=				3rd party iconv module
XLET_DESC=			3rd party let module
XMEMC_DESC=			3rd party memc (memcached) module
XMODSECURITY_DESC=		3rd party mod_security module
XPOSTGRES_DESC=			3rd party postgresql module
XRDS_CSV_DESC=			3rd party rds_csv module
XRDS_JSON_DESC=			3rd party rds_json module
XREDIS2_DESC=			3rd party redis2 module
XRTMP_DESC=			3rd party rtmp module
XSET_MISC_DESC=			3rd party set_misc module
XSFLOW_DESC=			3rd party sflow module
XSLOWFS_CACHE_DESC=		3rd party slowfs_cache module
XSRCACHE_DESC=			3rd party srcache module
XSUPERVISORD_DESC=		3rd party supervisord module
XTCP_PROXY_DESC=			3rd party tcp_proxy module
XXRID_HEADER_DESC=		3rd party x-rid header module
XXSS_DESC=			3rd party xss module
X
XWANT_GNOME=	yes
X
X.include <bsd.port.options.mk>
X
X# FreeBSD 8 and earlier are unsupported
X.if ${OSVERSION} < 900500
XIGNORE=	is unsupported on FreeBSD 8 and earlier
X.endif
X
XNGINX_VARDIR?=	/var
XNGINX_LOGDIR?=	${NGINX_VARDIR}/log
XNGINX_RUNDIR?=	${NGINX_VARDIR}/run
XNGINX_TMPDIR?=	${NGINX_VARDIR}/tmp/nginx
XHTTP_PORT?=	80
X
XNGINX_ACCESSLOG?=	${NGINX_LOGDIR}/nginx-access.log
XNGINX_ERRORLOG?=	${NGINX_LOGDIR}/nginx-error.log
X
XCONFLICTS?=	tengine-devel-[0-9].* nginx-devel-[0-9].* nginx-[0-9].*
X
XUSE_RC_SUBR=	nginx
XSUB_LIST+=	WWWOWN=${WWWOWN} \
X		WWWGRP=${WWWGRP} \
X		NGINX_RUNDIR=${NGINX_RUNDIR} \
X		NGINX_TMPDIR=${NGINX_TMPDIR}
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS+=--prefix=${ETCDIR} \
X		--with-cc-opt="-I ${LOCALBASE}/include" \
X		--with-ld-opt="-L ${LOCALBASE}/lib" \
X		--conf-path=${ETCDIR}/nginx.conf \
X		--sbin-path=${PREFIX}/sbin/nginx \
X		--pid-path=${NGINX_RUNDIR}/nginx.pid \
X		--error-log-path=${NGINX_ERRORLOG} \
X		--user=${WWWOWN} --group=${WWWGRP}
X
X.if empty(PORT_OPTIONS:MHTTP) && empty(PORT_OPTIONS:MMAIL)
XIGNORE=		requires at least HTTP or MAIL to \
X		be defined.  Please do 'make config' again
X.endif
X
X.if ${PORT_OPTIONS:MDEBUG}
XCFLAGS+=	-g
XSTRIP=		#Do not strip if nginx with debug information
X.endif
X
X.if ${PORT_OPTIONS:MDEBUGLOG}
XCONFIGURE_ARGS+=--with-debug
X.endif
X
X.if ${PORT_OPTIONS:MFILE_AIO}
XCONFIGURE_ARGS+=--with-file-aio
X.endif
X
X.if ${PORT_OPTIONS:MIPV6}
XCONFIGURE_ARGS+=--with-ipv6
XCATEGORIES+=	ipv6
X.endif
X
X.if ${PORT_OPTIONS:MHTTP}
XCONFIGURE_ARGS+=--dso-path=${ETCDIR}/modules \
X		--with-http_access_module=shared \
X		--with-http_addition_module=shared \
X		--with-http_autoindex_module=shared \
X		--with-http_browser_module=shared \
X		--with-http_charset_filter_module=shared \
X		--with-http_concat_module=shared \
X		--with-http_empty_gif_module=shared \
X		--with-http_fastcgi_module=shared \
X		--with-http_flv_module=shared \
X		--with-http_footer_filter_module=shared \
X		--with-http_geoip_module=shared \
X		--with-http_image_filter_module=shared \
X		--with-http_limit_conn_module=shared \
X		--with-http_limit_req_module=shared \
X		--with-http_lua_module=shared \
X		--with-http_map_module=shared \
X		--with-http_memcached_module=shared \
X		--with-http_mp4_module=shared \
X		--with-http_random_index_module=shared \
X		--with-http_referer_module=shared \
X		--with-http_scgi_module=shared \
X		--with-http_secure_link_module=shared \
X		--with-http_slice_module=shared \
X		--with-http_split_clients_module=shared \
X		--with-http_sub_module=shared \
X		--with-http_sysguard_module=shared \
X		--with-http_trim_filter_module=shared \
X		--with-http_upstream_ip_hash_module=shared \
X		--with-http_upstream_least_conn_module=shared \
X		--with-http_upstream_session_sticky_module=shared \
X		--with-http_user_agent_module=shared \
X		--with-http_userid_filter_module=shared \
X		--with-http_uwsgi_module=shared \
X		--with-http_xslt_module=shared \
X		--http-client-body-temp-path=${NGINX_TMPDIR}/client_body_temp \
X		--http-fastcgi-temp-path=${NGINX_TMPDIR}/fastcgi_temp \
X		--http-proxy-temp-path=${NGINX_TMPDIR}/proxy_temp \
X		--http-scgi-temp-path=${NGINX_TMPDIR}/scgi_temp \
X		--http-uwsgi-temp-path=${NGINX_TMPDIR}/uwsgi_temp \
X		--http-log-path=${NGINX_ACCESSLOG}
X
X.if ${PORT_OPTIONS:MHTTP_ACCEPT_LANGUAGE}
XGIT_ACCEPT_LANGUAGE_VERSION=	2f69842
XMASTER_SITES+=	https://github.com/giom/nginx_accept_language_module/tarball/master/:accept_language
XDISTFILES+=	giom-nginx_accept_language_module-${GIT_ACCEPT_LANGUAGE_VERSION}.tar.gz:accept_language
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/giom-nginx_accept_language_module-${GIT_ACCEPT_LANGUAGE_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_ACCESSKEY}
XNGINX_ACCESSKEY_VERSION=	2.0.3
XMASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:accesskey/}
XMASTER_SITE_SUBDIR+=	osa/:accesskey
XDISTFILES+=	nginx-accesskey-${NGINX_ACCESSKEY_VERSION}.tar.gz:accesskey
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_AUTH_DIGEST}
XGIT_AUTH_DIGEST_VERSION=	bd1c86a
XMASTER_SITES+=	https://github.com/samizdatco/nginx-http-auth-digest/tarball/master/:auth_digest
XDISTFILES+=	samizdatco-nginx-http-auth-digest-${GIT_AUTH_DIGEST_VERSION}.tar.gz:auth_digest
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/samizdatco-nginx-http-auth-digest-${GIT_AUTH_DIGEST_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_GZIP_STATIC}
XCONFIGURE_ARGS+=--with-http_gzip_static_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_AUTH_LDAP}
X# WWW: https://github.com/kvspb/nginx-auth-ldap
XGIT_HTTP_AUTH_LDAP_VERSION=	c4dc7c9153
XMASTER_SITES+=	LOCAL/rm:http_auth_ldap
XDISTFILES+=	http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION}.tar.gz:http_auth_ldap
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/http_auth_ldap-${GIT_HTTP_AUTH_LDAP_VERSION}
XUSE_OPENLDAP=	yes
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_AUTH_PAM}
XNGINX_AUTH_PAM_VERSION=	1.2
XMASTER_SITES+=	http://web.iti.upv.es/~sto/nginx/:auth_pam
XDISTFILES+=	ngx_http_auth_pam_module-${NGINX_AUTH_PAM_VERSION}.tar.gz:auth_pam
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_http_auth_pam_module-${NGINX_AUTH_PAM_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_AUTH_REQ}
XNGINX_AUTH_REQ_VERSION=	0.2
XMASTER_SITES+=	http://mdounin.ru/files/:auth_request
XDISTFILES+=	ngx_http_auth_request_module-${NGINX_AUTH_REQ_VERSION}.tar.gz:auth_request
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_http_auth_request_module-${NGINX_AUTH_REQ_VERSION}
X.endif
X
X.if empty(PORT_OPTIONS:MHTTP_CACHE)
XCONFIGURE_ARGS+=--without-http-cache
X.endif
X
X.if ${PORT_OPTIONS:MCACHE_PURGE}
XNGINX_CACHE_PURGE_VERSION=	2.1
XMASTER_SITES+=	http://labs.frickle.com/files/:cache_purge
XDISTFILES+=	ngx_cache_purge-${NGINX_CACHE_PURGE_VERSION}.tar.gz:cache_purge
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_cache_purge-${NGINX_CACHE_PURGE_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MECHO}
XNGINX_ECHO_VERSION=	0.50
XGIT_ECHO_VERSION=	0-gf827a4f
XMASTER_SITES+=	https://github.com/agentzh/echo-nginx-module/tarball/v${NGINX_ECHO_VERSION}/:echo
XDISTFILES+=	agentzh-echo-nginx-module-v${NGINX_ECHO_VERSION}-${GIT_ECHO_VERSION}.tar.gz:echo
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-echo-nginx-module-${GIT_ECHO_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MHEADERS_MORE}
XNGINX_HEADERS_MORE_VERSION=	0.24
XGIT_HEADERS_MORE_VERSION=	0-g7a6fd11
XMASTER_SITES+=	https://github.com/agentzh/headers-more-nginx-module/tarball/v${NGINX_HEADERS_MORE_VERSION}/:headers_more
XDISTFILES+=	agentzh-headers-more-nginx-module-v${NGINX_HEADERS_MORE_VERSION}-${GIT_HEADERS_MORE_VERSION}.tar.gz:headers_more
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-headers-more-nginx-module-${GIT_HEADERS_MORE_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_DAV}
XCONFIGURE_ARGS+=--with-http_dav_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_DAV_EXT}
XLIB_DEPENDS+=	libexpat.so:${PORTSDIR}/textproc/expat2
XNGINX_DAV_EXT_VERSION=	0.0.2
XGIT_DAV_EXT_VERSION=	0-g0e07a3e
XMASTER_SITES+=	https://github.com/arut/nginx-dav-ext-module/tarball/v${NGINX_DAV_EXT_VERSION}/:dav_ext
XDISTFILES+=	arut-nginx-dav-ext-module-v${NGINX_DAV_EXT_VERSION}-${GIT_DAV_EXT_VERSION}.tar.gz:dav_ext
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/arut-nginx-dav-ext-module-${GIT_DAV_EXT_VERSION:S/^0-g//} \
X		--with-http_dav_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_EVAL}
XNGINX_EVAL_VERSION=	1.0.3
XGIT_EVAL_VERSION=	0-g125fa2e
XMASTER_SITES+=	https://github.com/vkholodkov/nginx-eval-module/tarball/${NGINX_EVAL_VERSION}/:eval
XDISTFILES+=	vkholodkov-nginx-eval-module-${NGINX_EVAL_VERSION}-${GIT_EVAL_VERSION}.tar.gz:eval
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/vkholodkov-nginx-eval-module-${GIT_EVAL_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_FANCYINDEX}
XNGINX_FANCYINDEX_VERSION=	0.3.1
XMASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:fancyindex/}
XMASTER_SITE_SUBDIR+=	osa/:fancyindex
XDISTFILES+=	ngx-fancyindex-${NGINX_FANCYINDEX_VERSION}.tar.gz:fancyindex
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx-fancyindex-${NGINX_FANCYINDEX_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_GZIP_STATIC}
XCONFIGURE_ARGS+=--with-http_gzip_static_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_MOGILEFS}
XNGINX_MOGILEFS_VERSION=	1.0.4
XMASTER_SITES+=	http://www.grid.net.ru/nginx/download/:mogilefs
XDISTFILES+=	nginx_mogilefs_module-${NGINX_MOGILEFS_VERSION}.tar.gz:mogilefs
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx_mogilefs_module-${NGINX_MOGILEFS_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_NOTICE}
XGIT_NOTICE_VERSION=	0-g3c95966
XMASTER_SITES+=	https://github.com/kr/nginx-notice/tarball/master/:notice
XDISTFILES+=	kr-nginx-notice-${GIT_NOTICE_VERSION}.tar.gz:notice
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/kr-nginx-notice-${GIT_NOTICE_VERSION:S/^0-g//}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-ngx_http_notice_module.c
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_PERL}
XCATEGORIES+=	perl5
XCONFIGURE_ARGS+=--with-http_perl_module
XUSES+=		perl5
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_PUSH}
XNGINX_PUSH_VERSION=	0.692
XMASTER_SITES+=	http://pushmodule.slact.net/downloads/:push
XDISTFILES+=	nginx_http_push_module-${NGINX_PUSH_VERSION}.tar.gz:push
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx_http_push_module-${NGINX_PUSH_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_PUSH_STREAM}
XNGINX_PUSH_STREAM_VERSION=	0.3.5
XGIT_PUSH_STREAM_VERSION=	0-gb6a8c46
XMASTER_SITES+=	https://github.com/wandenberg/nginx-push-stream-module/tarball/${NGINX_PUSH_STREAM_VERSION}/:pushstream
XDISTFILES+=	wandenberg-nginx-push-stream-module-${NGINX_PUSH_STREAM_VERSION}-${GIT_PUSH_STREAM_VERSION}.tar.gz:pushstream
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/wandenberg-nginx-push-stream-module-${GIT_PUSH_STREAM_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_REALIP}
XCONFIGURE_ARGS+=--with-http_realip_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_REDIS}
XNGINX_REDIS_VERSION=	0.3.7
XMASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:redis/}
XMASTER_SITE_SUBDIR+=	osa/:redis
XDISTFILES+=	ngx_http_redis-${NGINX_REDIS_VERSION}.tar.gz:redis
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_http_redis-${NGINX_REDIS_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_RESPONSE}
XNGINX_RESPONSE_VERSION=	0.3
XMASTER_SITES+=	http://catap.ru/downloads/nginx/:response
XDISTFILES+=	ngx_http_response-${NGINX_RESPONSE_VERSION}.tar.gz:response
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_http_response-${NGINX_RESPONSE_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_STATUS}
XCONFIGURE_ARGS+=--with-http_stub_status_module
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_UPLOAD}
XNGINX_UPLOAD_VERSION=	2.2.0
XMASTER_SITES+=	http://www.grid.net.ru/nginx/download/:upload
XDISTFILES+=	nginx_upload_module-${NGINX_UPLOAD_VERSION}.tar.gz:upload
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx_upload_module-${NGINX_UPLOAD_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_UPLOAD_PROGRESS}
XNGINX_UPLOADPROGRESS_VERSION=	0.9.0
XGIT_UPLOADPROGRESS_VERSION=	0-ga788dea
XMASTER_SITES+=	https://github.com/masterzen/nginx-upload-progress-module/tarball/v${NGINX_UPLOADPROGRESS_VERSION}/:uploadprogress
XDISTFILES+=	masterzen-nginx-upload-progress-module-v${NGINX_UPLOADPROGRESS_VERSION}-${GIT_UPLOADPROGRESS_VERSION}.tar.gz:uploadprogress
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/masterzen-nginx-upload-progress-module-${GIT_UPLOADPROGRESS_VERSION:S/^0-g//}
X.endif
X
X.if !empty(PORT_OPTIONS:MHTTP_UPSTREAM_FAIR) || !empty(PORT_OPTIONS:MSUPERVISORD)
XNGINX_UPSTREAM_FAIR_VERSION=	20090923
XMASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:upstreamfair/}
XMASTER_SITE_SUBDIR+=	osa/:upstreamfair
XDISTFILES+=	nginx_upstream_fair-${NGINX_UPSTREAM_FAIR_VERSION}.tar.gz:upstreamfair
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx_upstream_fair-${NGINX_UPSTREAM_FAIR_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_VIDEO_THUMBEXTRACTOR}
XLIB_DEPENDS+=	libjpeg.so:${PORTSDIR}/graphics/jpeg \
X			libavformat.so:${PORTSDIR}/multimedia/ffmpeg \
X			libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
X			libavutil.so:${PORTSDIR}/multimedia/ffmpeg \
X			libswscale.so:${PORTSDIR}/multimedia/ffmpeg \
X			libMagickWand.so:${PORTSDIR}/graphics/ImageMagick
XNGINX_VIDEO_THUMBEXTRACTOR_VERSION=	0.2.0
XGIT_VIDEO_THUMBEXTRACTOR_VERSION=	0-g9406457
XMASTER_SITES+=	https://github.com/wandenberg/nginx-video-thumbextractor-module/tarball/${NGINX_VIDEO_THUMBEXTRACTOR_VERSION}/:videothumbextractor
XDISTFILES+=	wandenberg-nginx-video-thumbextractor-module-${NGINX_VIDEO_THUMBEXTRACTOR_VERSION}-${GIT_VIDEO_THUMBEXTRACTOR_VERSION}.tar.gz:videothumbextractor
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/wandenberg-nginx-video-thumbextractor-module-${GIT_VIDEO_THUMBEXTRACTOR_VERSION:S/^0-g//} \
X			--with-cc-opt="-I ${LOCALBASE}/include -I ${LOCALBASE}/include/ImageMagick"
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_ZIP}
XNGINX_ZIP_VERSION=	1.1.6
XMASTER_SITES+=	http://mod-zip.googlecode.com/files/:zip
XDISTFILES+=	mod_zip-${NGINX_ZIP_VERSION}.tar.gz:zip
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/mod_zip-${NGINX_ZIP_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MDRIZZLE}
XLIB_DEPENDS+=	libdrizzle.so:${PORTSDIR}/databases/libdrizzle
XNGINX_DRIZZLE_VERSION=	0.1.6
XGIT_DRIZZLE_VERSION=	0-ge6937ba
XMASTER_SITES+=	https://github.com/chaoslawful/drizzle-nginx-module/tarball/v${NGINX_DRIZZLE_VERSION}/:drizzle
XDISTFILES+=	chaoslawful-drizzle-nginx-module-v${NGINX_DRIZZLE_VERSION}-${GIT_DRIZZLE_VERSION}.tar.gz:drizzle
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/chaoslawful-drizzle-nginx-module-${GIT_DRIZZLE_VERSION:S/^0-g//}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-chaoslawful-drizzle-nginx-module-config
X.endif
X
X.if ${PORT_OPTIONS:MARRAYVAR} || ${PORT_OPTIONS:MENCRYPTSESSION} || ${PORT_OPTIONS:MFORMINPUT} || ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MSET_MISC}
XWITH_HTTP_REWRITE=	yes
XNGINX_DEVEL_KIT_VERSION=	0.2.19
XGIT_DEVEL_KIT_VERSION=	0-g8dd0df5
XMASTER_SITES+=	https://github.com/simpl/ngx_devel_kit/tarball/v${NGINX_DEVEL_KIT_VERSION}/:devel_kit
XDISTFILES+=	simpl-ngx_devel_kit-v${NGINX_DEVEL_KIT_VERSION}-${GIT_DEVEL_KIT_VERSION}.tar.gz:devel_kit
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/simpl-ngx_devel_kit-${GIT_DEVEL_KIT_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MENCRYPTSESSION}
XNGINX_ENCRYPTSESSION_VERSION=	0.03
XGIT_ENCRYPTSESSION_VERSION=	0-g49d741b
XMASTER_SITES+=	https://github.com/agentzh/encrypted-session-nginx-module/tarball/v${NGINX_ENCRYPTSESSION_VERSION}/:encryptsession
XDISTFILES+=	agentzh-encrypted-session-nginx-module-v${NGINX_ENCRYPTSESSION_VERSION}-${GIT_ENCRYPTSESSION_VERSION}.tar.gz:encryptsession
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-encrypted-session-nginx-module-${GIT_ENCRYPTSESSION_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MGRIDFS}
XNGINX_GRIDFS_VERSION=	0.8
XGIT_GRIDFS_VERSION=	0-gb5f8113
XMONGO_C_DRIVER_VERSION=		0.3.1
XGIT_MONGO_C_DRIVER_VERSION=	0-g9b4b232
XMASTER_SITES+=	https://github.com/mdirolf/nginx-gridfs/tarball/v${NGINX_GRIDFS_VERSION}/:gridfs
XMASTER_SITES+=	https://github.com/mongodb/mongo-c-driver/tarball/v${MONGO_C_DRIVER_VERSION}/:mongo_c
XDISTFILES+=	mdirolf-nginx-gridfs-v${NGINX_GRIDFS_VERSION}-${GIT_GRIDFS_VERSION}.tar.gz:gridfs
XDISTFILES+=	mongodb-mongo-c-driver-v${MONGO_C_DRIVER_VERSION}-${GIT_MONGO_C_DRIVER_VERSION}.tar.gz:mongo_c
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/mdirolf-nginx-gridfs-${GIT_GRIDFS_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MLET}
XNGINX_LET_VERSION=	0.0.4
XGIT_LET_VERSION=	0-ga5e1dc5
XMASTER_SITES+=	https://github.com/arut/nginx-let-module/tarball/v${NGINX_LET_VERSION}/:let
XDISTFILES+=	arut-nginx-let-module-v${NGINX_LET_VERSION}-${GIT_LET_VERSION}.tar.gz:let
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/arut-nginx-let-module-${GIT_LET_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MMEMC}
XNGINX_MEMC_VERSION=	0.14
XGIT_MEMC_VERSION=	0-gde4cf86
XMASTER_SITES+=	https://github.com/agentzh/memc-nginx-module/tarball/v${NGINX_MEMC_VERSION}/:memc
XDISTFILES+=	agentzh-memc-nginx-module-v${NGINX_MEMC_VERSION}-${GIT_MEMC_VERSION}.tar.gz:memc
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-memc-nginx-module-${GIT_MEMC_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MMODSECURITY}
XNGINX_MODSECURITY_VERSION=	2.7.5
XLIB_DEPENDS+=	libpcre.so:${PORTSDIR}/devel/pcre \
X	libcurl.so:${PORTSDIR}/ftp/curl \
X	libapr-1.so:${PORTSDIR}/devel/apr1
XUSE_APACHE=	22+
XMASTER_SITES+=	http://www.modsecurity.org/tarball/${NGINX_MODSECURITY_VERSION}/:modsecurity
XDISTFILES+=	modsecurity-apache_${NGINX_MODSECURITY_VERSION}.tar.gz:modsecurity
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/modsecurity-apache_${NGINX_MODSECURITY_VERSION}/nginx/modsecurity
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-nginx-modsecurity-config
X.endif
X
X.if ${PORT_OPTIONS:MHTTP_REWRITE}
XWITH_HTTP_REWRITE=	yes
X.endif
X
X.if ${PORT_OPTIONS:MPOSTGRES}
XUSE_PGSQL=	yes
XWITH_HTTP_REWRITE=	yes
XNGINX_POSTGRES_VERSION=	0.9
XMASTER_SITES+=	http://labs.frickle.com/files/:postgres
XDISTFILES+=	ngx_postgres-${NGINX_POSTGRES_VERSION}.tar.gz:postgres
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_VERSION}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-ngx_postgres-config
X.endif
X
X.if ${PORT_OPTIONS:MRDS_CSV}
XNGINX_RDS_CSV_VERSION=	0.05
XGIT_RDS_CSV_VERSION=	0-g607e26b
XMASTER_SITES+=	https://github.com/agentzh/rds-csv-nginx-module/tarball/v${NGINX_RDS_CSV_VERSION}/:rdscsv
XDISTFILES+=	agentzh-rds-csv-nginx-module-v${NGINX_RDS_CSV_VERSION}-${GIT_RDS_CSV_VERSION}.tar.gz:rdscsv
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-rds-csv-nginx-module-${GIT_RDS_CSV_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MRDS_JSON}
XNGINX_RDS_JSON_VERSION=	0.13
XGIT_RDS_JSON_VERSION=	0-g8292070
XMASTER_SITES+=	https://github.com/agentzh/rds-json-nginx-module/tarball/v${NGINX_RDS_JSON_VERSION}/:rdsjson
XDISTFILES+=	agentzh-rds-json-nginx-module-v${NGINX_RDS_JSON_VERSION}-${GIT_RDS_JSON_VERSION}.tar.gz:rdsjson
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-rds-json-nginx-module-${GIT_RDS_JSON_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MREDIS2}
XNGINX_REDIS2_VERSION=	0.10
XGIT_REDIS2_VERSION=	0-g78a7622
XMASTER_SITES+=	https://github.com/agentzh/redis2-nginx-module/tarball/v${NGINX_REDIS2_VERSION}/:redis2
XDISTFILES+=	agentzh-redis2-nginx-module-v${NGINX_REDIS2_VERSION}-${GIT_REDIS2_VERSION}.tar.gz:redis2
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-redis2-nginx-module-${GIT_REDIS2_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MRTMP}
XNGINX_RTMP_VERSION=	1.0.8
XMASTER_SITES+=	https://github.com/arut/nginx-rtmp-module/archive/v${NGINX_RTMP_VERSION}/:rtmp
XDISTFILES+=	rtmp-nginx-module-v${NGINX_RTMP_VERSION}.tar.gz:rtmp
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx-rtmp-module-${NGINX_RTMP_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MSET_MISC}
XNGINX_SET_MISC_VERSION=	0.23
XGIT_SET_MISC_VERSION=	0-g6ce586e
XMASTER_SITES+=	https://github.com/agentzh/set-misc-nginx-module/tarball/v${NGINX_SET_MISC_VERSION}/:setmisc
XDISTFILES+=	agentzh-set-misc-nginx-module-v${NGINX_SET_MISC_VERSION}-${GIT_SET_MISC_VERSION}.tar.gz:setmisc
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-set-misc-nginx-module-${GIT_SET_MISC_VERSION:S/^0-g//}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-agentzh-set-misc-nginx-module-config
X.endif
X
X.if ${PORT_OPTIONS:MSFLOW}
XNGINX_SFLOW_VERSION=	0.9.7
XMASTER_SITES+=	http://nginx-sflow-module.googlecode.com/files/:sflow
XDISTFILES+=	nginx-sflow-module-${NGINX_SFLOW_VERSION}.tar.gz:sflow
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx-sflow-module-${NGINX_SFLOW_VERSION}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-ngx_http_sflow_config.c \
X		${PATCHDIR}/extra-patch-ngx_http_sflow_config.h
X.endif
X
X.if ${PORT_OPTIONS:MSLOWFS_CACHE}
XNGINX_SLOWFS_CACHE_VERSION=	1.10
XMASTER_SITES+=	http://labs.frickle.com/files/:slowfs_cache
XDISTFILES+=	ngx_slowfs_cache-${NGINX_SLOWFS_CACHE_VERSION}.tar.gz:slowfs_cache
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_slowfs_cache-${NGINX_SLOWFS_CACHE_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MSRCACHE}
XNGINX_SRCACHE_VERSION=	0.24
XGIT_SRCACHE_VERSION=	0-g33f0f29
XMASTER_SITES+=	https://github.com/agentzh/srcache-nginx-module/tarball/v${NGINX_SRCACHE_VERSION}/:srcache
XDISTFILES+=	agentzh-srcache-nginx-module-v${NGINX_SRCACHE_VERSION}-${GIT_SRCACHE_VERSION}.tar.gz:srcache
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-srcache-nginx-module-${GIT_SRCACHE_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MSUPERVISORD}
XNGINX_SUPERVISORD_VERSION=	1.4
XMASTER_SITES+=	http://labs.frickle.com/files/:supervisord
XDISTFILES+=	ngx_supervisord-${NGINX_SUPERVISORD_VERSION}.tar.gz:supervisord
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_supervisord-${NGINX_SUPERVISORD_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MTCP_PROXY}
XNGINX_TCP_PROXY_VERSION=	0.26
XGIT_TCP_PROXY_VERSION=	0-gb83e5a6
XMASTER_SITES+=	https://github.com/yaoweibin/nginx_tcp_proxy_module/tarball/v${NGINX_TCP_PROXY_VERSION}/:tcp_proxy
XDISTFILES+=	yaoweibin-nginx_tcp_proxy_module-v${NGINX_TCP_PROXY_VERSION}-${GIT_TCP_PROXY_VERSION}.tar.gz:tcp_proxy
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/yaoweibin-nginx_tcp_proxy_module-${GIT_TCP_PROXY_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MXRID_HEADER}
XGIT_XRID_VERSION=	0daa3cc
XMASTER_SITES+=	https://github.com/gabor/nginx-x-rid-header/tarball/master/:xrid
XDISTFILES+=	gabor-nginx-x-rid-header-${GIT_XRID_VERSION}.tar.gz:xrid
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/gabor-nginx-x-rid-header-${GIT_XRID_VERSION}
X.endif
X
X.if ${PORT_OPTIONS:MXSS}
XNGINX_XSS_VERSION=	0.04
XGIT_XSS_VERSION=	0-g7e37038
XMASTER_SITES+=	https://github.com/agentzh/xss-nginx-module/tarball/v${NGINX_XSS_VERSION}/:xss
XDISTFILES+=	agentzh-xss-nginx-module-v${NGINX_XSS_VERSION}-${GIT_XSS_VERSION}.tar.gz:xss
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-xss-nginx-module-${GIT_XSS_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MCPP_TEST}
XCONFIGURE_ARGS+=--with-cpp_test_module
X.endif
X
X.if ${PORT_OPTIONS:MTFS}
XLIB_DEPENDS+=	libyajl.so:${PORTSDIR}/devel/yajl
XCONFIGURE_ARGS+=--with-http_tfs_module
X.endif
X
X.if ${PORT_OPTIONS:MWWW}
XPLIST_SUB+=	WWWDATA=""
X.else
XPLIST_SUB+=	WWWDATA="@comment "
X.endif
X
X.else
XCONFIGURE_ARGS+=--without-http
XPLIST_SUB+=	WWWDATA="@comment "
X.endif		# WITH_HTTP
X
X.if ${PORT_OPTIONS:MMAIL}
XCONFIGURE_ARGS+=--with-mail
X.if empty(PORT_OPTIONS:MMAIL_IMAP)
XCONFIGURE_ARGS+=--without-mail_imap_module
X.endif
X.if empty(PORT_OPTIONS:MMAIL_POP3)
XCONFIGURE_ARGS+=--without-mail_pop3_module
X.endif
X.if empty(PORT_OPTIONS:MMAIL_SMTP)
XCONFIGURE_ARGS+=--without-mail_smtp_module
X.endif
X.if ${PORT_OPTIONS:MMAIL_SSL}
XNGINX_OPENSSL=	yes
XCONFIGURE_ARGS+=--with-mail_ssl_module
X.endif
X.endif		# WITH_MAIL
X
X.if ${PORT_OPTIONS:MHTTP_SSL}
XWITH_HTTP_SSL=	yes
X.endif
X
X.if ${PORT_OPTIONS:MARRAYVAR}
XNGINX_ARRAYVAR_VERSION=	0.03
XGIT_ARRAYVAR_VERSION=	0-g4676747
XMASTER_SITES+=	https://github.com/agentzh/array-var-nginx-module/tarball/v${NGINX_ARRAYVAR_VERSION}/:arrayvar
XDISTFILES+=	agentzh-array-var-nginx-module-v${NGINX_ARRAYVAR_VERSION}-${GIT_ARRAYVAR_VERSION}.tar.gz:arrayvar
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/agentzh-array-var-nginx-module-${GIT_ARRAYVAR_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MFORMINPUT}
XNGINX_FORMINPUT_VERSION=	0.07
XGIT_FORMINPUT_VERSION=		0-g78de845
XMASTER_SITES+=	https://github.com/calio/form-input-nginx-module/tarball/v${NGINX_FORMINPUT_VERSION}/:forminput
XDISTFILES+=	calio-form-input-nginx-module-v${NGINX_FORMINPUT_VERSION}-${GIT_FORMINPUT_VERSION}.tar.gz:forminput
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/calio-form-input-nginx-module-${GIT_FORMINPUT_VERSION:S/^0-g//}
X.endif
X
X.if ${PORT_OPTIONS:MICONV}
XUSES+=		iconv
XNGINX_ICONV_VERSION=	0.10
XGIT_ICONV_VERSION=	0-gb37efb5
XMASTER_SITES+=	https://github.com/calio/iconv-nginx-module/tarball/v${NGINX_ICONV_VERSION}/:iconv
XDISTFILES+=	calio-iconv-nginx-module-v${NGINX_ICONV_VERSION}-${GIT_ICONV_VERSION}.tar.gz:iconv
XCONFIGURE_ARGS+=--add-module=${WRKDIR}/calio-iconv-nginx-module-${GIT_ICONV_VERSION:S/^0-g//}
XEXTRA_PATCHES+=	${PATCHDIR}/extra-patch-calio-iconv-nginx-module-config
X.endif
X
XPLIST_SUB+=	NGINX_TMPDIR=${NGINX_TMPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
X
XUSERS?=	${WWWOWN}
XGROUPS?=${WWWGRP}
X
X.if defined(NGINX_OPENSSL)
XUSE_OPENSSL=	yes
XWITH_OPENSSL_BASE=	yes
X.endif
X
X.if defined(WITH_HTTP_REWRITE)
XLIB_DEPENDS+=	libpcre.so:${PORTSDIR}/devel/pcre
XCONFIGURE_ARGS+=--with-pcre
X.else
XPKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nopcre
XCONFIGURE_ARGS+=--without-http_rewrite_module \
X		--without-pcre
X.endif
X
X.if defined(WITH_HTTP_SSL)
XNGINX_OPENSSL=	yes
XCONFIGURE_ARGS+=--with-http_ssl_module
X.endif
X
Xpre-everything::
X	@${ECHO_MSG}
X.if ${PORT_OPTIONS:MHTTP_UPSTREAM_FAIR}
X	@${ECHO_MSG} "Enable http_ssl module to build upstream_fair with SSL support"
X.endif
X	@${ECHO_MSG}
X
Xpost-extract:
X.if ${PORT_OPTIONS:MGRIDFS}
X	@${RMDIR} ${WRKDIR}/mdirolf-nginx-gridfs-${GIT_GRIDFS_VERSION:S/^0-g//}/mongo-c-driver/
X	@${MV} \
X	${WRKDIR}/mongodb-mongo-c-driver-${GIT_MONGO_C_DRIVER_VERSION:S/^0-g//}/ \
X	${WRKDIR}/mdirolf-nginx-gridfs-${GIT_GRIDFS_VERSION:S/^0-g//}/mongo-c-driver/
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} 's!%%HTTP_PORT%%!${HTTP_PORT}!; \
X		s!%%PREFIX%%!${PREFIX}!' \
X		${WRKSRC}/conf/nginx.conf
X.if ${PORT_OPTIONS:MHTTP_ACCESSKEY}
X	@${REINPLACE_CMD} \
X		's!$$HTTP_ACCESSKEY_MODULE!ngx_http_accesskey_module!' \
X		${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_VERSION}/config
X.endif
X# Linker error acquire if --std=c99 defined, add "static" to inline function
X.if ${PORT_OPTIONS:MHTTP_ZIP}
X	@${REINPLACE_CMD} \
X		's!^inline!static inline!' \
X		${WRKDIR}/mod_zip-${NGINX_ZIP_VERSION}/ngx_http_zip_parsers.*
X.endif
X.if ${PORT_OPTIONS:MDRIZZLE}
X	@${REINPLACE_CMD} \
X		's!%%PREFIX%%!${LOCALBASE}!g' \
X		${WRKDIR}/chaoslawful-drizzle-nginx-module-${GIT_DRIZZLE_VERSION:S/^0-g//}/config
X.endif
X# Respect CFLAGS by remove needless --std=c99 flag
X.if ${PORT_OPTIONS:MGRIDFS}
X	@${REINPLACE_CMD} \
X		's!--std=c99!-DMONGO_HAVE_STDINT!' \
X		${WRKDIR}/mdirolf-nginx-gridfs-${GIT_GRIDFS_VERSION:S/^0-g//}/config
X.endif
X.if ${PORT_OPTIONS:MPOSTGRES}
X	@${REINPLACE_CMD} \
X		's!%%PREFIX%%!${LOCALBASE}!g' \
X		${WRKDIR}/ngx_postgres-${NGINX_POSTGRES_VERSION}/config
X.endif
X.if ${PORT_OPTIONS:MSFLOW}
X	@${REINPLACE_CMD} \
X		's!%%PREFIX%%!${LOCALBASE}!g' \
X		${WRKDIR}/nginx-sflow-module-${NGINX_SFLOW_VERSION}/ngx_http_sflow_config.h
X.endif
X.if ${PORT_OPTIONS:MDRIZZLE}
X	@${REINPLACE_CMD} '584d' \
X		${WRKDIR}/chaoslawful-drizzle-nginx-module-${GIT_DRIZZLE_VERSION:S/^0-g//}/src/ngx_http_drizzle_util.c
X.endif
X.if ${PORT_OPTIONS:MSUPERVISORD}
X	( cd ${WRKDIR}/nginx_upstream_fair-${NGINX_UPSTREAM_FAIR_VERSION} && \
X		${PATCH} -p0 < \
X			${WRKDIR}/ngx_supervisord-${NGINX_SUPERVISORD_VERSION}/patches/ngx_http_upstream_fair_module.patch )
X	( cd ${WRKSRC} && \
X		${PATCH} -p0 < \
X			${WRKDIR}/ngx_supervisord-${NGINX_SUPERVISORD_VERSION}/patches/ngx_http_upstream_init_busy-0.8.17.patch )
X.endif
X.if ${PORT_OPTIONS:MTCP_PROXY}
X	( cd ${WRKSRC} && \
X		${PATCH} -p1 < \
X			${WRKDIR}/yaoweibin-nginx_tcp_proxy_module-${GIT_TCP_PROXY_VERSION:S/^0-g//}/tcp.patch )
X.endif
X.if ${PORT_OPTIONS:MICONV}
X	@${REINPLACE_CMD} \
X		's!%%PREFIX%%!${LOCALBASE}!g' \
X		${WRKDIR}/calio-iconv-nginx-module-${GIT_ICONV_VERSION:S/^0-g//}/config
X.endif
X.if ${PORT_OPTIONS:MMODSECURITY}
X	@${REINPLACE_CMD} \
X		's!%%PREFIX%%!${LOCALBASE}!g' \
X		${WRKDIR}/modsecurity-apache_${NGINX_MODSECURITY_VERSION}/nginx/modsecurity/config
X.endif
X
Xpre-configure:
X.if ${PORT_OPTIONS:MMODSECURITY}
X	( cd ${WRKDIR}/modsecurity-apache_${NGINX_MODSECURITY_VERSION} && \
X		CC="${CC}" ./${CONFIGURE_SCRIPT} --enable-standalone-module && \
X		${MAKE} )
X.endif
X
Xdo-build:
X	@cd ${WRKSRC} && ${MAKE}
X
Xdo-install:
X	${MKDIR}  ${STAGEDIR}${ETCDIR}/modules
X	${MKDIR}  ${STAGEDIR}${ETCDIR}/include
X	${MKDIR}  ${STAGEDIR}${NGINX_TMPDIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${STAGEDIR}${PREFIX}/sbin
X	${INSTALL_SCRIPT} ${WRKSRC}/objs/dso_tool ${STAGEDIR}${PREFIX}/sbin
X.for i in koi-utf koi-win win-utf
X	${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}
X.endfor
X.for i in *.so
X	${INSTALL_PROGRAM} ${WRKSRC}/objs/modules/${i} ${STAGEDIR}${ETCDIR}/modules
X.endfor
X.for i in *.h
X	${INSTALL_DATA} ${WRKSRC}/src/core/${i} ${STAGEDIR}${ETCDIR}/include
X	${INSTALL_DATA} ${WRKSRC}/src/event/${i} ${STAGEDIR}${ETCDIR}/include
X	${INSTALL_DATA} ${WRKSRC}/src/os/unix/${i} ${STAGEDIR}${ETCDIR}/include
X	${INSTALL_DATA} ${WRKSRC}/src/http/${i} ${STAGEDIR}${ETCDIR}/include
X	${INSTALL_DATA} ${WRKSRC}/src/http/modules/${i} ${STAGEDIR}${ETCDIR}/include
X	${INSTALL_DATA} ${WRKSRC}/src/http/modules/lua/${i} ${STAGEDIR}${ETCDIR}/include
X.endfor
X.for i in ngx_auto_headers.h ngx_auto_config.h
X	${INSTALL_DATA} ${WRKSRC}/objs/${i} ${STAGEDIR}${ETCDIR}/include
X.endfor
X.for i in fastcgi_params mime.types nginx.conf scgi_params uwsgi_params
X	${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}/${i}-dist
X.endfor
X.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MWWW)
X	${MKDIR} ${STAGEDIR}${PREFIX}/www/nginx-dist
X.for i in index.html 50x.html
X	${INSTALL_DATA} ${WRKSRC}/html/${i} ${STAGEDIR}${PREFIX}/www/nginx-dist
X.endfor
X	${ECHO_CMD} "" >>${STAGEDIR}${PREFIX}/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
X.endif
X
X.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MHTTP_PERL)
X	${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
X	${INSTALL_PROGRAM} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
X		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
X	${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.bs \
X		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx
X	${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
X		${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/
X.endif
X
Xpost-install:
X.if !empty(PORT_OPTIONS:MHTTP) && !empty(PORT_OPTIONS:MHTTP_PERL)
X	${ECHO_CMD} ${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx/nginx.so >> ${TMPPLIST}
X	${ECHO_CMD} ${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx/nginx.bs >> ${TMPPLIST}
X	${ECHO_CMD} ${SITE_PERL_REL}/${PERL_ARCH}/nginx.pm >> ${TMPPLIST}
X	${ECHO_CMD} @dirrm ${SITE_PERL_REL}/${PERL_ARCH}/auto/nginx >> ${TMPPLIST}
X.endif
X	@${INSTALL_MAN} ${WRKSRC}/objs/nginx.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
X
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "For more info and documentation of advanced features, please visit http://tengine.taobao.org/."
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
0a79284ef27480c49b747e5319d0095a
echo x - tengine/distinfo
sed 's/^X//' >tengine/distinfo << '66d96682fa221d3cbd50e5d60d8f3c0e'
XSHA256 (tengine-1.5.2.tar.gz) = 9cec5682c58b37a8e3479004dcb069c91cb5a3b86f4604dda5000bb0784e5d22
XSIZE (tengine-1.5.2.tar.gz) = 1408814
XSHA256 (giom-nginx_accept_language_module-2f69842.tar.gz) = fbcdf792160a1eff7b9549aeb5209d6e76716ff8e86b05e42c90b2d2f858e011
XSIZE (giom-nginx_accept_language_module-2f69842.tar.gz) = 3399
XSHA256 (nginx-accesskey-2.0.3.tar.gz) = d9e94321e78a02de16c57f3e048fd31059fd8116ed03d6de7180f435c52502b1
XSIZE (nginx-accesskey-2.0.3.tar.gz) = 2632
XSHA256 (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = e223f55fd97e56425e232d8698e024707d1b2ed3714eff7d91a4d1ca76b4cbee
XSIZE (samizdatco-nginx-http-auth-digest-bd1c86a.tar.gz) = 14454
XSHA256 (http_auth_ldap-c4dc7c9153.tar.gz) = ac082a36afdbcfd883303bc2b1aaea5f2b4d2a772ad8eec9ecf3328e81300e1a
XSIZE (http_auth_ldap-c4dc7c9153.tar.gz) = 5323
XSHA256 (ngx_http_auth_pam_module-1.2.tar.gz) = 5a85970ba61a99f55a26d2536a11d512b39bbd622f5737d25a9a8c10db81efa9
XSIZE (ngx_http_auth_pam_module-1.2.tar.gz) = 5424
XSHA256 (ngx_http_auth_request_module-0.2.tar.gz) = eea5d0ec02bba93d0b204a034230cc61462b60497cbac6f581d7e008a9262ba4
XSIZE (ngx_http_auth_request_module-0.2.tar.gz) = 6736
XSHA256 (ngx_cache_purge-2.1.tar.gz) = 424005af0c04e59ffa65a65e446081d4f95ee76a801a7555e001c67810bcb3b9
XSIZE (ngx_cache_purge-2.1.tar.gz) = 10535
XSHA256 (agentzh-echo-nginx-module-v0.50-0-gf827a4f.tar.gz) = 0121dd5a8053d6960c9acc364f7552db1bcc64aa4340d0bf7f6d09d3125cfbe9
XSIZE (agentzh-echo-nginx-module-v0.50-0-gf827a4f.tar.gz) = 62907
XSHA256 (agentzh-headers-more-nginx-module-v0.24-0-g7a6fd11.tar.gz) = 1bc8e48da5c6b9968620114776be2751ab600c7953a04c08e16901de3ef2aec2
XSIZE (agentzh-headers-more-nginx-module-v0.24-0-g7a6fd11.tar.gz) = 27666
XSHA256 (arut-nginx-dav-ext-module-v0.0.2-0-g0e07a3e.tar.gz) = a0d6fa256e354ce48c06e1f689d26ebb2f7b75f71ce682e34ae6c29331a7fbff
XSIZE (arut-nginx-dav-ext-module-v0.0.2-0-g0e07a3e.tar.gz) = 6065
XSHA256 (vkholodkov-nginx-eval-module-1.0.3-0-g125fa2e.tar.gz) = 945046c42d973be9293e03ab41e3a0e04677524b2cd813cfc5146cf1d2f0ab8f
XSIZE (vkholodkov-nginx-eval-module-1.0.3-0-g125fa2e.tar.gz) = 5727
XSHA256 (ngx-fancyindex-0.3.1.tar.gz) = 877e383c6bc06be92abb88f5ac251a165b63feb5f4828d52a554efc19a3f7c7d
XSIZE (ngx-fancyindex-0.3.1.tar.gz) = 13071
XSHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
XSIZE (nginx_mogilefs_module-1.0.4.tar.gz) = 11208
XSHA256 (kr-nginx-notice-0-g3c95966.tar.gz) = bb0b8c603b2df206aeb13100fb60c1328aa6a69d0ac7f411e5dabe8fdb2affce
XSIZE (kr-nginx-notice-0-g3c95966.tar.gz) = 3348
XSHA256 (nginx_http_push_module-0.692.tar.gz) = 64868708071aa21dbc4c7a07d149dd6ec9108fb7eaf2aad5ad069406151f17fe
XSIZE (nginx_http_push_module-0.692.tar.gz) = 29119
XSHA256 (wandenberg-nginx-push-stream-module-0.3.5-0-gb6a8c46.tar.gz) = f2c5b2cc3430f023442381b734a1e547dd2ba75a05cd34f2cdcf2431acc4f77e
XSIZE (wandenberg-nginx-push-stream-module-0.3.5-0-gb6a8c46.tar.gz) = 153187
XSHA256 (wandenberg-nginx-video-thumbextractor-module-0.2.0-0-g9406457.tar.gz) = 8c39593b7a16003cad5d071df96dcf451fe41d64ba5dbf658e26e7b4684528ff
XSIZE (wandenberg-nginx-video-thumbextractor-module-0.2.0-0-g9406457.tar.gz) = 8812
XSHA256 (ngx_http_redis-0.3.7.tar.gz) = 9dfc14db81f431fdf3d69f3661a37daf110aef5f9479aa7c88cf362bb5d62604
XSIZE (ngx_http_redis-0.3.7.tar.gz) = 12165
XSHA256 (ngx_http_response-0.3.tar.gz) = 0835584029f053051c624adbe33a826ab0205c9d85a02af6019e6b57607e9045
XSIZE (ngx_http_response-0.3.tar.gz) = 2244
XSHA256 (nginx_upload_module-2.2.0.tar.gz) = b1c26abe0427180602e257627b4ed21848c93cc20cefc33af084983767d65805
XSIZE (nginx_upload_module-2.2.0.tar.gz) = 25796
XSHA256 (masterzen-nginx-upload-progress-module-v0.9.0-0-ga788dea.tar.gz) = 3fb903dab595cf6656fa0fc5743a48daffbba2f6b5c554836be630800eaad4e2
XSIZE (masterzen-nginx-upload-progress-module-v0.9.0-0-ga788dea.tar.gz) = 17020
XSHA256 (nginx_upstream_fair-20090923.tar.gz) = ec9ed7f856263e17faadee3dc7209932364ded4e546b829841c2454aa432450b
XSIZE (nginx_upstream_fair-20090923.tar.gz) = 10024
XSHA256 (mod_zip-1.1.6.tar.gz) = d30546b4be8308c721df0240ebc38c474c6b577381a110321eded6dbed5104b1
XSIZE (mod_zip-1.1.6.tar.gz) = 21991
XSHA256 (chaoslawful-drizzle-nginx-module-v0.1.6-0-ge6937ba.tar.gz) = ec04631c6a1fe75329a831511c5693520bb2bfdedfb3ccc9de4b6a390bc2ba9c
XSIZE (chaoslawful-drizzle-nginx-module-v0.1.6-0-ge6937ba.tar.gz) = 61351
XSHA256 (simpl-ngx_devel_kit-v0.2.19-0-g8dd0df5.tar.gz) = 9a8c372f8e750d33018d9587d288c17f755e8da38592bca8ef9bf9ea4bab59a7
XSIZE (simpl-ngx_devel_kit-v0.2.19-0-g8dd0df5.tar.gz) = 65033
XSHA256 (agentzh-encrypted-session-nginx-module-v0.03-0-g49d741b.tar.gz) = 4485214756dc935a959efd3a2fcd750263df1719956a4ac73f96b0cee0763395
XSIZE (agentzh-encrypted-session-nginx-module-v0.03-0-g49d741b.tar.gz) = 8947
XSHA256 (mdirolf-nginx-gridfs-v0.8-0-gb5f8113.tar.gz) = f55617873c9b123d610d59e4da52703c07be0bae5c719ef0cc3d45a53480d29c
XSIZE (mdirolf-nginx-gridfs-v0.8-0-gb5f8113.tar.gz) = 18882
XSHA256 (mongodb-mongo-c-driver-v0.3.1-0-g9b4b232.tar.gz) = bfcdd60c6b53bd499e2bf22fefc96848de37e7d57dfaf7303bb00376dcb812f0
XSIZE (mongodb-mongo-c-driver-v0.3.1-0-g9b4b232.tar.gz) = 53033
XSHA256 (arut-nginx-let-module-v0.0.4-0-ga5e1dc5.tar.gz) = 9253581f11966329f64b4b4a49a2a60798665812f9007222592586e64bcd66da
XSIZE (arut-nginx-let-module-v0.0.4-0-ga5e1dc5.tar.gz) = 20543
XSHA256 (agentzh-memc-nginx-module-v0.14-0-gde4cf86.tar.gz) = 5e8cacd7af42685794bbe121264173de4141e5746031e23f8e363ab14ccb1534
XSIZE (agentzh-memc-nginx-module-v0.14-0-gde4cf86.tar.gz) = 37755
XSHA256 (modsecurity-apache_2.7.5.tar.gz) = 9e907536278d8da80d3dbb29aeffe9c4ec37ce9b641035b2da64e993135647a2
XSIZE (modsecurity-apache_2.7.5.tar.gz) = 1045387
XSHA256 (ngx_postgres-0.9.tar.gz) = aac0141e73b5c440927b7e040072f120b36e49deb2ff36ad00ff96a80622fbec
XSIZE (ngx_postgres-0.9.tar.gz) = 41022
XSHA256 (agentzh-rds-csv-nginx-module-v0.05-0-g607e26b.tar.gz) = 3fa9cb3960a97f505c9ad0cc8683c8fe17ba98aa98d003e255bf214e5144751c
XSIZE (agentzh-rds-csv-nginx-module-v0.05-0-g607e26b.tar.gz) = 18423
XSHA256 (agentzh-rds-json-nginx-module-v0.13-0-g8292070.tar.gz) = 9e59b90d84f9bc814eba85bfcf126e3fd6406ddc771702c096a657c17354c302
XSIZE (agentzh-rds-json-nginx-module-v0.13-0-g8292070.tar.gz) = 32965
XSHA256 (agentzh-redis2-nginx-module-v0.10-0-g78a7622.tar.gz) = c2a164df07759d2a45beacc1f72316be84e9348b7ae5509723eabd2d61cb4897
XSIZE (agentzh-redis2-nginx-module-v0.10-0-g78a7622.tar.gz) = 29850
XSHA256 (rtmp-nginx-module-v1.0.8.tar.gz) = e905e40d1a1b81c720f1e799bee6a3525efaa6f2519212130d39eed3b8877c74
XSIZE (rtmp-nginx-module-v1.0.8.tar.gz) = 513086
XSHA256 (agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz) = a5dea4570efa138e15bb97babb02e76f16319b4b660763492ef02615dc1def1f
XSIZE (agentzh-set-misc-nginx-module-v0.23-0-g6ce586e.tar.gz) = 40355
XSHA256 (nginx-sflow-module-0.9.7.tar.gz) = 508d15a43059abab08281bfa66d2dd520e2e7635d0b17043549bb331c8755b76
XSIZE (nginx-sflow-module-0.9.7.tar.gz) = 27614
XSHA256 (ngx_slowfs_cache-1.10.tar.gz) = 1e81453942e5b0877de1f1f06c56ae82918ea9818255cb935bcb673c95a758a1
XSIZE (ngx_slowfs_cache-1.10.tar.gz) = 11809
XSHA256 (agentzh-srcache-nginx-module-v0.24-0-g33f0f29.tar.gz) = 5e3f59821f73c205e1df0c40fd02d987b21b19e3c267866659f883bddd5674c9
XSIZE (agentzh-srcache-nginx-module-v0.24-0-g33f0f29.tar.gz) = 67239
XSHA256 (ngx_supervisord-1.4.tar.gz) = 0954a4efb1b955692acf523e169221146d6aa93ad1643c9f2482f75a1fbf9e3b
XSIZE (ngx_supervisord-1.4.tar.gz) = 19351
XSHA256 (yaoweibin-nginx_tcp_proxy_module-v0.26-0-gb83e5a6.tar.gz) = 4d843b8d0511b269382938ba5546f902ec24dbfa76c12f6bd6961d7aaaf3866a
XSIZE (yaoweibin-nginx_tcp_proxy_module-v0.26-0-gb83e5a6.tar.gz) = 127346
XSHA256 (gabor-nginx-x-rid-header-0daa3cc.tar.gz) = 136239b8f9ab2fbefb2aabc6897d3f12cc8063ce817901f9b8a624e12fbc6035
XSIZE (gabor-nginx-x-rid-header-0daa3cc.tar.gz) = 2714
XSHA256 (agentzh-xss-nginx-module-v0.04-0-g7e37038.tar.gz) = 3e5b1eba411e1e51bbb197d2adb2d5304cd4050dca95f506cae635e4af5e9b35
XSIZE (agentzh-xss-nginx-module-v0.04-0-g7e37038.tar.gz) = 10535
XSHA256 (agentzh-array-var-nginx-module-v0.03-0-g4676747.tar.gz) = 9670207b5a74ddbdf510b973ddbcf3e4ecd4c5fe50829b17c560ba4a30aa73f4
XSIZE (agentzh-array-var-nginx-module-v0.03-0-g4676747.tar.gz) = 9518
XSHA256 (calio-form-input-nginx-module-v0.07-0-g78de845.tar.gz) = d5b2c42a3b9fd2970107eb74c2226cbbfbad48c89807303db903932d21ff76aa
XSIZE (calio-form-input-nginx-module-v0.07-0-g78de845.tar.gz) = 10580
XSHA256 (calio-iconv-nginx-module-v0.10-0-gb37efb5.tar.gz) = e90a406a14d5f419bd500e19082da81390e8ba6040926857926f1a899a53379d
XSIZE (calio-iconv-nginx-module-v0.10-0-gb37efb5.tar.gz) = 12510
66d96682fa221d3cbd50e5d60d8f3c0e
exit
--- tengine.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1W41KX-000H1d-AW>