# $Id$ PortSystem 1.0 name nginx version 0.6.32 categories www mail platforms darwin maintainers boeyms openmaintainer 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://nginx.net/ master_sites http://sysoev.ru/nginx checksums md5 c09a2ace3c91f45dabbb608b11e48ed1 \ sha1 346166171477c3e78759bdbbc8461107d8475269 \ rmd160 06749c5bf834a3f7e82ad3122a5db457c193d117 depends_lib port:pcre port:zlib patchfiles patch-auto-install.diff patch-conf-nginx.conf.diff set pidfile ${prefix}/var/run/${name}.pid configure.args-append \ --with-cc-opt=\"${configure.cppflags} ${configure.cflags}\" \ --with-ld-opt=\"${configure.ldflags}\" \ --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 ${destroot}${prefix}/var/log/${name} \ ${destroot}${prefix}/var/run/${name} post-destroot { ui_msg "" ui_msg "###############################################################" ui_msg "# If it doesn't already exist, you'll need to create a config" ui_msg "# file at the location, ${prefix}/etc/${name}/${name}.conf" ui_msg "# This is the default file nginx will look for without using" ui_msg "# the -c flag" ui_msg "#" ui_msg "# New example files are also provided at ${prefix}/etc/${name}" ui_msg "# they are those ending in .example, you are advised to look." ui_msg "###############################################################" ui_msg "" } startupitem.create yes startupitem.executable ${prefix}/sbin/nginx startupitem.pidfile auto ${pidfile} variant dav description {Add WebDAV support to server} { configure.args-append --with-http_dav_module } variant flv description {Add FLV (Flash Video) streaming support to server} { configure.args-append --with-http_flv_module } variant mail description {Add IMAP4/POP3 mail proxy support} { configure.args-append --with-mail } variant ssl description {Add SSL (HTTPS) support to the server, and\ also to the mail proxy if that is enabled} { depends_lib-append port:openssl configure.args-append --with-http_ssl_module if [variant_isset mail] { configure.args-append --with-mail_ssl_module } } variant status description {Add /nginx_status support to the server} { configure.args-append --with-http_stub_status_module } # This variant has been labelled "perl5" so as to allow users to easily stick # with perl 5.x once perl 6.x is released; a "perl6" variant will also be added # at that time. variant perl5 description {Add perl support to the server, directly within\ nginx and call perl via SSI} { depends_run-append port:perl5.8 configure.args-append --with-http_perl_module } variant realip description {Using nginx as a backend} { configure.args-append --with-http_realip_module } variant addition description {Append text to pages} { configure.args-append --with-http_addition_module } variant substitution description {Replace text in pages} { configure.args-append --with-http_sub_module } variant gzip_static description {Avoids compressing the same file each\ time it is requested} { configure.args-append --with-http_gzip_static_module } variant google_perftools description {Enable Google Performance Tools\ profiling for workers} { depends_lib-append port:google-perftools configure.args-append --with-google_perftools_module }