elinks: update to 0.14.0, switch upstream.

This commit is contained in:
Érico Rolim 2020-12-27 21:07:14 +01:00 committed by Érico Nogueira Rolim
parent eb69bdf6bd
commit 1a19a11954
4 changed files with 11 additions and 62 deletions

View File

@ -1,20 +0,0 @@
Remove this nonsense to allow cross compilation...
--- configure.in.orig 2015-01-04 09:56:34.986063527 +0100
+++ configure.in 2015-01-04 09:56:43.842149084 +0100
@@ -44,15 +44,6 @@ if test -e Makefile.config; then
fi
# ===================================================================
-# Load feature configuration file and start logging features.
-# ===================================================================
-
-features="features.conf"
-AC_CHECK_FILE("$srcdir/$features", [ . $srcdir/$features ])
-AC_CHECK_FILE("$builddir/$features", [ . $builddir/$features ])
-echo "Feature summary:" > features.log
-
-# ===================================================================
# Checks for programs.
# ===================================================================

View File

@ -1,11 +0,0 @@
--- src/network/ssl/socket.c.orig 2017-02-08 12:49:43 UTC
+++ src/network/ssl/socket.c
@@ -67,7 +67,7 @@ static void
ssl_set_no_tls(struct socket *socket)
{
#ifdef CONFIG_OPENSSL
- ((ssl_t *) socket->ssl)->options |= SSL_OP_NO_TLSv1;
+ SSL_set_options((ssl_t *) socket->ssl, SSL_OP_NO_TLSv1);
#elif defined(CONFIG_GNUTLS)
{
/* GnuTLS does not support SSLv2 because it is "insecure".

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-src_network_ssl_ssl_c,v 1.2 2014/06/02 14:37:16 sthen Exp $
--- src/network/ssl/ssl.c.orig Mon Jun 2 12:54:40 2014
+++ src/network/ssl/ssl.c Mon Jun 2 12:55:46 2014
@@ -49,11 +49,16 @@ init_openssl(struct module *module)
* cannot initialize the PRNG and so every attempt to use SSL fails.
* It's actually an OpenSSL FAQ, and according to them, it's up to the
* application coders to seed the RNG. -- William Yodlowsky */
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
+ RAND_file_name(f_randfile, sizeof(f_randfile));
+#ifdef HAVE_RAND_EGD
+ if (RAND_egd(f_randfile) < 0) {
/* Not an EGD, so read and write to it */
+#endif
if (RAND_load_file(f_randfile, -1))
RAND_write_file(f_randfile);
+#ifdef HAVE_RAND_EGD
}
+#endif
SSLeay_add_ssl_algorithms();
context = SSL_CTX_new(SSLv23_client_method());

View File

@ -1,22 +1,23 @@
# Template file for 'elinks'
pkgname=elinks
version=0.12pre6
revision=22
version=0.14.0
revision=1
build_style=gnu-configure
configure_args="--enable-true-color --enable-fastmem"
hostmakedepends="automake libtool pkg-config"
makedepends="gpm-devel zlib-devel bzip2-devel libidn-devel tre-devel ncurses-devel libressl-devel"
configure_args="--enable-true-color --enable-fastmem --without-spidermonkey"
hostmakedepends="automake libtool pkg-config gettext"
makedepends="gpm-devel zlib-devel bzip2-devel libidn-devel tre-devel
ncurses-devel libressl-devel"
short_desc="Full-Featured Text WWW Browser"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://elinks.or.cz"
distfiles="http://elinks.or.cz/download/${pkgname}-${version}.tar.bz2"
checksum=383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada
homepage="https://github.com/rkd77/elinks"
distfiles="https://github.com/rkd77/elinks/archive/v${version}.tar.gz"
checksum=ee1294d9144687ad6d45255a4d1b2802bec2b6285725cb4254a86780efad668f
pre_configure() {
sed -i 's,VA_COPY,va_copy,g' src/*/*.c
autoreconf -fi
}
post_install() {
rm -f ${DESTDIR}/usr/share/locale/locale.alias
rm ${DESTDIR}/usr/share/locale/locale.alias
}