From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id pB7Bqabl031716 for ; Wed, 7 Dec 2011 06:52:36 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id pB7BqaEW031538; Wed, 7 Dec 2011 06:52:36 -0500 (EST) Date: Wed, 7 Dec 2011 06:52:36 -0500 (EST) Message-Id: <201112071152.pB7BqaEW031538@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: By default, man.cgi should compile with -static (this was unset X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- By default, man.cgi should compile with -static (this was unset by mistake). Also, set a custom CSS for man.cgi catman files. Modified Files: -------------- mdocml: Makefile cgi.c Revision Data ------------- Index: cgi.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v retrieving revision 1.10 retrieving revision 1.11 diff -Lcgi.c -Lcgi.c -u -p -r1.10 -r1.11 --- cgi.c +++ cgi.c @@ -423,7 +423,21 @@ resp_search(struct res *r, size_t sz, vo return; } - resp_begin_html(200, NULL); + resp_begin_http(200, NULL); + puts("" "\n" + "" "\n" + " " "\n" + " " "\n" + " " "\n" + " System Manpage Reference" "\n" + " " "\n" + " " "\n" + ""); + resp_searchform((const struct req *)arg); if (0 == sz) @@ -614,9 +628,9 @@ format(const char *file) return; } - snprintf(opts, sizeof(opts), "style=/style.css," + snprintf(opts, sizeof(opts), "style=/man.css," "man=%s/search.html?sec=%%S&expr=%%N," - "includes=/cgi-bin/man.cgi/usr/include/%%I", + /*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/, progname); mparse_result(mp, &mdoc, &man); Index: Makefile =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v retrieving revision 1.385 retrieving revision 1.386 diff -LMakefile -LMakefile -u -p -r1.385 -r1.386 --- Makefile +++ Makefile @@ -30,7 +30,7 @@ CFLAGS += -DUSE_WCHAR #CFLAGS += -DUSE_MANPATH # If your system supports static binaries only, uncomment this. -#STATIC = -static +STATIC = -static CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv