Linux Logcheck | All about OS

Linux Logcheck

Категория: Securing and Optimizing

Edit the Makefile file (vi Makefile) and change the following lines:
CC = cc To read: CC = egcs
CFLAGS = -O
To read:
CFLAGS = -09 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -
fomit-frame-pointer-fno-exceptions
INSTALLDIR = /usr/local/etc
To read:
INSTALLDIR = /etc/logcheck
INSTALLDIR_BIN = /usr/local/bin
To read:
INSTALLDIR_BIN = /usr/bin
INSTALLDIR_SH = /usr/local/etc
To read:
INSTALLDIR_SH = /usr/bin
TMPDIR = /usr/local/etc/tmp
To read:
TMPDIR = /etc/logcheck/tmp
The above changes will configure the software to use “egcs” compiler, optimization flags specific to our system, and locate all files related to Logcheck software to the destination target directories we have chosen to be compliant with the Red Hat file system structure.
Step 2
Edit the Makefile file (vi +67 Makefile) and change the following line:
@if [! -d $(TMPDIR) ]; then /bin/mkdir $(TMPDIR); fi
To read:
@if [! -d $(TMPDIR) ]; then /bin/mkdir -p $(TMPDIR); fi
The above change (-p) will allow the installation program to create parent directories as needed.
Step 3
Install Logcheck on your system.
[root@deep logcheck-1.1.1]# make linux
The above command will configure the software for the Linux operating system, compile all source files into executable binaries, and then install the binaries and any supporting files into the appropriate locations.
Cleanup after work
[root@deep /]# cd /var/tmp
[root@deep tmp]# rm -rf logcheck-version/ logcheck-version_tar.gz
The “rm” command as used above will remove all the source files we have used to compile and install Logcheck. It will also remove the Logcheck compressed archive from the 7var/tmp” directory.

Страниц: 1 2 3

« Securities Software (Monitoring Tools).Linux sXid
Linux PortSentry »