Installation Procedure

The installation procedure uses GNU autoconfigure (all configuration options are listed in the appendix):

bash$ ./configure
bash$ make
bash$ make install

TipTIP
 

samhain is a Filesystem Hierarchy Standard (FHS) compliant application. Thus the default directory layout is not the standard GNU layout (see the Section called Files and directory layout>).

Executables will be stripped upon installation. On Linux i386 and FreeBSD i386, the sstrip utility (copyright 1999 by Brian Raiter, under the GNU GPL) will be used to strip the executable even more, to prevent debugging with the GNU gdb debugger.

For many operating systems (Linux, FreeBSD, Solaris, HP-UX, IRIX), configure will generate init scripts, and make install-boot will figure out which of them to install, and where (if the correct distribution cannot be determined, none of them will be installed).

Important make targets

bash$ make

Compile samhain or yule. The standalone/client executable (samhain) and the log server (yule) cannnot be compiled simultaneously. You need to run ./configure && make separately for both.

bash$ make install

Create the required directories (if not existing already), and install the compiled executable and the configuration file.

bash$ make DESTDIR=/somedir install

Install as if /somedir is the root directory. Useful for creating packages or installing for chroot (server).

bash$ make install-boot

Install runlevel start/stop scripts or create inittab entry (AIX) in order to start the daemon upon system boot. Supported on Linux, FreeBSD, Solaris(*), HP-UX(*), AIX(*), IRIX(*) [(*) untested].

bash$ make uninstall

Uninstall the executable and remove directories if empty. Does not uninstall the configuration file.

bash$ make purge

As make uninstall, but also remove the the configuration file.

bash$ make uninstall-boot

Uninstall the runlevel start/stop scripts.

TipTIP
 

You can save the script samhain-install.sh and use it for uninstalling if you ever want to remove samhain:
bash$ samhain-install.sh purge
bash$ samhain-install.sh uninstall-boot