blob: 3f8ab762f31f3875747229fff1170b231d854b4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/sh
#
if test x$UID != x -a x$UID != x0; then
TRUST="--with-trusted=0,2,$UID"
else
TRUST="--with-trusted=0,2,1000"
fi
export TRUST
#
PW_DIR=`pwd`; export PW_DIR
RCFILE="$PW_DIR/testrc_1.dyn"; export RCFILE
LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE
#
OPTIONS="\
--enable-db-reload \
--enable-suidcheck \
--enable-login-watch \
--enable-mounts-check \
--enable-logfile-monitor \
--enable-process-check \
--enable-port-check \
--enable-xml-log \
--enable-userfiles \
--disable-shellexpand \
--disable-ipv6 \
"
./configure --quiet $TRUST \
--prefix=$PW_DIR \
--localstatedir=$PW_DIR \
--with-config-file=$RCFILE \
--with-log-file=$LOGFILE \
--with-pid-file=$PW_DIR/.samhain_lock \
--with-data-file=$PW_DIR/.samhain_file $OPTIONS
if [ $? -ne 0 ];
then
echo "Configure failed"
exit 1
fi
make samhain
if [ $? -ne 0 ];
then
echo "Make failed"
exit 1
fi
|