diff --git a/www/elinks/Makefile b/www/elinks/Makefile index 537df7ccfb7f..392077f5c50f 100644 --- a/www/elinks/Makefile +++ b/www/elinks/Makefile @@ -1,105 +1,107 @@ # Created by: Michael Vasilenko PORTNAME= elinks -DISTVERSION= 0.11.7 -PORTREVISION= 13 +DISTVERSIONPREFIX= v +DISTVERSION= 0.15.0 CATEGORIES= www -MASTER_SITES= http://elinks.or.cz/download/ -MAINTAINER= beat@FreeBSD.org +MAINTAINER= jailbird@fdf.net COMMENT= Links text WWW browser with enhancements LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING GNU_CONFIGURE= yes -USES= bison:alias cpe gmake localbase ssl tar:bzip2 +USES= autoreconf bison:alias cpe gmake localbase ssl CONFIGURE_ARGS= --without-zlib +USE_GITHUB= yes +GH_ACCOUNT= rkd77 + LIBS+= -lexecinfo OPTIONS_DEFINE= 88COLORS 256COLORS SPIDERMONKEY XBELMARKS LOCAL_CGI \ FINGER GOPHER BITTORRENT NNTP FTP FSP SMB EXMODE \ HIGHLIGHT IDN NOROOT FASTMEM PERL \ LUA GUILE ICONV MOUSE NLS OPTIONS_DEFAULT= 88COLORS 256COLORS FTP EXMODE HIGHLIGHT FASTMEM MOUSE OPTIONS_SUB= yes 88COLORS_DESC= 88 color support 256COLORS_DESC= 256 color support SPIDERMONKEY_DESC= ECMAScript support (via SpiderMonkey) XBELMARKS_DESC= XBEL bookmarks (via expat) LOCAL_CGI_DESC= Local CGI support FSP_DESC= FSP protocol support (via fsplib) EXMODE_DESC= Exmode (CLI) support HIGHLIGHT_DESC= HTML highlighting using DOM engine NOROOT_DESC= Prevention of usage by root FASTMEM_DESC= Fast memory allocation functions NLS_USES= gettext NLS_CONFIGURE_OFF= --disable-nls GUILE_LIB_DEPENDS= libguile.so:lang/guile GUILE_CONFIGURE_WITH= guile LUA_USES= lua:51 LUA_CONFIGURE_WITH= lua LUA_CPPFLAGS= -I${LUA_INCDIR} LUA_LDFLAGS= -L${LUA_LIBDIR} PERL_USES= perl5 PERL_CONFIGURE_WITH= perl FASTMEM_CONFIGURE_ON= --enable-fastmem IDN_LIB_DEPENDS= libidn.so:dns/libidn IDN_CONFIGURE_WITH= idn NOROOT_CONFIGURE_ON= --enable-no-root HIGHLIGHT_CONFIGURE_ON= --enable-html-highlight EXMODE_CONFIGURE_ON= --enable-exmode SMB_USES= samba # smbclient SMB_CONFIGURE_ENABLE= smb FSP_RUN_DEPENDS= ${LOCALBASE}/lib/libfsplib.a:net/fsplib FSP_BUILD_DEPENDS= ${LOCALBASE}/lib/libfsplib.a:net/fsplib FSP_CONFIGURE_ENABLE= fsp FTP_CONFIGURE_ENABLE= ftp NNTP_CONFIGURE_ENABLE= nntp BITTORRENT_CONFIGURE_ENABLE= bittorrent GOPHER_CONFIGURE_ENABLE= gopher MOUSE_CONFIGURE_ENABLE= mouse FINGER_CONFIGURE_ENABLE= finger LOCAL_CGI_CONFIGURE_ENABLE= cgi XBELMARKS_LIB_DEPENDS= libexpat.so:textproc/expat2 XBELMARKS_CONFIGURE_ON= --enable-xbel --with-expat XBELMARKS_CONFIGURE_OFF=--disable-xbel 256COLORS_CONFIGURE_ON= --enable-256-colors 88COLORS_CONFIGURE_ON= --enable-88-colors SPIDERMONKEY_BUILD_DEPENDS= ${LOCALBASE}/lib/libjs.so:lang/spidermonkey17 SPIDERMONKEY_RUN_DEPENDS= js:lang/spidermonkey17 SPIDERMONKEY_LIB_DEPENDS= libnspr4.so:devel/nspr SPIDERMONKEY_CFLAGS= -I${LOCALBASE}/include/nspr \ -I${LOCALBASE}/include/js-1.7 SPIDERMONKEY_LDFLAGS= -lnspr4 -pthread -lpthread -lm SPIDERMONKEY_CONFIGURE_ON= --enable-sm-scripting --with-spidermonkey SPIDERMONKEY_CONFIGURE_OFF= --disable-sm-scripting --without-spidermonkey ICONV_USES= iconv ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} .include diff --git a/www/elinks/distinfo b/www/elinks/distinfo index 235dff0bc71c..554e1bfa4a6b 100644 --- a/www/elinks/distinfo +++ b/www/elinks/distinfo @@ -1,2 +1,3 @@ -SHA256 (elinks-0.11.7.tar.bz2) = 456db6f704c591b1298b0cd80105f459ff8a1fc07a0ec1156a36c4da6f898979 -SIZE (elinks-0.11.7.tar.bz2) = 2467915 +TIMESTAMP = 1644995066 +SHA256 (rkd77-elinks-v0.15.0_GH0.tar.gz) = 49e261fb7a6b061b51ca38b7152712caba90c8eaa6996bcf4c00fe2867a7f366 +SIZE (rkd77-elinks-v0.15.0_GH0.tar.gz) = 3783388 diff --git a/www/elinks/files/patch-configure.ac b/www/elinks/files/patch-configure.ac new file mode 100644 index 000000000000..e7db5138422c --- /dev/null +++ b/www/elinks/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2022-01-29 19:43:50 UTC ++++ configure.ac +@@ -1861,7 +1861,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + ;; + 10|10.*|11|11.*) + # gettext +- CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Wno-array-bounds" ++ CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-array-bounds" + ;; + *) + # These should be ok using -Werror diff --git a/www/elinks/files/patch-src_intl_gettext_Makefile b/www/elinks/files/patch-src_intl_gettext_Makefile index b046fff67e69..9a0e5bf2ad9f 100644 --- a/www/elinks/files/patch-src_intl_gettext_Makefile +++ b/www/elinks/files/patch-src_intl_gettext_Makefile @@ -1,25 +1,25 @@ ---- src/intl/gettext/Makefile.orig Thu Feb 16 07:41:10 2006 -+++ src/intl/gettext/Makefile Thu Feb 16 07:48:45 2006 -@@ -47,14 +47,12 @@ +--- src/intl/gettext/Makefile.orig 2021-12-24 19:53:43 UTC ++++ src/intl/gettext/Makefile +@@ -49,14 +49,12 @@ install-local: $(builddir)/charset.alias all if test -f $(DESTDIR)$(libdir)/charset.alias; then \ orig=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ - $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ if test $(GLIBC21) = no; then \ $(MKINSTALLDIRS) $(DESTDIR)$(libdir); \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ - $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ fi; \ fi; \ -@@ -65,7 +63,6 @@ +@@ -67,7 +65,6 @@ install-local: $(builddir)/charset.alias all temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-add.sed $$orig > $$temp; \ - $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ : ; \ diff --git a/www/elinks/files/patch-src_network_ssl_socket.c b/www/elinks/files/patch-src_network_ssl_socket.c deleted file mode 100644 index fa498a3570e9..000000000000 --- a/www/elinks/files/patch-src_network_ssl_socket.c +++ /dev/null @@ -1,20 +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". -@@ -145,7 +145,7 @@ - } - - if (client_cert) { -- SSL_CTX *ctx = ((SSL *) socket->ssl)->ctx; -+ SSL_CTX *ctx = SSL_get_SSL_CTX(socket->ssl); - - SSL_CTX_use_certificate_chain_file(ctx, client_cert); - SSL_CTX_use_PrivateKey_file(ctx, client_cert, diff --git a/www/elinks/files/patch-src_network_ssl_ssl.c b/www/elinks/files/patch-src_network_ssl_ssl.c deleted file mode 100644 index 996c7f867188..000000000000 --- a/www/elinks/files/patch-src_network_ssl_ssl.c +++ /dev/null @@ -1,21 +0,0 @@ ---- src/network/ssl/ssl.c.orig 2019-01-09 23:04:06 UTC -+++ src/network/ssl/ssl.c -@@ -49,11 +49,17 @@ 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)); -+#ifndef OPENSSL_NO_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); -+#ifndef OPENSSL_NO_EGD - } -+#endif - - SSLeay_add_ssl_algorithms(); - context = SSL_CTX_new(SSLv23_client_method()); diff --git a/www/elinks/files/patch-src_osdep_unix_bsd.c b/www/elinks/files/patch-src_osdep_unix_bsd.c new file mode 100644 index 000000000000..47cddb678650 --- /dev/null +++ b/www/elinks/files/patch-src_osdep_unix_bsd.c @@ -0,0 +1,13 @@ +--- src/osdep/unix/bsd.c.orig 2022-01-29 20:03:00 UTC ++++ src/osdep/unix/bsd.c +@@ -15,6 +15,10 @@ + #endif /* HAVE_SYS_CONSIO_H */ + #endif /* CONFIG_SYSMOUSE */ + ++#if defined(__FreeBSD__) ++#include ++#endif ++ + #include "elinks.h" + + #include "main/select.h" diff --git a/www/elinks/files/patch-src_scripting_lua_Makefile b/www/elinks/files/patch-src_scripting_lua_Makefile index 5c71bc947eea..15aa60af708c 100644 --- a/www/elinks/files/patch-src_scripting_lua_Makefile +++ b/www/elinks/files/patch-src_scripting_lua_Makefile @@ -1,11 +1,11 @@ ---- src/scripting/lua/Makefile.orig 2007-07-30 16:17:41.000000000 +0200 -+++ src/scripting/lua/Makefile 2007-07-30 16:17:53.000000000 +0200 +--- src/scripting/lua/Makefile.orig 2021-12-24 19:53:43 UTC ++++ src/scripting/lua/Makefile @@ -1,7 +1,7 @@ top_builddir=../../.. include $(top_builddir)/Makefile.config -INCLUDES += $(LUA_CFLAGS) +INCLUDES += $(LUA_CFLAGS) $(CPPFLAGS) OBJS = lua.o hooks.o core.o diff --git a/www/elinks/pkg-descr b/www/elinks/pkg-descr index 1b1d64f57e76..e4ef12185b40 100644 --- a/www/elinks/pkg-descr +++ b/www/elinks/pkg-descr @@ -1,21 +1,21 @@ elinks is the links text WWW browser with many bugfixes and enhancements. So far elinks adds the following to links: many bugfixes new translations and some updates of the original ones some very minor features not worth mentioning here code cleanup lua support (from links-lua project) HTTP referrer support updated manpage --help lists all options now cookie expiration and saving/loading from disk ability to modify user-agent string unhistory support for editing textareas in external editor ability to switch off document-specific colors Spidermonkey-based ECMAScript support Syntax highlighting for HTML, RSS, and XBEL -WWW: http://elinks.or.cz/ +WWW: https://github.com/rkd77/elinks/ diff --git a/www/elinks/pkg-plist b/www/elinks/pkg-plist index bbad4cb4102c..69fef28e1d92 100644 --- a/www/elinks/pkg-plist +++ b/www/elinks/pkg-plist @@ -1,34 +1,36 @@ bin/elinks man/man1/elinks.1.gz man/man5/elinkskeys.5.gz man/man5/elinks.conf.5.gz +%%NLS%%share/locale/af/LC_MESSAGES/elinks.mo %%NLS%%share/locale/be/LC_MESSAGES/elinks.mo %%NLS%%share/locale/bg/LC_MESSAGES/elinks.mo %%NLS%%share/locale/ca/LC_MESSAGES/elinks.mo %%NLS%%share/locale/cs/LC_MESSAGES/elinks.mo %%NLS%%share/locale/da/LC_MESSAGES/elinks.mo %%NLS%%share/locale/de/LC_MESSAGES/elinks.mo %%NLS%%share/locale/el/LC_MESSAGES/elinks.mo %%NLS%%share/locale/es/LC_MESSAGES/elinks.mo %%NLS%%share/locale/et/LC_MESSAGES/elinks.mo %%NLS%%share/locale/fi/LC_MESSAGES/elinks.mo %%NLS%%share/locale/fr/LC_MESSAGES/elinks.mo %%NLS%%share/locale/gl/LC_MESSAGES/elinks.mo %%NLS%%share/locale/hr/LC_MESSAGES/elinks.mo %%NLS%%share/locale/hu/LC_MESSAGES/elinks.mo %%NLS%%share/locale/id/LC_MESSAGES/elinks.mo %%NLS%%share/locale/is/LC_MESSAGES/elinks.mo %%NLS%%share/locale/it/LC_MESSAGES/elinks.mo +%%NLS%%share/locale/ja/LC_MESSAGES/elinks.mo %%NLS%%share/locale/lt/LC_MESSAGES/elinks.mo %%NLS%%share/locale/nb/LC_MESSAGES/elinks.mo %%NLS%%share/locale/nl/LC_MESSAGES/elinks.mo %%NLS%%share/locale/pl/LC_MESSAGES/elinks.mo %%NLS%%share/locale/pt/LC_MESSAGES/elinks.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/elinks.mo %%NLS%%share/locale/ro/LC_MESSAGES/elinks.mo %%NLS%%share/locale/ru/LC_MESSAGES/elinks.mo %%NLS%%share/locale/sk/LC_MESSAGES/elinks.mo %%NLS%%share/locale/sr/LC_MESSAGES/elinks.mo %%NLS%%share/locale/sv/LC_MESSAGES/elinks.mo %%NLS%%share/locale/tr/LC_MESSAGES/elinks.mo %%NLS%%share/locale/uk/LC_MESSAGES/elinks.mo