🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81678

Re: Innreport evenRow/oddRow "Greenbar" output

#81678
From: Alexander Bartolich
Date: Wed, 29 Jul 2009 05:21
48 lines
3071 bytes
John F. Morse wrote:
> The inn-2.5.0.tar.gz tarball includes inside inn-2.5.0/samples the
> following two files:
>
> innreport.conf.in 8246 2008-12-21 21:07:28Z iulius
>
> innreport.css 8170 2008-11-17 19:14:16Z iulius
>
> I also find inn-2.5.0/scripts/innreport.in and
> inn-2.5.0/scripts/innreport_inn.pm in that tarball.
>
> For INN 2.4.5, could one or more of these files simply replace the
> single /etc/news/innreport.conf and/or /usr/lib/news/bin/innreport to
> allow the evenRow/oddRow colorization of the HTML output? Would any
> other new file from 2.5.0 also be required?

You can use the innreport from 2.5.0 with 2.4.x. I'm using the even
more recent head revision with INN 2.4.3. However, you cannot simply
replace the files.

1. With innreport.conf you have to keep a few settings in section
   "default" that covers the first 60 lines at the top of the file.
   At a minimum you need to preserve the values for libpath, logpath,
   and html_dir.

2. With innreport.in two changes are required.
   The second line of the script looks like this:
     # fixscript will replace this line with code to load INN::Config
   Replace it with the original second line. On my system that's
     require '/usr/lib/news/innshellvars.pl';

   Also at line 100 or so innreport.in has 
     my $HTML_dir = $INN::Config::pathhttp;
   Replace this line with 
     my $HTML_dir = $INN::pathhttp;

3. innreport_inn.pm can be simply replaced.

> If possible, I'd prefer to stick with Debian's APT version support for
> Lenny (INN 2.4.5), and don't want to start over with compiling.

I'm using Ubuntu 8.04.3 LTS.

-- 
Brüder, in die Tonne die Freiheit,
Brüder, ein Stoppschild davor.
Egal was die Schwarzen Verlangen
Rufen wir: Ja! Brav im Chor.
Technical Details
Message-ID: <h4om8f$b2g$1@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail
References: <h4odrr$7of$1@optima5.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <h4om8f$b2g$1@news.albasani.net>
Subject: Re: Innreport evenRow/oddRow "Greenbar" output
Date: Wed, 29 Jul 2009 05:21:19 +0000
From: Alexander Bartolich <alexander.bartolich@gmx.at>
References: <h4odrr$7of$1@optima5.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail
Newsgroups: news.software.nntp
Organization: albasani.net
Lines: 48
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 k54H7n7h6mUZELgGKQcvSZ+nnLlowZU3/9xQVwXf67mwKfp3cXmGghC2tSrmDQwnWb6tlVuunD84Du/j0TRa8TPJW7hTJk995KXvJsH7o7FevqWr1KbAATzO7jmIScXM
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Wed, 29 Jul 2009 05:21:19 +0000 (UTC)
X-User-ID: gatgG1o2ghdkhuqO/bjv9xkezyIYtr6SEyFxOb25T27PGaD2o+CxEqm1/FysfaLZnXQF5kLFNxT7yn3APATXlw==
Cancel-Lock: sha1:weoCuYCZubOCoYw2X2F36USl3kk=
User-Agent: slrn/0.9.9p1 (Linux)
X-NNTP-Posting-Host: rFSIaVk3jBrImv0muAgWLeB3jCtj1y2Y2DU3t8MI1Tc=