Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16771 - Inn 2.3.4 ebuild (needs fixing)
Summary: Inn 2.3.4 ebuild (needs fixing)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-03 17:04 UTC by Francisco León
Modified: 2003-04-16 19:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Inn files (inn-2.3.4.tar.gz,1.43 KB, application/gzip)
2003-03-03 17:05 UTC, Francisco León
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco León 2003-03-03 17:04:30 UTC
I built inn and it failed to start.
I queried bugzilla and someone pointed several errors in the ebuild, so i took
those changes and incorporated them into a new 2.3.4 ebuild

The author of those suggestions modified the rc script innd to load and stop the
daemon in a different way, but it doesn't work, so i added my own.

The suggested method to start and stop inn is to launch rc.news, which comes
with inn itself. It then launches inn, sleeps 60 seconds and launches innwatch.

The problem is that i don' t know how to stop inn once launched, so i used an
ugly hack, and launched start-stop-daemon --stop --user news twice.

If anyone wants to fix this, you are welcome.
The current ebuild in portage doesn t work, does not even start unless you
remove perl from the ebuild, and even so it does not start due to faulty
permissions and configuration in the ebuild. This new ebuild fixes all that but
one error:

 innd: SERVER cant dbzinit /var/spool/news/history No such file or directory

However the file is there, and owned by news:news

Move this attached file into /usr/portage/net-news/inn and run tar -zxvf
inn-2.3.4.tar.gz to install the files into their proper places
Comment 1 Francisco León 2003-03-03 17:05:28 UTC
Created attachment 8914 [details]
Inn files
Comment 2 Francisco León 2003-03-03 17:48:31 UTC
Ok, finally i learned how to do it (manually)
I just installed it with ./configure make make install, so it installed everything in /usr/local/news (let's call this "newsdir" to avoid typing)

Afer that, i needed to log in as "news", for this i had to modify /etc/passwd and change the starting dir to "newsdir" and set /bin/false to /bin/bash

Then, i cd into newsdir/db and typed:
touch history
../bin/makedbz -i

It will create 3 history.n.something files. You have to rename them into history.something, for example history.n.dir needs to be renamed to history.dir
This fixes the history file issue

After that, you need to create newsdir/log/news.crit news.err news.notice with touch

Finally, run newsdir/bin/rc.news to start and rc.news stop to stop.

By the way, --with-perl works in this new version.
Comment 3 Francisco León 2003-03-03 19:31:56 UTC
I'm really having trouble trying to do those commands in the ebuild.
I hope someone can fix it or help me out (i read the developers documentation in gentoo.org, but it doesn't give examples of how to carry these commands)

Also, the .h files are being installed in /var/tmp/portage... I'm screwing up on variables too
Comment 4 James Cloos 2003-04-07 17:20:49 UTC
inn is up to 2.3.5 now; 2.3.4 is not located at the URL in the ebuild, only 2.3.5 is found in that directory.

after untarring the attached ebuild: mv inn-2.3.4.ebuild inn-2.3.5.ebuild
and then: ebuild inn-2.3.5.ebuild digest
before emerging.

Otherwise the attached ebuild works fine.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-04-16 19:23:29 UTC
should be fixed with 2.3.5

if not, please report a new bug