summaryrefslogtreecommitdiff
path: root/mail/fetchmail/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mail/fetchmail/options.mk')
-rw-r--r--mail/fetchmail/options.mk20
1 files changed, 17 insertions, 3 deletions
diff --git a/mail/fetchmail/options.mk b/mail/fetchmail/options.mk
index 66ff6085de1..371719a1794 100644
--- a/mail/fetchmail/options.mk
+++ b/mail/fetchmail/options.mk
@@ -1,7 +1,9 @@
-# $NetBSD: options.mk,v 1.11 2005/05/30 18:06:37 frueauf Exp $
+# $NetBSD: options.mk,v 1.11.4.1 2005/11/01 21:51:26 salo Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.fetchmail
PKG_SUPPORTED_OPTIONS= inet6 kerberos4 kerberos gssapi ssl
+PKG_OPTIONS_OPTIONAL_GROUPS= socks
+PKG_OPTIONS_GROUP.socks= socks4 socks5
PKG_SUGGESTED_OPTIONS= ssl
@@ -27,7 +29,7 @@ CONFIGURE_ARGS+= --with-gssapi=no
### KPOP (POP3 + Kerberos IV) support.
###
.if !empty(PKG_OPTIONS:Mkerberos4)
-PKG_USE_KERBEROS= # defined
+PKG_USE_KERBEROS= yes
CONFIGURE_ARGS+= --with-kerberos=yes
. if empty(MACHINE_PLATFORM:MNetBSD-1.[0-4]*-i386)
REPLACE_KERBEROS_LIBS= yes
@@ -41,7 +43,7 @@ CONFIGURE_ARGS+= --with-kerberos=no
###
.if !empty(PKG_OPTIONS:Mkerberos) || !empty(PKG_OPTIONS:Mgssapi)
. include "../../mk/krb5.buildlink3.mk"
-PKG_USE_KERBEROS= # defined
+PKG_USE_KERBEROS= yes
CONFIGURE_ARGS+= --with-kerberos5=${KRB5BASE}
.else
CONFIGURE_ARGS+= --with-kerberos5=no
@@ -56,3 +58,15 @@ CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
.else
CONFIGURE_ARGS+= --without-ssl
.endif
+
+###
+### 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