[an error occurred while processing this directive]

6. Install

After successful compilation, you can install samhain by typing:

        sh$ make install

The installation routine will not overwrite your configuration file from a previous installation.

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.

After installation, you will be offered to run make install-boot in order to install the init scripts that are required to start samhain automatically when your system (re-)boots. For many operating systems (Linux, *BSD, 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).

        sh$ make install-boot

6.1. Important make targets

          sh$ 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).

          sh$ 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, *BSD, Solaris, HP-UX, AIX(*), IRIX(*) [(*) untested].

          sh$ make uninstall

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

          sh$ make purge

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

	  sh$ make uninstall-boot

Uninstall the runlevel start/stop scripts.


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

            sh$ samhain-install.sh purge
            sh$ samhain-install.sh uninstall-boot
[an error occurred while processing this directive]