From 291c4b0716b86e04a5d1cf0ca61161b68720fde5 Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sat, 2 Jul 2016 10:16:14 +0000 Subject: [PATCH] www/links1: Fix building without RAND_egd - Move from USE_OPENSSL to USES=ssl PR: 210727 Submitted by: Tobias Kortkamp --- www/links1/Makefile | 2 +- www/links1/files/patch-https.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 www/links1/files/patch-https.c diff --git a/www/links1/Makefile b/www/links1/Makefile index 0a8a86cf8d99..dc68b38ca4e7 100644 --- a/www/links1/Makefile +++ b/www/links1/Makefile @@ -14,7 +14,7 @@ COMMENT= Lynx-like text WWW browser GNU_CONFIGURE= yes -USE_OPENSSL= yes +USES= ssl CONFLICTS= links-2* CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} diff --git a/www/links1/files/patch-https.c b/www/links1/files/patch-https.c new file mode 100644 index 000000000000..ce46080382cc --- /dev/null +++ b/www/links1/files/patch-https.c @@ -0,0 +1,14 @@ +--- https.c.orig 2006-09-11 02:09:24 UTC ++++ https.c +@@ -33,7 +33,10 @@ SSL *getSSL(void) + char f_randfile[PATH_MAX]; + + const char *f = RAND_file_name(f_randfile, sizeof(f_randfile)); +- if (f && RAND_egd(f)<0) { ++#ifndef OPENSSL_NO_EGD ++ if (f && RAND_egd(f)<0) ++#endif ++ { + /* Not an EGD, so read and write to it */ + if (RAND_load_file(f_randfile, -1)) + RAND_write_file(f_randfile);