Subject: httpd CGI support for apcupsd (was: Re: /dev/ttyXX for first serial
To: Gilles Gravier <>
From: Thomas Bieg <>
List: netbsd-users
Date: 04/28/2007 13:04:29
Gilles Gravier wrote:
> Thomas Bieg wrote:
>> You should be able to recompile your package with http support if you
>> uncomment the relating lines in your sysutils/apcupsd/Makefile:
>> #CONFIGURE_ARGS+=    --enable-http        # include http support
>> #CONFIGURE_ARGS+=    --enable-threads    # compile threading code
> I did a build with that. But it didn't put the CGI files anywhere I 
> could notice. :(

Another closer look reveals that those options are no longer valid;
you need to use --enable-cgi instead now...

[This and the other problem with the default config file
are worth a PR already, but as said before I don't even have the
package installed. Maybe we can draw Manuel Bouyer's attention,
he's the package maintainer...]

> I assume the CGI actually call apcaccess with proper 
> parameters... so I think it should work.

No, they connect to the integrated "network information server"
(option NETSERVER) you already enabled.

> Could you tar the CGI directories you use?

It would probably be better if you try another recompile first,
so we know if it works when done "right" (and let others with
the same problem profit from that).