First, see the perl install.

$ ftp
$ doas mv webnews /var/www/htdocs/
$ doas chown -R www:daemon /var/www/htdocs/webnews

As normal user:

$ cpan
What approach do you want?  (Choose 'local::lib', 'sudo' or 'manual')
cpan[1]> install News::NNTPClient
cpan[2]> install News::Newsrc
cpan[3]> install Set::IntSpan
cpan[4]> install Text::Wrap
cpan[5]> install HTTP::Date
cpan[6]> install MIME::QuotedPrint
cpan[7]> install MIME::Base64

Then we need to copy the perl libraries:

$ doas mkdir -p /var/www/usr/local/libdata/
$ doas cp -R /usr/local/libdata/perl5 /var/www/usr/local/libdata/

We need to change two lines in /var/www/htdocs/webnews/webnews.cgi:

BEGIN { $CONFFILE = '/htdocs/webnews/webnews.conf'; }
BEGIN { $INSTALLDIR = '/htdocs/webnews'; }

Next we set up the conf file:

$ doas cp /var/www/htdocs/webnews/webnews.conf.example /var/www/htdocs/webnews/webnews.conf

Then make a few changes to /var/www/htdocs/webnews/webnews.conf:

$SERVER = '';
$WNDIR = '/htdocs/webnews';
$BASEURL = '/';