Date: Sat, 2 Jul 2016 10:29:48 +0000 (UTC) From: Bernard Spil <brnrd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417919 - in head/www/links-hacked: . files Message-ID: <201607021029.u62ATmvi064233@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brnrd Date: Sat Jul 2 10:29:47 2016 New Revision: 417919 URL: https://svnweb.freebsd.org/changeset/ports/417919 Log: www/links-hacked: Fix build without RAND_egd - Add patch for building without EGD (OpenSSL 1.1/LibreSSL) - Move from USE_OPENSSL to USES=ssl PR: 198766 Added: head/www/links-hacked/files/patch-https.c (contents, props changed) Modified: head/www/links-hacked/Makefile Modified: head/www/links-hacked/Makefile ============================================================================== --- head/www/links-hacked/Makefile Sat Jul 2 10:29:15 2016 (r417918) +++ head/www/links-hacked/Makefile Sat Jul 2 10:29:47 2016 (r417919) @@ -12,8 +12,7 @@ COMMENT= Hacked version of a Links WWW b LICENSE= GPLv2 -USES= autoreconf execinfo -USE_OPENSSL= yes +USES= autoreconf execinfo ssl USE_CSTD= gnu89 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-ssl --without-pmshell --without-atheos --without-fb Added: head/www/links-hacked/files/patch-https.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/links-hacked/files/patch-https.c Sat Jul 2 10:29:47 2016 (r417919) @@ -0,0 +1,14 @@ +--- https.c.orig 2008-06-07 07:41:41 UTC ++++ https.c +@@ -15,7 +15,10 @@ SSL *getSSL(void) + char f_randfile[PATH_MAX]; + + if (!context) { +- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile)))<0){ ++#ifndef OPENSSL_NO_EGD ++ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile)))<0) ++#endif ++ { + /* Not an EGD, so read and write to it */ + if (RAND_load_file(f_randfile, -1)) + RAND_write_file(f_randfile);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607021029.u62ATmvi064233>