From e236c5b119c6d9ce972e5e0677641416efbfc03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdem=20=C3=96zgen?= Date: Wed, 11 May 2022 15:50:54 +0300 Subject: [PATCH 1/4] added bash command for moving patch file into zeek folder --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bf298d9..b046a92 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ git checkout aff3f4 git submodule update --init --recursive ``` 2. Apply the GOOSE parser as a patch. The whitespace warnings may be ignored. +
`git clone https://github.com/smartgridadsc/Goose-protocol-parser-for-Zeek-IDS` +
`mv Goose-protocol-parser-for-Zeek-IDS/patch/goose_parser.patch zeek/ && cd zeek`
`git apply --reject --whitespace=fix goose_parser.patch`
Note: Please refer to the User Guide in the [doc/](doc) folder for the full list of modified files. From 9fff2920dfd238d0d0c027b5357c99102b9fb901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdem=20=C3=96zgen?= Date: Wed, 11 May 2022 15:53:54 +0300 Subject: [PATCH 2/4] change markdown for better reading --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b046a92..be4ceda 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,10 @@ git checkout aff3f4 git submodule update --init --recursive ``` 2. Apply the GOOSE parser as a patch. The whitespace warnings may be ignored. -
`git clone https://github.com/smartgridadsc/Goose-protocol-parser-for-Zeek-IDS` -
`mv Goose-protocol-parser-for-Zeek-IDS/patch/goose_parser.patch zeek/ && cd zeek` -
`git apply --reject --whitespace=fix goose_parser.patch` +```git clone https://github.com/smartgridadsc/Goose-protocol-parser-for-Zeek-IDS +mv Goose-protocol-parser-for-Zeek-IDS/patch/goose_parser.patch zeek/ && cd zeek +git apply --reject --whitespace=fix goose_parser.patch +```
Note: Please refer to the User Guide in the [doc/](doc) folder for the full list of modified files. 3. Build and install from source. Some commands may require root privileges. From ced667e0f4d6112a81ed2d113c40ee394be3db84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdem=20=C3=96zgen?= Date: Wed, 11 May 2022 15:54:32 +0300 Subject: [PATCH 3/4] fix cd not show in code markdown block --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index be4ceda..c47b96e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ https://docs.zeek.org/en/current/install/install.html#required-dependencies ### Patch Installation 1. Switch to a snapshot of the Zeek repository that is compatible with the GOOSE parser. -```cd / +``` +cd / git checkout aff3f4 git submodule update --init --recursive ``` From 93ffdc7c2624c65cf4dec084240c70a59f4f7dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdem=20=C3=96zgen?= Date: Wed, 11 May 2022 15:57:00 +0300 Subject: [PATCH 4/4] add cd to parent directory for 2 step --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c47b96e..f343998 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,11 @@ https://docs.zeek.org/en/current/install/install.html#required-dependencies cd / git checkout aff3f4 git submodule update --init --recursive +cd .. ``` 2. Apply the GOOSE parser as a patch. The whitespace warnings may be ignored. -```git clone https://github.com/smartgridadsc/Goose-protocol-parser-for-Zeek-IDS +``` +git clone https://github.com/smartgridadsc/Goose-protocol-parser-for-Zeek-IDS mv Goose-protocol-parser-for-Zeek-IDS/patch/goose_parser.patch zeek/ && cd zeek git apply --reject --whitespace=fix goose_parser.patch ```