1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name nginx |
---|
6 | version 0.6.32 |
---|
7 | categories www mail |
---|
8 | platforms darwin |
---|
9 | maintainers boeyms openmaintainer |
---|
10 | description High-performance HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server |
---|
11 | long_description Nginx ("engine x") is a high-performance HTTP(S) server \ |
---|
12 | and reverse proxy, as well as an IMAP/POP3 proxy server. \ |
---|
13 | Nginx was written by Igor Sysoev for Rambler.ru, Russia's \ |
---|
14 | second-most visited website, where it has been running in \ |
---|
15 | production for over two and a half years. Igor has \ |
---|
16 | released the source code under a BSD-like license. \ |
---|
17 | Although still in beta, Nginx is known for its stability, \ |
---|
18 | rich feature set, simple configuration, and low resource \ |
---|
19 | consumption. |
---|
20 | homepage http://nginx.net/ |
---|
21 | master_sites http://sysoev.ru/nginx |
---|
22 | checksums md5 c09a2ace3c91f45dabbb608b11e48ed1 \ |
---|
23 | sha1 346166171477c3e78759bdbbc8461107d8475269 \ |
---|
24 | rmd160 06749c5bf834a3f7e82ad3122a5db457c193d117 |
---|
25 | |
---|
26 | depends_lib port:pcre port:zlib |
---|
27 | |
---|
28 | patchfiles patch-auto-install.diff patch-conf-nginx.conf.diff |
---|
29 | |
---|
30 | set pidfile ${prefix}/var/run/${name}.pid |
---|
31 | |
---|
32 | configure.args-append \ |
---|
33 | --with-cc-opt=\"${configure.cppflags} ${configure.cflags}\" \ |
---|
34 | --with-ld-opt=\"${configure.ldflags}\" \ |
---|
35 | --conf-path=${prefix}/etc/${name}/${name}.conf \ |
---|
36 | --error-log-path=${prefix}/var/log/${name}/error.log \ |
---|
37 | --http-log-path=${prefix}/var/log/${name}/access.log \ |
---|
38 | --pid-path=${pidfile} \ |
---|
39 | --lock-path=${prefix}/var/run/${name}.lock \ |
---|
40 | --http-client-body-temp-path=${prefix}/var/run/${name}/client_body_temp \ |
---|
41 | --http-proxy-temp-path=${prefix}/var/run/${name}/proxy_temp \ |
---|
42 | --http-fastcgi-temp-path=${prefix}/var/run/${name}/fastcgi_temp |
---|
43 | |
---|
44 | build.target build |
---|
45 | destroot.keepdirs ${destroot}${prefix}/var/log/${name} \ |
---|
46 | ${destroot}${prefix}/var/run/${name} |
---|
47 | |
---|
48 | post-destroot { |
---|
49 | ui_msg "" |
---|
50 | ui_msg "###############################################################" |
---|
51 | ui_msg "# If it doesn't already exist, you'll need to create a config" |
---|
52 | ui_msg "# file at the location, ${prefix}/etc/${name}/${name}.conf" |
---|
53 | ui_msg "# This is the default file nginx will look for without using" |
---|
54 | ui_msg "# the -c flag" |
---|
55 | ui_msg "#" |
---|
56 | ui_msg "# New example files are also provided at ${prefix}/etc/${name}" |
---|
57 | ui_msg "# they are those ending in .example, you are advised to look." |
---|
58 | ui_msg "###############################################################" |
---|
59 | ui_msg "" |
---|
60 | } |
---|
61 | |
---|
62 | startupitem.create yes |
---|
63 | startupitem.executable ${prefix}/sbin/nginx |
---|
64 | startupitem.pidfile auto ${pidfile} |
---|
65 | |
---|
66 | variant dav description {Add WebDAV support to server} { |
---|
67 | configure.args-append --with-http_dav_module |
---|
68 | } |
---|
69 | |
---|
70 | variant flv description {Add FLV (Flash Video) streaming support to server} { |
---|
71 | configure.args-append --with-http_flv_module |
---|
72 | } |
---|
73 | |
---|
74 | variant mail description {Add IMAP4/POP3 mail proxy support} { |
---|
75 | configure.args-append --with-mail |
---|
76 | } |
---|
77 | |
---|
78 | variant ssl description {Add SSL (HTTPS) support to the server, and\ |
---|
79 | also to the mail proxy if that is enabled} { |
---|
80 | depends_lib-append port:openssl |
---|
81 | configure.args-append --with-http_ssl_module |
---|
82 | if [variant_isset mail] { |
---|
83 | configure.args-append --with-mail_ssl_module |
---|
84 | } |
---|
85 | } |
---|
86 | |
---|
87 | variant status description {Add /nginx_status support to the server} { |
---|
88 | configure.args-append --with-http_stub_status_module |
---|
89 | } |
---|
90 | |
---|
91 | # This variant has been labelled "perl5" so as to allow users to easily stick |
---|
92 | # with perl 5.x once perl 6.x is released; a "perl6" variant will also be added |
---|
93 | # at that time. |
---|
94 | variant perl5 description {Add perl support to the server, directly within\ |
---|
95 | nginx and call perl via SSI} { |
---|
96 | depends_run-append port:perl5.8 |
---|
97 | configure.args-append --with-http_perl_module |
---|
98 | } |
---|
99 | |
---|
100 | variant realip description {Using nginx as a backend} { |
---|
101 | configure.args-append --with-http_realip_module |
---|
102 | } |
---|
103 | |
---|
104 | variant addition description {Append text to pages} { |
---|
105 | configure.args-append --with-http_addition_module |
---|
106 | } |
---|
107 | |
---|
108 | variant substitution description {Replace text in pages} { |
---|
109 | configure.args-append --with-http_sub_module |
---|
110 | } |
---|
111 | |
---|
112 | variant gzip_static description {Avoids compressing the same file each\ |
---|
113 | time it is requested} { |
---|
114 | configure.args-append --with-http_gzip_static_module |
---|
115 | } |
---|
116 | |
---|
117 | variant google_perftools description {Enable Google Performance Tools\ |
---|
118 | profiling for workers} { |
---|
119 | depends_lib-append port:google-perftools |
---|
120 | configure.args-append --with-google_perftools_module |
---|
121 | } |
---|