aboutsummaryrefslogtreecommitdiffstats
path: root/mail/up-imapproxy
diff options
context:
space:
mode:
authorbrnrd <brnrd@FreeBSD.org>2016-07-03 18:01:53 +0800
committerbrnrd <brnrd@FreeBSD.org>2016-07-03 18:01:53 +0800
commitbec377c07cb26fa580f54924f9049f291e88f2e8 (patch)
tree808e4579d185011a788d340ecea1f6d564172e85 /mail/up-imapproxy
parente5a063f547aa3bd2b36f8b1d2d337104555ca5c1 (diff)
downloadfreebsd-ports-gnome-bec377c07cb26fa580f54924f9049f291e88f2e8.tar.gz
freebsd-ports-gnome-bec377c07cb26fa580f54924f9049f291e88f2e8.tar.zst
freebsd-ports-gnome-bec377c07cb26fa580f54924f9049f291e88f2e8.zip
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
Diffstat (limited to 'mail/up-imapproxy')
-rw-r--r--mail/up-imapproxy/Makefile3
-rw-r--r--mail/up-imapproxy/files/patch-src_main.c12
2 files changed, 13 insertions, 2 deletions
diff --git a/mail/up-imapproxy/Makefile b/mail/up-imapproxy/Makefile
index de954ae39101..2eeaf642361c 100644
--- a/mail/up-imapproxy/Makefile
+++ b/mail/up-imapproxy/Makefile
@@ -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}
diff --git a/mail/up-imapproxy/files/patch-src_main.c b/mail/up-imapproxy/files/patch-src_main.c
new file mode 100644
index 000000000000..e78a949c8169
--- /dev/null
+++ b/mail/up-imapproxy/files/patch-src_main.c
@@ -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 ) )