List Info

Thread: Re: /dev/ttyXX for first serial port on NetBSD?




Re: /dev/ttyXX for first serial port on NetBSD?
country flaguser name
France
2007-04-28 04:45:03
Hi!

Thomas Bieg wrote:
> Gilles Gravier wrote:
>> But the CGI don't build when you "make
install".
>>
>> And the build options don't include support for
httpd... so did you 
>> use the default build options and just hack the CGI
files to work?
>
> I was using the unchanged sources from apcupsd.org, so
I had different
> default build options.
>
> 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. :(
>> Could you tar-ball the CGI files you have and post
them to me?
> Sure I could do that but my apcupsd version is slightly
older than
> yours so there's a chance that they won't work as
expected. (If you
> want to try them nonetheless just drop me another
line.)
I'm ready to try. I assume the CGI actually call apcaccess
with proper 
parameters... so I think it should work. Could you tar the
CGI 
directories you use?

Thanks,
Gilles.


-- 
/*Gilles Gravier*/ *=* *GillesGravier.org*
<mailto:GillesGravier.org> 
*=* *http://www.gravier.org/*

ICQ : *77488526* 
<http://www.icq.com/whitepages/about_me.php?Uin=774885
26> * || *MSN 
Messenger : GillesGravier.org <http://members.msn.com/
GillesGravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! :
ggravier 
<http://profile
s.yahoo.com/ggravier> || AOL : gillesgravier 
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026* 
<http://pgp.mit.edu:11371/pks/lookup?search
=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon
Short/) [/David Gerrold/]
"De toutes les aberrations sexuelles, la chasteté est
la plus 
aberrante." [Anatole France]


httpd CGI support for apcupsd (was: Re: /dev/ttyXX for first serial port on NetBSD?)
country flaguser name
Germany
2007-04-28 06: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
(http://mail-index.netbsd.org/netbsd-users/2007/04/
28/0001.html)
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).

Tom

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )