# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {cal @neverpanic} {mps @Schamschula} openmaintainer
description High-performance HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
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 \
homepage https://nginx.org/
master_sites https://nginx.org/download:nginx \
http://www.grid.net.ru/nginx/download/:upload_module \
googlecode:mod-zip:zip_module \
https://people.freebsd.org/~osa/:redis_module \
https://github.com/masterzen/nginx-upload-progress-module/archive/:uploadprogress_module \
https://github.com/arut/nginx-dav-ext-module/archive/:davext_module \
https://github.com/arut/nginx-rtmp-module/archive/:rtmp_module \
https://github.com/slact/nchan/archive/:http_push_module \
https://github.com/simpl/ngx_devel_kit/archive/:devel_kit_module \
https://github.com/openresty/lua-nginx-module/archive/:lua_module \
https://github.com/openresty/headers-more-nginx-module/archive/:h_more_module \
https://github.com/TeslaGov/ngx-http-auth-jwt-module/archive/:jwt_module
distfiles ${name}-${version}${extract.suffix}:nginx
checksums ${name}-${version}${extract.suffix} \
rmd160 0242cda1477a74dcfac8709a33e671b6e625faa5 \
sha256 b865743abd52bce4745d0f7e7fedde3cafbaaab617b022c105e3e4e456537c3c \
patchfiles patch-auto__install.diff \
patch-conf__nginx.conf.diff
set nginx_share ${prefix}/share/${name}
set nginx_examples ${nginx_share}/examples
set nginx_confdir ${prefix}/etc/${name}
set nginx_logdir ${prefix}/var/log/${name}
set nginx_rundir ${prefix}/var/run/${name}
set nginx_pidfile ${nginx_rundir}/${name}.pid
set nginx_all_confs {fastcgi.conf fastcgi_params mime.types nginx.conf scgi_params uwsgi_params}
set auto_activate_confs {nginx.conf mime.types fastcgi.conf}
# portfile-scoped vars for variant routines to re-def and use in port-stages (post-extract, pre-patch, etc)
set nginx_lua_mod_dirname ""
set nginx_rtmp_mod_dirname ""
set nginx_upload_mod_dirname ""
# for aforementioned re-defs of portfile-scoped vars in variant routines
proc nginx_set_portfile_var {var_name new_value} {
upvar $var_name portfile_var
set portfile_var $new_value
--with-cc-opt=\"${configure.cppflags} ${configure.cflags}\" \
--with-ld-opt=\"${configure.ldflags}\" \
--conf-path=${nginx_confdir}/${name}.conf \
--error-log-path=${nginx_logdir}/error.log \
--http-log-path=${nginx_logdir}/access.log \
--pid-path=${nginx_pidfile} \
--lock-path=${nginx_rundir}/${name}.lock \
--http-client-body-temp-path=${nginx_rundir}/client_body_temp \
--http-proxy-temp-path=${nginx_rundir}/proxy_temp \
--http-fastcgi-temp-path=${nginx_rundir}/fastcgi_temp \
--http-uwsgi-temp-path=${nginx_rundir}/uwsgi_temp
# remove --disable-dependency-tracking
configure.universal_args-delete --disable-dependency-tracking
destroot.keepdirs ${destroot}${nginx_logdir} \
${destroot}${nginx_rundir}
xinstall -d -m 755 ${destroot}${nginx_share}