mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] socat: added openssl option
@ 2015-06-18 21:16 George McCollister
  2015-07-01  8:07 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: George McCollister @ 2015-06-18 21:16 UTC (permalink / raw)
  To: ptxdist

Added an option to enable openssl in socat.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
---
 rules/socat.in   | 14 +++++++++++++-
 rules/socat.make |  2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/rules/socat.in b/rules/socat.in
index e94c72e..da8d1eb 100644
--- a/rules/socat.in
+++ b/rules/socat.in
@@ -1,9 +1,11 @@
 ## SECTION=networking
 
-config SOCAT
+menuconfig SOCAT
 	tristate
 	select LIBC_RT
 	select LIBC_UTIL
+	select OPENSSL			if SOCAT_OPENSSL
+	select OPENSSL_SHARED		if SOCAT_OPENSSL
 	prompt "socat"
 	help
 	  Socat (for SOcket CAT) establishes two bidirectional byte streams and
@@ -11,3 +13,13 @@ config SOCAT
 	  (terminal or modem, etc.), or sockets (Unix, IPv4, IPv6, raw, UDP, TCP,
 	  SSL). It provides forking, logging and tracing, different modes for
 	  interprocess communication and many more options.
+
+if SOCAT
+
+config SOCAT_OPENSSL
+	bool
+	prompt "openssl support"
+	help
+	  Include openssl support.
+
+endif
diff --git a/rules/socat.make b/rules/socat.make
index 7eebb9b..bd2ba07 100644
--- a/rules/socat.make
+++ b/rules/socat.make
@@ -60,7 +60,7 @@ SOCAT_CONF_OPT	:= \
 	--enable-pty \
 	--enable-ext2 \
 	--disable-readline \
-	--disable-openssl \
+	--$(call ptx/endis, PTXCONF_SOCAT_OPENSSL)-openssl \
 	--disable-fips \
 	--enable-tun \
 	--enable-sycls \
-- 
2.4.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-01  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-18 21:16 [ptxdist] [PATCH] socat: added openssl option George McCollister
2015-07-01  8:07 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox