tn5250 is a "telnet client for the IBM AS/400 that emulates 5250 terminals and printers." Basically, you use it to get access to an AS/400. It uses either ncurses or slang (slang is detected via USE flags). Also it has an optional X component (USE flags again) which basically just starts up an xterm for you. Also, it can optionally use OpenSSL. tn5250 also comes with a couple of daemons of some sort, that I've never played with and couldn't really figure out what precisely they do (documentation for it seems conspicuously absent). Also, a couple source files which get linked into these daemons didn't seem to define TRUE or FALSE, which was breaking compilation. The ebuild #defines those, and the client itself works fine (I've been using it for some time now and it seems stable). The ebuild also removes some lines in the Makefile designed to clean out terminfo entries which caused sandbox violations. (Since we were in a sandbox, they were rather superfluous, anyway.) The rest of the ebuild is fairly straightforward. Again, despite that oddity about TRUE and FALSE, the actual client seems perfectly stable to me.
Created attachment 4954 [details] tn5250-0.16.5.ebuild This is the ebuild. Enjoy!
Sorry for the delay. It's commited fo testing, so you'll need ACCEPT_KEYWORDS="~x86" in your /etc/make.conf in order to emerge it for now. Thanks for the ebuild CJ! Nice job.