Sat Mar 12 12:02:09 2011 UTC ()
Turn off socks support via configure when option not enabled.
>From Gregoire Sutre in PR 44710.


(wiz)
diff -r1.4 -r1.5 pkgsrc/net/tnftp/options.mk

cvs diff -r1.4 -r1.5 pkgsrc/net/tnftp/options.mk (expand / switch to unified diff)

--- pkgsrc/net/tnftp/options.mk 2008/08/09 22:03:52 1.4
+++ pkgsrc/net/tnftp/options.mk 2011/03/12 12:02:09 1.5
@@ -1,20 +1,22 @@ @@ -1,20 +1,22 @@
1# $NetBSD: options.mk,v 1.4 2008/08/09 22:03:52 tron Exp $ 1# $NetBSD: options.mk,v 1.5 2011/03/12 12:02:09 wiz Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp 3PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp
4PKG_SUPPORTED_OPTIONS= inet6 4PKG_SUPPORTED_OPTIONS= inet6
5PKG_OPTIONS_OPTIONAL_GROUPS+= socks 5PKG_OPTIONS_OPTIONAL_GROUPS+= socks
6PKG_OPTIONS_GROUP.socks= socks5 6PKG_OPTIONS_GROUP.socks= socks5
7PKG_SUGGESTED_OPTIONS= inet6 7PKG_SUGGESTED_OPTIONS= inet6
8 8
9.include "../../mk/bsd.options.mk" 9.include "../../mk/bsd.options.mk"
10 10
11.if !empty(PKG_OPTIONS:Msocks5) 11.if !empty(PKG_OPTIONS:Msocks5)
12CONFIGURE_ARGS+= --with-socks 12CONFIGURE_ARGS+= --with-socks
13.include "../../net/socks5/buildlink3.mk" 13.include "../../net/socks5/buildlink3.mk"
 14.else
 15CONFIGURE_ARGS+= --without-socks
14.endif 16.endif
15 17
16.if !empty(PKG_OPTIONS:Minet6) 18.if !empty(PKG_OPTIONS:Minet6)
17CONFIGURE_ARGS+= --enable-ipv6 19CONFIGURE_ARGS+= --enable-ipv6
18.else 20.else
19CONFIGURE_ARGS+= --disable-ipv6 21CONFIGURE_ARGS+= --disable-ipv6
20.endif 22.endif