Skip to content

Commit

Permalink
Updates to get latest version of openvas with krb5 to compile.
Browse files Browse the repository at this point in the history
Openvas uses krb.h but openvas-smb still needs heimdal and you can't
install them both as they conflict.
  • Loading branch information
immauss committed Dec 23, 2024
1 parent 6e9a06e commit 914cc1c
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 6 deletions.
2 changes: 2 additions & 0 deletions build.d/openvas-scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cd /build
wget --no-verbose https://github.com/greenbone/openvas-scanner/archive/$openvas.tar.gz
tar -zxf $openvas.tar.gz
cd /build/*/
# Install dev dependency
apt install -y libkrb5-dev
if [ $(arch) == "armv7l" ]; then
sed -i "s/%lu/%i/g" src/attack.c
fi
Expand Down
6 changes: 6 additions & 0 deletions build.d/openvas-smb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ sed -i "s/const uint16 COM_MINOR_VERSION = 1/const uint16 COM_MINOR_VERSION = 7/
cd /build/*/
mkdir build
cd build
# install the needed dev dependancy.
# which is not needed elsewhere.
apt install heimdal-dev -y
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc)
make install
cd /build
rm -rf *
# Remove build dependancies so they dont' conflict others.
grep "Commandline: apt install" /var/log/apt/history.log | tail -1 | \
sed 's/Commandline: apt install //' | xargs apt remove -y
2 changes: 1 addition & 1 deletion build.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gvmd=v24.1.2
gvm_libs=v22.15.0
openvas=v23.13.2
openvas=v23.14.0
openvas_smb=v22.5.6
notus_scanner=v22.6.5
gsa=v24.1.0
Expand Down
28 changes: 26 additions & 2 deletions ovasbase/scripts/package-list
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ gir1.2-json-1.0
gnupg
gnutls-bin
gpgsm
libgssapi3-heimdal
libhdb9-heimdal
libcap2-bin
libcurl4
libcjson1
libgpgme11
libgssapi3-heimdal
libhdb9-heimdal
libhiredis0.14
libical3
libical3
Expand Down Expand Up @@ -65,3 +65,27 @@ xml-twig-tools
xsltproc
xz-utils
zip
libabsl20220623
libaom3
libavif15
libdav1d6
libde265-0
libdeflate0
libgav1-1
libgd3
libgssrpc4
libheif1
libjbig0
libjpeg62-turbo
libkadm5clnt-mit12
libkadm5srv-mit12
libkdb5-10
liblerc4
libnuma1
librav1e0
libsvtav1enc1
libtiff6
libwebp7
libx265-199
libyuv0
rpcsvc-proto
1 change: 0 additions & 1 deletion package-list-build
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
build-essential
cmake
gcc-mingw-w64
heimdal-dev
libbsd-dev
libcurl4-openssl-dev
libcjson-dev
Expand Down
2 changes: 1 addition & 1 deletion update.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon Dec 16 02:31:11 AM UTC 2024
Mon Dec 23 02:34:55 AM UTC 2024
2 changes: 1 addition & 1 deletion versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Component | Version | | Component | Version
----------|----------|-|----------|---------
| gvmd | v24.1.2 | | gvm_libs | v22.15.0 |
| openvas | v23.13.2 | | openvas_smb | v22.5.6 |
| openvas | v23.14.0 | | openvas_smb | v22.5.6 |
| notus_scanner | v22.6.5 | | gsa | v24.1.0 |
| gsad | v24.1.0 | | ospd | v21.4.4 |
| ospd_openvas | v22.7.1 | | pg_gvm | v22.6.6 |
Expand Down

0 comments on commit 914cc1c

Please sign in to comment.