2007-11-07 09:57:10 +01:00
|
|
|
# $NetBSD: options.mk,v 1.15 2007/11/07 08:57:10 tron Exp $
|
2004-08-05 04:31:24 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.fetchmail
|
2007-11-07 09:57:10 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= kerberos4 kerberos gssapi ssl
|
2005-10-25 19:52:38 +02:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= socks
|
|
|
|
PKG_OPTIONS_GROUP.socks= socks4 socks5
|
2004-08-22 21:32:51 +02:00
|
|
|
|
2005-05-24 21:01:34 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= ssl
|
2004-08-22 21:32:51 +02:00
|
|
|
|
2004-08-05 04:31:24 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
2005-01-21 16:46:39 +01:00
|
|
|
### Authentication via GSSAPI (currently only over Kerberos V) support.
|
|
|
|
###
|
2005-05-30 20:06:37 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgssapi)
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gssapi=${KRB5BASE:Q}
|
2005-01-21 16:46:39 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-gssapi=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### KPOP (POP3 + Kerberos IV) support.
|
2004-08-05 04:31:24 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos4)
|
2005-09-28 23:55:32 +02:00
|
|
|
PKG_USE_KERBEROS= yes
|
2004-08-05 04:31:24 +02:00
|
|
|
CONFIGURE_ARGS+= --with-kerberos=yes
|
|
|
|
. if empty(MACHINE_PLATFORM:MNetBSD-1.[0-4]*-i386)
|
|
|
|
REPLACE_KERBEROS_LIBS= yes
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-kerberos=no
|
|
|
|
.endif
|
|
|
|
|
2005-01-20 13:59:11 +01:00
|
|
|
###
|
2005-01-21 16:46:39 +01:00
|
|
|
### Kerberos V support.
|
2005-01-20 13:59:11 +01:00
|
|
|
###
|
2005-05-30 20:06:37 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos) || !empty(PKG_OPTIONS:Mgssapi)
|
2005-01-21 16:46:39 +01:00
|
|
|
. include "../../mk/krb5.buildlink3.mk"
|
2005-09-28 23:55:32 +02:00
|
|
|
PKG_USE_KERBEROS= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE:Q}
|
2005-01-20 13:59:11 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-kerberos5=no
|
|
|
|
.endif
|
|
|
|
|
2004-08-05 04:31:24 +02:00
|
|
|
###
|
|
|
|
### Support POP3 and IMAP over SSL.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
2004-08-05 04:31:24 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
|
|
.endif
|
2005-10-25 19:52:38 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### Include SOCKS firewall support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Msocks4)
|
|
|
|
.include "../../net/socks4/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-socks=${BUILDLINK_PREFIX.socks4}
|
|
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msocks5)
|
|
|
|
.include "../../net/socks5/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-socks5=${BUILDLINK_PREFIX.socks5}
|
|
|
|
.endif
|