| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.15 2007/11/07 08:57:10 tron Exp $ | | 1 | # $NetBSD: options.mk,v 1.15.44.1 2012/11/05 09:06:58 spz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.fetchmail | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.fetchmail |
4 | PKG_SUPPORTED_OPTIONS= kerberos4 kerberos gssapi ssl | | 4 | PKG_SUPPORTED_OPTIONS= kerberos4 kerberos gssapi ssl |
5 | PKG_OPTIONS_OPTIONAL_GROUPS= socks | | 5 | PKG_OPTIONS_OPTIONAL_GROUPS= socks |
6 | PKG_OPTIONS_GROUP.socks= socks4 socks5 | | 6 | PKG_OPTIONS_GROUP.socks= socks4 socks5 |
7 | | | 7 | |
8 | PKG_SUGGESTED_OPTIONS= ssl | | 8 | PKG_SUGGESTED_OPTIONS= ssl |
9 | | | 9 | |
10 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
11 | | | 11 | |
12 | ### | | 12 | ### |
13 | ### Authentication via GSSAPI (currently only over Kerberos V) support. | | 13 | ### Authentication via GSSAPI (currently only over Kerberos V) support. |
14 | ### | | 14 | ### |
| @@ -36,26 +36,33 @@ CONFIGURE_ARGS+= --with-kerberos=no | | | @@ -36,26 +36,33 @@ CONFIGURE_ARGS+= --with-kerberos=no |
36 | ### | | 36 | ### |
37 | .if !empty(PKG_OPTIONS:Mkerberos) || !empty(PKG_OPTIONS:Mgssapi) | | 37 | .if !empty(PKG_OPTIONS:Mkerberos) || !empty(PKG_OPTIONS:Mgssapi) |
38 | . include "../../mk/krb5.buildlink3.mk" | | 38 | . include "../../mk/krb5.buildlink3.mk" |
39 | PKG_USE_KERBEROS= yes | | 39 | PKG_USE_KERBEROS= yes |
40 | CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE:Q} | | 40 | CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE:Q} |
41 | .else | | 41 | .else |
42 | CONFIGURE_ARGS+= --with-kerberos5=no | | 42 | CONFIGURE_ARGS+= --with-kerberos5=no |
43 | .endif | | 43 | .endif |
44 | | | 44 | |
45 | ### | | 45 | ### |
46 | ### Support POP3 and IMAP over SSL. | | 46 | ### Support POP3 and IMAP over SSL. |
47 | ### | | 47 | ### |
48 | .if !empty(PKG_OPTIONS:Mssl) | | 48 | .if !empty(PKG_OPTIONS:Mssl) |
| | | 49 | . if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*) |
| | | 50 | # "fetchmail" requires the "SSL_CTX_clear_options" library function which |
| | | 51 | # was added in OpenSSL 0.9.8m. NetBSD 5.* ships with a snapshot that |
| | | 52 | # claims to be OpenSSL 0.9.9 but doesn't provide this function. Force |
| | | 53 | # the use of the "openssl" package to fix the build. |
| | | 54 | USE_BUILTIN.openssl= no |
| | | 55 | . endif |
49 | . include "../../security/openssl/buildlink3.mk" | | 56 | . include "../../security/openssl/buildlink3.mk" |
50 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} | | 57 | CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q} |
51 | .else | | 58 | .else |
52 | CONFIGURE_ARGS+= --without-ssl | | 59 | CONFIGURE_ARGS+= --without-ssl |
53 | .endif | | 60 | .endif |
54 | | | 61 | |
55 | ### | | 62 | ### |
56 | ### Include SOCKS firewall support | | 63 | ### Include SOCKS firewall support |
57 | ### | | 64 | ### |
58 | .if !empty(PKG_OPTIONS:Msocks4) | | 65 | .if !empty(PKG_OPTIONS:Msocks4) |
59 | .include "../../net/socks4/buildlink3.mk" | | 66 | .include "../../net/socks4/buildlink3.mk" |
60 | CONFIGURE_ARGS+= --with-socks=${BUILDLINK_PREFIX.socks4} | | 67 | CONFIGURE_ARGS+= --with-socks=${BUILDLINK_PREFIX.socks4} |
61 | .endif | | 68 | .endif |