πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265783

Re: Historical statistics on USENET

#265783
From: Eli the Bearded
Date: Fri, 21 Oct 2022 04:24
66 lines
3822 bytes
In news.software.readers, Eric M  <conanospamic@gmail.com> wrote:
> [Xpost + Fu2 news.software.readers]
> Frank Slootweg a Γ©crit le Tue, 18 Oct 2022
> 17:42:42 dans news.software.nntp :
> 
> >> How can I install tin on termux on an Android smartphone natively ?
> >> This would be great.
> >   As I mentioned, a news.software.readers regular has built trn under
> > Termux, so it's probably best to ask/cross-post in/to that group, as he
> > can probably provide some general Termux build advice.

That would be me. I did it as proof of concept, I prefer reading news
ssh'ed in somewhere else (so I always have the same .newsrc on or off
phone).

> Ok, so I'm crossposting and putting a Followup there (yes, I already
> said it, but I want to be perfectly clear).

It wasn't dead simple, but it wasn't the hardest. Termux provides a
fairly full Linux shell, trn is designed to compile on anything Unix
like. It's a good match, but really some of the trickiest bits might be
solved by compiling a newer newsreader under Termux.

Two gotchas I remember: Termux has bash, which is a good replacment for
/bin/sh and it has a sh, but it does not have /bin/sh. 

$ which sh
/data/data/com.termux/files/usr/bin/sh
$

Meanwhile trn is pretty determined to use /bin/sh for lots of things
during config, install, and runtime.

The other thing that I ran into was no /etc/passwd and no getent() for
passwd entries. This comes up when it's trying to figure out the
username or something. But the code has a workaround already, just a bug
preventing it from being reached. I edited in a return(-1) (or similar)
and it worked.

Then there were the usual issues of compiling legacy code on modern
compilers.

$ cc --version
clang version 15.0.1
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
$ 

It was probably something like adding -std=c89 to options. 

But Termux had all the libraries needed, and all the terminal support
required for trn4. There might be a precompiled newsreader already in
Termux packages, I didn't look hard. (There is lynx in packages, I don't
recall if I have ever tested news: links from it, but it works for web
browsing.)

I also didn't try to get a sendmail working for reply by email, but it's
feasible. I have heirloom-mailx (aka nail) working for reading / sending
email, but I mostly just read crap like "verify your email address" and
mostly just send stuff to myself. Google would probably flag my
self-hosted email stack as super-spammy.

Elijah
------
https://github.com/Eli-the-Bearded/heirloom-mailx
Technical Details
Message-ID: <eli$2210202354@qaz.wtf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <ti8qr3$1gco$1@gioia.aioe.org> <tilna1$jcj$2@shakotay.alphanet.ch> <timohr.e78.1@ID-201911.user.individual.net> <timmse$p6$1@shakotay.alphanet.ch>

Show Full Headers
Complete Article Headers
Message-ID: <eli$2210202354@qaz.wtf>
Subject: Re: Historical statistics on USENET
Date: Fri, 21 Oct 2022 04:24:10 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <ti8qr3$1gco$1@gioia.aioe.org> <tilna1$jcj$2@shakotay.alphanet.ch> <timohr.e78.1@ID-201911.user.individual.net> <timmse$p6$1@shakotay.alphanet.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Organization: Some absurd concept
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Date: Fri, 21 Oct 2022 04:24:10 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5"; logging-data="5000"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-Us-Congress: Moronic Fucks.
X-Attribution: EtB
Xfrom: is a real address
Encrypted: double rot-13