Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133736 - sys-power/nut needs webapp loving.
Summary: sys-power/nut needs webapp loving.
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 152659
Blocks:
  Show dependency tree
 
Reported: 2006-05-18 16:29 UTC by Robin Johnson
Modified: 2007-01-03 10:25 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-18 16:29:40 UTC
sys-power/nut needs some webapp loving.

It presently compiles it's three cgi scripts, and places them in /usr/share/nut, telling the user to put them into Apache's ScriptPath. This is not really ideal.

The following is a lighttpd config for nut, and is now in the tree as ${FILESDIR}/lighttpd_nut.conf

I couldn't find anything in the webapp docs for things that don't actually copy any files.

# Simple copy this to /etc/lighttpd/ and include it in your lighttpd.conf.
# It will make NUT available at http://$HOST/nut/ 
server.modules += ("mod_cgi")
# If you want to limit it to some host, uncomment the host check and modify it to your needs.
# $HTTP["host"] == "www2.example.org" {
alias.url += ( "/nut/" => "/usr/share/nut/" )
$HTTP["url"] =~ "^/nut/" {
  dir-listing.activate = "disable"
  cgi.assign = ( ".cgi" => "" )
  index-file.names = ( "upsstats.cgi" )
}
# }
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2006-05-19 06:19:05 UTC
Just to be clear: you just want to install the three cgi scripts into the proper location, or is there anything else?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-19 14:08:01 UTC
The cgi files in whatever is the correct place, and the Apache config to go with them (similar to the lighttpd config I posted).
the index file is "upsstats.cgi", other listings turned off, and the scripts run directly (they are compiled ELF binaries).
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-19 17:12:36 UTC
Pleasy please, don't force dependency on apache though :)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-19 17:49:52 UTC
flameeyes: see the lighttpd stuff that is already included ;-).
Comment 5 Dominik George 2006-11-07 07:17:25 UTC
Are you sure the files are actually there?

(See Bug #152659)
Comment 6 Renat Lumpau (RETIRED) gentoo-dev 2007-01-03 10:25:48 UTC
Please fix bug 152659 first :)