Skip to content

Commit 445cd7d

Browse files
author
predso01
committed
Resolved merge conflict in build-and-install.md
2 parents e392d3a + 1335b33 commit 445cd7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

content/learning-paths/servers-and-cloud-computing/snort3-multithreading/build-and-install.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ downlaodPackages()
4949
echo "File $fname already exists. Skipping download."
5050
else
5151
# Download the file using wget
52+
5253
echo "File $fname not found. Downloading..."
54+
5355
wget -O "$fpath" "$url"
5456
if [[ $? -eq 0 ]]; then
5557
echo "$fname download complete"
@@ -80,28 +82,26 @@ installPackages()
8082
echo "Error: OS information detection failed"
8183
exit 1
8284
fi
85+
8386
apt-get update
8487
apt-get install -y $LIST_OF_APPS
8588

8689
# required to get optimised result from Snort3
8790
downlaodPackages
88-
8991
mkdir -p ${ROOT_DIR}/snort3
9092
tar -xzf 3.3.5.0.tar.gz --directory ${ROOT_DIR}/snort3 --strip-components=1
91-
9293
echo "@@@@@@@@@@@@@@@@@@ Installing Snort3 Dependencies ... @@@@@@@@@@@@@@@@@@@@"
9394
mkdir -p ${SNORT_DIR}
9495
mkdir -p $SNORT_DIR/pcre
9596
tar -xvf pcre-8.45.tar.gz --directory $SNORT_DIR/pcre --strip-components=1
96-
9797
#vector scan
9898
mkdir -p $SNORT_DIR/vectorscan
9999
tar -xzvf 5.4.11.tar.gz --directory $SNORT_DIR/vectorscan --strip-components=1
100100

101101
#libdaq
102102
mkdir -p $SNORT_DIR/libdaq
103103
tar -xvzf v3.0.16.tar.gz --directory $SNORT_DIR/libdaq --strip-components=1
104-
104+
105105
#required to get optimized result from vectorscan
106106
mkdir -p $SNORT_DIR/boost
107107
tar -xvf boost_1_86_0.tar.gz -C $SNORT_DIR/boost --strip-components=1
@@ -117,7 +117,6 @@ installPackages()
117117
echo "@@@@@@@@@@@@@@@@@@ Packages installed @@@@@@@@@@@@@@@@@@@@"
118118
}
119119

120-
#compile and install the packages
121120
buildInstall()
122121
{
123122
echo "@@@@@@@@@@@@@@@@@@ Build & Installation ... Start @@@@@@@@@@@@@@@@@@@@"
@@ -169,14 +168,15 @@ SNORT_DIR=${ROOT_DIR}/snort3/dependencies
169168
set -e
170169

171170
LIST_OF_APPS="sudo net-tools build-essential manpages-dev libnuma-dev python3
172-
python3-venv cmake meson pkg-config python3-pyelftools lshw
173-
util-linux iperf3 nginx libboost-all-dev ragel libsqlite3-dev
174-
libpcap-dev libdumbnet-dev libluajit-5.1-dev zlib1g-dev
175-
libhwloc-dev liblzma-dev libssl-dev libgoogle-perftools-dev
176-
libpcre++-dev flex openssl libunwind-dev autotools-dev
171+
python3-venv cmake meson pkg-config python3-pyelftools lshw
172+
util-linux iperf3 nginx libboost-all-dev ragel libsqlite3-dev
173+
libpcap-dev libdumbnet-dev libluajit-5.1-dev zlib1g-dev
174+
libhwloc-dev liblzma-dev libssl-dev libgoogle-perftools-dev
175+
libpcre++-dev flex openssl libunwind-dev autotools-dev
177176
libhugetlbfs-bin autoconf libmnl-dev bats wget unzip iproute2
178177
git pkg-config cpputest libtool bison libcmocka-dev
179178
libnetfilter-queue-dev ethtool"
179+
180180
# nprc should be a positive integer)
181181
if ! [[ "$NUM_JOBS" =~ ^[0-9]+$ ]] || [[ "$NUM_JOBS" -le 0 ]]; then
182182
echo "Error: nprc should be a positive integer."

0 commit comments

Comments
 (0)