Thursday, October 25, 2018

Re: [NEW] slant-0.0.10

On Wed, Oct 24, 2018 at 07:30:37AM -0600, Aaron Bieber wrote:
> I am setting this up atm. I will try to put together a readme we can include
> for nginx / httpd configurations.

Before/while you are at it:

Kristaps: Slant doesnt't appear to support specifying port number in the
URL in .slantrc, like:

$ tail -n 3 ~/.slantrc
servers
http://192.168.1.1:81/cgi-bin/slant-cgi
;

$ tail -n 2 ~/.slant-errlog
DNS resolving: 192.168.1.1:81
Warning: DNS parse error: 192.168.1.1:81: no address associated with name

I was about to attempt some tinkering in dns_parse_url in slant-dns.c
but gave up since I could not for the life of me get the sources from
your website to compile:

---8<---
$ make
kwebapp-sql slant.kwbp > slant.sql
rm -f slant.db
sqlite3 slant.db < slant.sql
kwebapp-c-header -s -g EXTERN_H -Nd slant.kwbp > extern.h
kwebapp-c-header -s -Nb slant.kwbp > db.h
cc -O2 -pipe -g -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter -DVERSION=\"0.0.10\" -c slant-collectd.c
cc -O2 -pipe -g -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter -DVERSION=\"0.0.10\" -c slant-collectd-openbsd.c
kwebapp-c-source -s -h extern.h,db.h slant.kwbp > db.c
cc -O2 -pipe -g -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter -DVERSION=\"0.0.10\" -c db.c
cc -o slant-collectd slant-collectd.o db.o slant-collectd-openbsd.o -lksql -lsqlite3
--->8---

Otherwise I love the little rascal, running it on seven machines so far,
but think the need for allowing to specify alternate ports will show up
from other users soon enough.

Thanks,

Erling

No comments:

Post a Comment