Rob's search thingy Install

Download

Download source: websearch.tar.gz
Extract with 'tar xvfz websearch.tar.gz'.

Compilation

cc -O2 -Wall -o cgi-index cgi-index.c
cc -O2 -Wall -o cgi-search cgi-search.c
cc -O2 -Wall -o fndtitle fndtitle.c
cc -O2 -Wall -o gen-num-index gen-num-index.c
cc -O2 -Wall -o url2file url2file.c

If the compilation of cgi-search causes problems, see: custom.h.

Installation

Binaries

Do this as root. Directories need to exist.

cp cgi-index /usr/local/bin/
cp fndtitle /usr/local/bin/
cp gen-num-index /usr/local/bin/
cp url2file /usr/local/bin/
cp cgi-search /usr/lib/cgi-bin/

Scripts

cp gen-cgi-index.sh /usr/local/bin/
cp gen-text-files-list.sh /usr/local/bin/

Run both from a cron job. gen-text-files-list.sh after Linklint and before gen-cgi-index.sh

Man pages

Do this as root. Directories need to exist.

cp cgi-index.1 /usr/local/share/man/man1/
cp cgi-search.1 /usr/local/share/man/man1/
cp fndtitle.1 /usr/local/share/man/man1/
cp gen-num-index.1 /usr/local/share/man/man1/
cp url2file.1 /usr/local/share/man/man1/
gzip /usr/local/share/man/man1/cgi-index.1
gzip /usr/local/share/man/man1/cgi-search.1
gzip /usr/local/share/man/man1/fndtitle.1
gzip /usr/local/share/man/man1/gen-num-index.1
gzip /usr/local/share/man/man1/url2file.1

Documentation

cp file-formats /usr/local/share/doc/websearch/
cp headers /usr/local/share/doc/websearch/
cp README /usr/local/share/doc/websearch/

Example webform

cp index.html /var/www/search/

Directory needs to exist.

Notes

The following directories need to exist;

They have to be (group) writable by the indexer process owner.

The software assumes that all HTML files have the '.html' extension. If this is not the case, you need to modify the shell scripts and C-sources, to include other extensions.

Don't run the indexer as root.
Don't run it as the webserver process owner either.