Stuart Henderson <st...@openbsd.org> writes:

> On 2015/10/07 13:32, Jérémie Courrèges-Anglas wrote:
>> 
>> 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:
>
> I think it's worth keeping. One place where OpenBSD is a particularly
> good OS choice is as a bastion host used to access less-secure systems
> so I think terminal emulators for such systems are useful to have around.

Indeed, good point.

> The update doesn't package for me though, perhaps missing 'make plist'?

Grmbl, sorry.

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 13:24:18 -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 13:24:18 -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 13:24:18 -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 13:24:18 -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"));
-    }
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tn5250/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   16 Mar 2015 18:07:53 -0000      1.2
+++ pkg/PLIST   7 Oct 2015 13:24:18 -0000
@@ -1,17 +1,16 @@
 @comment $OpenBSD: PLIST,v 1.2 2015/03/16 18:07:53 naddy Exp $
+bin/5250keys
 @bin bin/lp5250d
 @bin bin/scs2ascii
 @bin bin/scs2pdf
 @bin bin/scs2ps
 @bin bin/tn5250
-bin/tn5250-config
 bin/xt5250
 include/tn5250/
 include/tn5250.h
 include/tn5250/buffer.h
 include/tn5250/codes5250.h
 include/tn5250/conf.h
-include/tn5250/config.h
 include/tn5250/cursesterm.h
 include/tn5250/dbuffer.h
 include/tn5250/debug.h
@@ -24,7 +23,6 @@ include/tn5250/record.h
 include/tn5250/scrollbar.h
 include/tn5250/scs.h
 include/tn5250/session.h
-include/tn5250/slangterm.h
 include/tn5250/stream.h
 include/tn5250/terminal.h
 include/tn5250/utility.h
@@ -33,15 +31,16 @@ include/tn5250/wtd.h
 lib/lib5250.a
 lib/lib5250.la
 @lib lib/lib5250.so.${LIB5250_VERSION}
-lib/pkgconfig/tn5250.pc
 @man man/man1/lp5250d.1
 @man man/man1/scs2ascii.1
 @man man/man1/scs2pdf.1
 @man man/man1/scs2ps.1
 @man man/man1/tn5250.1
 @man man/man5/tn5250rc.5
-share/aclocal/
-share/aclocal/tn5250.m4
 share/tn5250/
+share/tn5250/README
 share/tn5250/XTerm
-share/tn5250/dialogrc
+share/tn5250/sample.termcap
+share/tn5250/uk5250.map
+share/tn5250/us.5250.kbd
+share/tn5250/us5250.map


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to