mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
mail/up-imapproxy: Fix build without EGD methods
- Use OPENSSL_NO_EGD define to fix build - Replace USE_OPENSSL with new USES= ssl PR: 200237
This commit is contained in:
parent
20343d884d
commit
b0339417b3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417964
@ -18,8 +18,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
OPTIONS_DEFINE= DOVECOT DOCS
|
||||
DOVECOT_DESC= Use with dovecot2
|
||||
|
||||
USES= autoreconf tar:bzip2 ncurses pathfix
|
||||
USE_OPENSSL= yes
|
||||
USES= autoreconf tar:bzip2 ncurses pathfix ssl
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE}
|
||||
|
||||
|
12
mail/up-imapproxy/files/patch-src_main.c
Normal file
12
mail/up-imapproxy/files/patch-src_main.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/main.c.orig 2016-01-29 18:11:40 UTC
|
||||
+++ src/main.c
|
||||
@@ -473,7 +473,9 @@ int main( int argc, char *argv[] )
|
||||
ssl_thread_setup(fn);
|
||||
|
||||
/* Need to seed PRNG, too! */
|
||||
+#ifndef OPENSSL_NO_EGD
|
||||
if ( RAND_egd( ( RAND_file_name( f_randfile, sizeof( f_randfile ) ) == f_randfile ) ? f_randfile : "/.rnd" ) )
|
||||
+#endif
|
||||
{
|
||||
/* Not an EGD, so read and write it. */
|
||||
if ( RAND_load_file( f_randfile, -1 ) )
|
Loading…
Reference in New Issue
Block a user