
				




                           Compiling and installing
                                  Netsentry





I - Compiling

- If you are an expert, you can run directly the configure program. Here
are the local configure options:

 Options                  Description                 Use

 --with-debug             compile with DEBUG          Highly recommended  
 --with-debug-malloc      compile with DEBUG_MALLOC   Highly recommended
 --with-extra-include=DIR add an extra include dir    Optional
 --with-extra-libpath=DIR add an extra libpath        Optional
 --with-pcap              use libpcap                 Mandatory
 --with-pcap-library      libpcap library location    Mandatory (*)
 --with-pcap-include      libpcap include location    Mandatory (*)
 --with-data-integrity    compile with DATA_INTEGRITY Optional (**)
 --with-mg-kludge         compile with MG_KLUDGE      Optional (***)

(*) Unless it is already in the path.
(**) Not useful for the moment.
(***) This is a hack for my system.

There is a patched libpcap-0.2.1 in the distribution: I've removed
the annoying "Using kernel BPF filter" message in pcap-pf.c. There is
also a hack to use many yacc parsers (because I'v needed it for
another program). If you want to use it, you will have to configure
and compile it yourself.

- You can also run the script mk.sh by typing:

	$ ./mk.sh
	$ make

II - Porting

- If you encounter problems in compiling, you can have a look at the
files: liba/a_sysdep.c and liba/include/a_sysdep.h. All the work is
done to make the system depend routines in these files. If you succeed
to compile liba (lib abstract) then you won't have trouble with other
libraries.

III - Installing

- There is no installation features for the moment, but it is quite
simple to install by hand. 

- Here is an example of installation tree:

   /usr/local/etc/netsentry/bin   binaries
   /usr/local/etc/netsentry/etc   configuration files and databases
   /usr/local/etc/netsentry/logs  log files

