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" ) } # }
Just to be clear: you just want to install the three cgi scripts into the proper location, or is there anything else?
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).
Pleasy please, don't force dependency on apache though :)
flameeyes: see the lighttpd stuff that is already included ;-).
Are you sure the files are actually there? (See Bug #152659)
Please fix bug 152659 first :)