summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-02-18 09:16:52 +0000
committerwiz <wiz@pkgsrc.org>2015-02-18 09:16:52 +0000
commit7f8a4bd5a366a5e4461a631970ea2802cdc840cb (patch)
tree860a206378a5c7d695ed7f4f3269a90edbdc63ff
parent02e76419e5986cd257a7fb00626bd3abf1175c39 (diff)
downloadpkgsrc-7f8a4bd5a366a5e4461a631970ea2802cdc840cb.tar.gz
Add ssl option that's default-on for systems that provide openssl.
(restoring v1.8 from obache)
-rw-r--r--net/tnftp/options.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/net/tnftp/options.mk b/net/tnftp/options.mk
index ded8b8c8b68..b20c9bf3161 100644
--- a/net/tnftp/options.mk
+++ b/net/tnftp/options.mk
@@ -1,11 +1,19 @@
-# $NetBSD: options.mk,v 1.9 2015/02/01 08:58:52 obache Exp $
+# $NetBSD: options.mk,v 1.10 2015/02/18 09:16:52 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp
-PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= inet6 ssl
PKG_OPTIONS_OPTIONAL_GROUPS+= socks
PKG_OPTIONS_GROUP.socks= socks5
PKG_SUGGESTED_OPTIONS= inet6
+CHECK_BUILTIN.openssl:= yes
+.include "../../security/openssl/builtin.mk"
+CHECK_BUILTIN.openssl:= no
+
+.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+PKG_SUGGESTED_OPTIONS+= ssl
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Msocks5)
@@ -20,3 +28,11 @@ CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+= --enable-ssl
+.include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
+.else
+CONFIGURE_ARGS+= --disable-ssl
+.endif