ports/security/tlswrap/files/patch-configure.in
Johan van Selst e5aa753b7b security/tlswrap unconditionally relies on RAND_egd which makes building fail with LibreSSL which has removed EGD. FreeBSD does not require EGD at all, /dev/random has been available since FreeBSD 4.2
This patch checks for the existence of RAND_egd in libcrypto and disables the code using egd when it is not available.

The default build remains unchanged

PR:		198767
Submitted by:	Bernard Spil <spil.oss@gmail.com>
2015-04-19 14:33:53 +00:00

9 lines
428 B
Text

--- configure.in.orig 2015-04-19 16:17:12.000000000 +0200
+++ configure.in 2015-04-19 16:17:24.000000000 +0200
@@ -113,5 +113,6 @@ esac
dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(getopt pidfile inet_aton RAND_status errx strlcpy daemon getnameinfo setproctitle)
+AC_CHECK_LIB(crypto, RAND_egd, AC_DEFINE(HAVE_RAND_EGD, 1, [Define if the libcrypto has RAND_egd]))
AC_SUBST(INCLUDES)
AC_OUTPUT(Makefile)