| @@ -1,25 +1,31 @@ | | | @@ -1,25 +1,31 @@ |
1 | # $NetBSD: options.mk,v 1.15 2012/06/12 15:46:04 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.16 2012/08/06 14:31:58 imil Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx |
4 | PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 mail-proxy memcache naxsi pcre \ | | 4 | PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 mail-proxy memcache naxsi pcre \ |
5 | push realip ssl sub uwsgi image-filter upload debug \ | | 5 | push realip ssl sub uwsgi image-filter upload debug \ |
6 | status | | 6 | status |
7 | PKG_SUGGESTED_OPTIONS= inet6 pcre ssl | | 7 | PKG_SUGGESTED_OPTIONS= inet6 pcre ssl |
8 | | | 8 | |
9 | PLIST_VARS+= naxsi uwsgi | | 9 | PLIST_VARS+= naxsi uwsgi |
10 | | | 10 | |
11 | .include "../../mk/bsd.options.mk" | | 11 | .include "../../mk/bsd.options.mk" |
12 | | | 12 | |
| | | 13 | # documentation says naxsi must be the first module |
| | | 14 | .if !empty(PKG_OPTIONS:Mnaxsi) |
| | | 15 | PLIST.naxsi= yes |
| | | 16 | CONFIGURE_ARGS+= --add-module=../${NAXSI}/naxsi_src |
| | | 17 | .endif |
| | | 18 | |
13 | .if !empty(PKG_OPTIONS:Mdebug) | | 19 | .if !empty(PKG_OPTIONS:Mdebug) |
14 | CONFIGURE_ARGS+= --with-debug | | 20 | CONFIGURE_ARGS+= --with-debug |
15 | .endif | | 21 | .endif |
16 | | | 22 | |
17 | .if !empty(PKG_OPTIONS:Mssl) | | 23 | .if !empty(PKG_OPTIONS:Mssl) |
18 | .include "../../security/openssl/buildlink3.mk" | | 24 | .include "../../security/openssl/buildlink3.mk" |
19 | CONFIGURE_ARGS+= --with-mail_ssl_module | | 25 | CONFIGURE_ARGS+= --with-mail_ssl_module |
20 | CONFIGURE_ARGS+= --with-http_ssl_module | | 26 | CONFIGURE_ARGS+= --with-http_ssl_module |
21 | .endif | | 27 | .endif |
22 | | | 28 | |
23 | .if !empty(PKG_OPTIONS:Mpcre) | | 29 | .if !empty(PKG_OPTIONS:Mpcre) |
24 | .include "../../devel/pcre/buildlink3.mk" | | 30 | .include "../../devel/pcre/buildlink3.mk" |
25 | .else | | 31 | .else |
| @@ -41,33 +47,28 @@ CONFIGURE_ARGS+= --with-http_sub_module | | | @@ -41,33 +47,28 @@ CONFIGURE_ARGS+= --with-http_sub_module |
41 | | | 47 | |
42 | .if !empty(PKG_OPTIONS:Mgtools) | | 48 | .if !empty(PKG_OPTIONS:Mgtools) |
43 | CONFIGURE_ARGS+= --with-google_perftools_module | | 49 | CONFIGURE_ARGS+= --with-google_perftools_module |
44 | .endif | | 50 | .endif |
45 | | | 51 | |
46 | .if !empty(PKG_OPTIONS:Mmail-proxy) | | 52 | .if !empty(PKG_OPTIONS:Mmail-proxy) |
47 | CONFIGURE_ARGS+= --with-mail | | 53 | CONFIGURE_ARGS+= --with-mail |
48 | .endif | | 54 | .endif |
49 | | | 55 | |
50 | .if empty(PKG_OPTIONS:Mmemcache) | | 56 | .if empty(PKG_OPTIONS:Mmemcache) |
51 | CONFIGURE_ARGS+= --without-http_memcached_module | | 57 | CONFIGURE_ARGS+= --without-http_memcached_module |
52 | .endif | | 58 | .endif |
53 | | | 59 | |
54 | .if !empty(PKG_OPTIONS:Mnaxsi) | | | |
55 | PLIST.naxsi= yes | | | |
56 | CONFIGURE_ARGS+= --add-module=../${NAXSI}/naxsi_src | | | |
57 | .endif | | | |
58 | | | | |
59 | .if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum) | | 60 | .if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum) |
60 | NAXSI= naxsi-0.45 | | 61 | NAXSI= naxsi-core-0.48 |
61 | NAXSI_DISTFILE= ${NAXSI}.tgz | | 62 | NAXSI_DISTFILE= ${NAXSI}.tgz |
62 | SITES.${NAXSI_DISTFILE}= http://naxsi.googlecode.com/files/ | | 63 | SITES.${NAXSI_DISTFILE}= http://naxsi.googlecode.com/files/ |
63 | DISTFILES+= ${NAXSI_DISTFILE} | | 64 | DISTFILES+= ${NAXSI_DISTFILE} |
64 | .endif | | 65 | .endif |
65 | | | 66 | |
66 | .if !empty(PKG_OPTIONS:Mrealip) | | 67 | .if !empty(PKG_OPTIONS:Mrealip) |
67 | CONFIGURE_ARGS+= --with-http_realip_module | | 68 | CONFIGURE_ARGS+= --with-http_realip_module |
68 | .endif | | 69 | .endif |
69 | | | 70 | |
70 | .if !empty(PKG_OPTIONS:Minet6) | | 71 | .if !empty(PKG_OPTIONS:Minet6) |
71 | CONFIGURE_ARGS+= --with-ipv6 | | 72 | CONFIGURE_ARGS+= --with-ipv6 |
72 | .endif | | 73 | .endif |
73 | | | 74 | |