Install

First, see the perl install.

$ ftp http://www.dgate.org/webnews/tars/webnews-1.3.1.tar.gz
$ 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')
 [local::lib] 
...
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 = 'example.ircnow.org';
$WNDIR = '/htdocs/webnews';
$BASEURL = '/';