Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37114

Summary: uptimed ebuild could keep the config file for CGI use of uprecords
Product: Gentoo Linux Reporter: Sylvain Demers <demerss>
Component: Current packagesAssignee: Markus Nigbur (RETIRED) <pYrania>
Status: VERIFIED FIXED    
Severity: enhancement CC: aliz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sylvain Demers 2004-01-03 09:37:32 UTC
The uptimed daemon has the uprecords executable to show the record uptimes. This executable may be used as a cgi on a web server. Included in uptimed's tarball are uprecords.conf, uprecords.header, and uprecords.footer, in the sample-cgi directory. Those files are currently ignored by the ebuild, and not merged into the file system.

I think it would be nice to have a USE flag (say, cgi), that would allow the ebuild to keep these files, and either copy uprecords as uprecords.cgi or symlink it. Uprecords needs to have the .cgi extention to work as cgi. Also, the 3 files from sample-cgi must reside in the same directory as the uprecords.cgi file.

I thought about providing a patch to the ebuild, but after looking at it, I'm not sure how to proceed, so I'll have to leave that to someone else!

Reproducible: Always
Steps to Reproduce:
Comment 1 Markus Nigbur (RETIRED) gentoo-dev 2004-02-24 22:51:47 UTC
I've added the sample configuration files into /usr/share/doc/ along with the INSTALL.cgi. I think this should be enough.