-
Notifications
You must be signed in to change notification settings - Fork 13
/
install.sh
executable file
·59 lines (43 loc) · 1.16 KB
/
install.sh
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
49
50
51
52
53
54
55
56
57
58
59
ls | grep setenv.sh
ANS=`echo $?`
if [ $ANS == 1 ]
then
echo please run this script in situ
exit
fi
./setenv.sh
# Base directory
BASE_DIR=$(pwd)
# update
sudo apt-get update
#compile onvm
cd $ONVM_HOME/scripts
./install.sh
cd $ONVM_HOME/onvm && make
# Compile DAQ
sudo apt-get install -y libpcap-dev libpcre3-dev libdumbnet-dev zlib1g-dev liblzma-dev libssl-dev autoconf
cd $BASE_DIR/daq*
aclocal
autoconf
autoheader
automake -a
autoreconf -fvi
./configure --enable-static --disable-shared --with-dpdk-includes=$RTE_SDK/$RTE_TARGET/include --with-dpdk-libraries=$RTE_SDK/$RTE_TARGET/lib --with-netvm-includes=$ONVM_HOME/onvm --with-netvm-libraries=$ONVM_HOME/onvm
make clean
make -j7
sudo make install
# Compile snort
cd $BASE_DIR/snort-2.9*
aclocal
autoconf
autoheader
automake -a
autoreconf -fvi
./configure --enable-static --disable-shared --with-dpdk-includes=$RTE_SDK/$RTE_TARGET/include --with-dpdk-libraries=$RTE_SDK/$RTE_TARGET/lib --with-netvm-includes=$ONVM_HOME/onvm --with-netvm-libraries=$ONVM_HOME/onvm
make clean
make -j7
sudo make install
sudo ldconfig
sudo cp -r snort*/simple-etc /etc/snort
sudo mkdir /usr/local/lib/snort_dynamicrules
cd $BASE_DIR