summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2018-02-16 07:17:09 +0000
committerwiz <wiz@pkgsrc.org>2018-02-16 07:17:09 +0000
commit335f9882991feacc08b47a4954eb2a95f5a19373 (patch)
treed9598d99a4bea73f3f1fe2ae4c881ffcce62d047
parent79e0d3956165cff8b021c13357bdd92316eda571 (diff)
downloadpkgsrc-335f9882991feacc08b47a4954eb2a95f5a19373.tar.gz
lynx: fix build with openssl-1.1.
Bump PKGREVISION to be on the safe side.
-rw-r--r--www/lynx/Makefile4
-rw-r--r--www/lynx/distinfo4
-rw-r--r--www/lynx/patches/patch-WWW_Library_Implementation_HTTP.c11
3 files changed, 14 insertions, 5 deletions
diff --git a/www/lynx/Makefile b/www/lynx/Makefile
index 7a2eb45141e..440eb1cdc75 100644
--- a/www/lynx/Makefile
+++ b/www/lynx/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.128 2018/02/11 23:00:08 wiz Exp $
+# $NetBSD: Makefile,v 1.129 2018/02/16 07:17:09 wiz Exp $
DISTNAME= lynx2.8.8rel.2
PKGNAME= ${DISTNAME:S/lynx/lynx-/:S/rel//}
-PKGREVISION= 7
+PKGREVISION= 8
CATEGORIES= www
MASTER_SITES= https://invisible-mirror.net/archives/lynx/tarballs/
MASTER_SITES+= ftp://ftp.cyf-kr.edu.pl/pub/unix/lynx/${SUBDIR:Q}/
diff --git a/www/lynx/distinfo b/www/lynx/distinfo
index 2d0e3a23ac4..2905cdb2366 100644
--- a/www/lynx/distinfo
+++ b/www/lynx/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.35 2016/12/22 17:30:51 sevan Exp $
+$NetBSD: distinfo,v 1.36 2018/02/16 07:17:09 wiz Exp $
SHA1 (lynx2.8.8rel.2.tar.bz2) = 65bbf95627c88723bbb5880155e5fe01c2753d0c
RMD160 (lynx2.8.8rel.2.tar.bz2) = a683f9c163a6c343bde53ffde99dbecce4e41b02
SHA512 (lynx2.8.8rel.2.tar.bz2) = a475fb7b79641ddd7c20861e16d3d71ccb1a5ae33247cce0b9e73690dd664ebf129964c026bc33b0f082a7585e5a6acae9afc9a65f308e19b49fa0a8bebc0362
Size (lynx2.8.8rel.2.tar.bz2) = 2587120 bytes
SHA1 (patch-WWW_Library_Implementation_HTTCP.c) = 7449ad250c5971483aba8bd3c233080deafe7837
-SHA1 (patch-WWW_Library_Implementation_HTTP.c) = 3249d46c1494f7913da71c8d1f689d9f3523d0f3
+SHA1 (patch-WWW_Library_Implementation_HTTP.c) = 0ae567e2c7622ba4ce43f48d717f4a5a6b4d01b1
SHA1 (patch-WWW_Library_Implementation_HTTP.h) = 4ad3a9cf309c7ef32d0a53df6f5840ed57c25a31
SHA1 (patch-WWW_Library_Implementation_HTUTILS.h) = 654c4bd1be5e2d8c74efb44e2a5e996957bf7622
SHA1 (patch-aa) = 85e76c4b2708e01dd1abdc1af764a067bd83bcb9
diff --git a/www/lynx/patches/patch-WWW_Library_Implementation_HTTP.c b/www/lynx/patches/patch-WWW_Library_Implementation_HTTP.c
index f25984fad07..72504b0805f 100644
--- a/www/lynx/patches/patch-WWW_Library_Implementation_HTTP.c
+++ b/www/lynx/patches/patch-WWW_Library_Implementation_HTTP.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-WWW_Library_Implementation_HTTP.c,v 1.1 2016/12/21 11:25:25 sevan Exp $
+$NetBSD: patch-WWW_Library_Implementation_HTTP.c,v 1.2 2018/02/16 07:17:09 wiz Exp $
Mitigate POODLE vulnerability
https://hg.java.net/hg/solaris-userland~gate/file/bc5351dcb9ac/components/lynx/patches/02-init-openssl.patch
@@ -49,6 +49,15 @@ https://hg.java.net/hg/solaris-userland~gate/file/0a979060f73b/components/lynx/p
FREE(msg);
}
while ((*p1++ = *p2++) != '\0') {
+@@ -720,7 +728,7 @@ static int HTLoadHTTP(const char *arg,
+ #elif SSLEAY_VERSION_NUMBER >= 0x0900
+ #ifndef USE_NSS_COMPAT_INCL
+ if (!try_tls) {
+- handle->options |= SSL_OP_NO_TLSv1;
++ SSL_CTX_set_options(handle, SSL_OP_NO_TLSv1);
+ #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT)
+ } else {
+ int ret = (int) SSL_set_tlsext_host_name(handle, ssl_host);
@@ -1074,7 +1082,7 @@ static int HTLoadHTTP(const char *arg,
char *host = NULL;