The source code for Zap! in included in the ASF Standalone and Interoperable distributions.
$ gunzip -c zap-<version>.tar.gz|tar xvf -
Structure now:
+-- yaz ---- include
| |
| + ----- libs
| |
| ...
|
+-- zap ---- src (mod_zap.c, makefile)
|
+------ htdocs
+
+------- zap (cgi.html, default.zap, ..)
$ cd zap/src
$ vi makefile
$ make
$ cp zap /usr/local/etc/httpd/cgi-bin (or whereever it's located)
$ mkdir /usr/local/etc/httpd/htdocs/zap (or whereever it's located)
$ cp htdocs/zap/* /usr/local/etc/httpd/htdocs/zap
$ ln -s apache_1.2b10 zap
4) Unpack zap.tar.gz
$ gunzip -c zap<version>.tar.gz|tar xvf -
Structure now:
+-- yaz
|
| (zap)
+-- apache -- src (mod_zap.c and apache C files)
|
+------ htdocs
| +
| +------- zap (search.html, default.zap, ..)
|
|
+------ logs .. (access_log, ... zap_log)
EXTRA_CFLAGS=-I../../yaz/include -DUSE_APACHE=1
EXTRA_LIBS=../../yaz/lib/libyaz.a
Module zap_module mod_zap.o
<Location /search>
SetHandler z39.50-search
</Location>
You can choose another directory name than search, but we
recommend, that you use this name since all example forms
rely on this name, i.e. all URLs with the prefix "http:/search"
invokes the ZAP module.