Hi, "tn5250 is a telnet client for the IBM iSeries and AS/400 that emulates 5250 terminals and printers. This function is the same as that provided by the 5250 emulator in IBM iSeries Access."
Does anybody use this port? I can't really evaluate its usefulness, and have no idea whether it actually still works. It hasn't been updated since its initial import back in 2005 (upstream released a new version in 2008). I sent a single mail upstream a few months ago, about the SSLv3 fix, but got no reply. If we want to keep it, here's an update to the "latest" version: Index: Makefile =================================================================== RCS file: /cvs/ports/net/tn5250/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- Makefile 16 Mar 2015 18:07:53 -0000 1.14 +++ Makefile 7 Oct 2015 11:31:54 -0000 @@ -2,9 +2,10 @@ COMMENT= 5250 telnet protocol and terminal -DISTNAME= tn5250-0.17.3 -REVISION= 3 +DISTNAME= tn5250-0.17.4 + SHARED_LIBS= 5250 0.0 + CATEGORIES= net HOMEPAGE= http://tn5250.sourceforge.net/ @@ -16,7 +17,6 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE: WANTLIB= ncurses c ssl crypto -AUTOCONF_VERSION= 2.59 CONFIGURE_STYLE= gnu CONFIGURE_ARGS= ${CONFIGURE_SHARED} CONFIGURE_ARGS+= --enable-os-dir=no --with-ssl Index: distinfo =================================================================== RCS file: /cvs/ports/net/tn5250/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 18 Jan 2015 03:14:53 -0000 1.3 +++ distinfo 7 Oct 2015 11:31:54 -0000 @@ -1,2 +1,2 @@ -SHA256 (tn5250-0.17.3.tar.gz) = lW+8serGsrL6oKUXM838NwEDiY6v+rYRKGCLORYGGjY= -SIZE (tn5250-0.17.3.tar.gz) = 999938 +SHA256 (tn5250-0.17.4.tar.gz) = NUI31ADcRq+IfLP/pO0fLDcfW4vui+BGpoOkrJ20+cU= +SIZE (tn5250-0.17.4.tar.gz) = 648452 Index: patches/patch-curses_cursesterm_h =================================================================== RCS file: patches/patch-curses_cursesterm_h diff -N patches/patch-curses_cursesterm_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-curses_cursesterm_h 7 Oct 2015 11:31:54 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +--- curses/cursesterm.h.orig Tue Oct 6 21:38:05 2015 ++++ curses/cursesterm.h Tue Oct 6 21:39:49 2015 +@@ -29,8 +29,10 @@ extern "C" { + #if USE_CURSES + #ifdef HAVE_NCURSES_H + #include <ncurses.h> ++#include <term.h> + #else + #include <curses.h> ++#include <term.h> + #endif + #ifdef HAVE_TERMCAP_H + #include <termcap.h> Index: patches/patch-lib5250_sslstream_c =================================================================== RCS file: patches/patch-lib5250_sslstream_c diff -N patches/patch-lib5250_sslstream_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-lib5250_sslstream_c 7 Oct 2015 11:31:54 -0000 @@ -0,0 +1,28 @@ +$OpenBSD$ + +Allow building against OpenSSL without SSLv2/SSLv3 support. + +--- lib5250/sslstream.c.orig Fri Nov 21 09:12:21 2008 ++++ lib5250/sslstream.c Tue Oct 6 21:32:29 2015 +@@ -368,13 +368,19 @@ int tn5250_ssl_stream_init (Tn5250Stream *This) + methstr[4] = '\0'; + } + ++#ifndef OPENSSL_NO_SSL2 + if (!strcmp(methstr, "ssl2")) { + meth = SSLv2_client_method(); + TN5250_LOG(("SSL Method = SSLv2_client_method()\n")); +- } else if (!strcmp(methstr, "ssl3")) { ++ } else ++#endif ++#ifndef OPENSSL_NO_SSL3 ++ if (!strcmp(methstr, "ssl3")) { + meth = SSLv3_client_method(); + TN5250_LOG(("SSL Method = SSLv3_client_method()\n")); +- } else { ++ } else ++#endif ++ { + meth = SSLv23_client_method(); + TN5250_LOG(("SSL Method = SSLv23_client_method()\n")); + } Index: patches/patch-src_sslstream_c =================================================================== RCS file: patches/patch-src_sslstream_c diff -N patches/patch-src_sslstream_c --- patches/patch-src_sslstream_c 18 Jul 2015 04:59:42 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,28 +0,0 @@ -$OpenBSD: patch-src_sslstream_c,v 1.2 2015/07/18 04:59:42 sthen Exp $ - -Allow building against OpenSSL without SSLv2/SSLv3 support. - ---- src/sslstream.c.orig Fri Apr 1 17:08:55 2005 -+++ src/sslstream.c Fri Jul 17 22:58:15 2015 -@@ -367,13 +367,19 @@ int tn5250_ssl_stream_init (Tn5250Stream *This) - methstr[4] = '\0'; - } - -+#ifndef OPENSSL_NO_SSL2 - if (!strcmp(methstr, "ssl2")) { - meth = SSLv2_client_method(); - TN5250_LOG(("SSL Method = SSLv2_client_method()\n")); -- } else if (!strcmp(methstr, "ssl3")) { -+ } else -+#endif -+#ifndef OPENSSL_NO_SSL3 -+ if (!strcmp(methstr, "ssl3")) { - meth = SSLv3_client_method(); - TN5250_LOG(("SSL Method = SSLv3_client_method()\n")); -- } else { -+ } else -+#endif -+ { - meth = SSLv23_client_method(); - TN5250_LOG(("SSL Method = SSLv23_client_method()\n")); - } -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE