Skip to content
Permalink
Browse files

nginx: add multiple variants

This patch adds variants to enable:
 * nginx to act as a backend (realip);
 * nginx to automatically append text to pages (addition);
 * nginx to automatically replace text in pages (substitution);
 * nginx to cache compressed versions of files it has gzipped for
   transmission (gzip-static); and
 * Google Performance Tools profiling on worker threads (google_perftools).

These variants come from the patch submitted in https://trac.macports.org/ticket/15948.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@40462 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Boey Maun Suang
Boey Maun Suang committed Oct 2, 2008
1 parent c53791c commit bf21a992f065ba484d72104b4af6851a9424b6c2
Showing with 23 additions and 0 deletions.
  1. +23 −0 www/nginx/Portfile
@@ -105,3 +105,26 @@ variant perl5 description {Add perl support to the server} {
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
}

0 comments on commit bf21a99

Please sign in to comment.
You can’t perform that action at this time.