Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Source Build #547

Merged
merged 13 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/22.4/source-build/gsa/description.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The web application is written in JavaScript and relies on the
[react framework](https://reactjs.org/). It uses [nodejs](https://nodejs.org/)
for building the application and [yarn](https://classic.yarnpkg.com/lang/en/)
for maintaining the JavaScript dependencies. Because the installation of yarn
and the specific nodejs version requires a setup of external package
repositories and the build process takes a lot of time, pre-built distributable
files are available. These pre-built distributable files are used in this docs.
for building the application and maintaining the JavaScript dependencies.
Because the installation of a specific nodejs version requires a setup of
external package repositories and the build process takes a lot of time,
pre-built distributable files are available. These pre-built distributable files
are used in this docs.
11 changes: 7 additions & 4 deletions src/22.4/source-build/gsad/build.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
```{code-block}
:caption: Building gsad

mkdir -p $BUILD_DIR/gsad && cd $BUILD_DIR/gsad
mkdir -p $BUILD_DIR/gsad

cmake $SOURCE_DIR/gsad-$GSAD_VERSION \
cmake \
-S $SOURCE_DIR/gsad-$GSAD_VERSION \
-B $BUILD_DIR/gsad \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var \
-DGVMD_RUN_DIR=/run/gvmd \
-DGSAD_RUN_DIR=/run/gsad \
-DGVM_LOG_DIR=/var/log/gvm \
-DLOGROTATE_DIR=/etc/logrotate.d

make -j$(nproc)
cmake --build $BUILD_DIR/gsad -j$(nproc)
```

```{code-block}
:caption: Installing gsad

mkdir -p $INSTALL_DIR/gsad
mkdir -p $INSTALL_DIR/gsad && cd $BUILD_DIR/gsad

make DESTDIR=$INSTALL_DIR/gsad install

Expand Down
7 changes: 4 additions & 3 deletions src/22.4/source-build/gsad/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
:caption: Required dependencies for gsad

sudo apt install -y \
libmicrohttpd-dev \
libxml2-dev \
libbrotli-dev \
libglib2.0-dev \
libgnutls28-dev
libgnutls28-dev \
libmicrohttpd-dev \
libxml2-dev

.. tab:: Fedora/CentOS
.. code-block::
Expand Down
12 changes: 7 additions & 5 deletions src/22.4/source-build/gvm-libs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
.. code-block::
:caption: Building gvm-libs

mkdir -p $BUILD_DIR/gvm-libs && cd $BUILD_DIR/gvm-libs
mkdir -p $BUILD_DIR/gvm-libs

cmake $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION \
cmake \
-S $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION \
-B $BUILD_DIR/gvm-libs \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DSYSCONFDIR=/etc \
-DLOCALSTATEDIR=/var

make -j$(nproc)
cmake --build $BUILD_DIR/gvm-libs -j$(nproc)
.. tab:: Fedora/CentOS
.. code-block::
:caption: Building gvm-libs

mkdir -p $BUILD_DIR/gvm-libs && cd $BUILD_DIR/gvm-libs

cmake $SOURCE_DIR/gvm-libs-$GVM_LIBS_VERSION \
Expand All @@ -33,7 +35,7 @@
```{code-block}
:caption: Installing gvm-libs

mkdir -p $INSTALL_DIR/gvm-libs
mkdir -p $INSTALL_DIR/gvm-libs && cd $BUILD_DIR/gvm-libs

make DESTDIR=$INSTALL_DIR/gvm-libs install

Expand Down
46 changes: 26 additions & 20 deletions src/22.4/source-build/gvm-libs/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
:caption: Required dependencies for gvm-libs

sudo apt install -y \
libglib2.0-dev \
libgpgme-dev \
libgnutls28-dev \
uuid-dev \
libssh-gcrypt-dev \
libhiredis-dev \
libxml2-dev \
libpcap-dev \
libnet1-dev \
libpaho-mqtt-dev
libcurl4-gnutls-dev \
libgcrypt-dev \
libglib2.0-dev \
libgnutls28-dev \
libgpgme-dev \
libhiredis-dev \
libnet1-dev \
libpaho-mqtt-dev \
libpcap-dev \
libssh-dev \
libxml2-dev \
uuid-dev

.. code-block::
:caption: Optional dependencies for gvm-libs
Expand All @@ -28,16 +30,18 @@
:caption: Required dependencies for gvm-libs

sudo dnf install -y \
cjson-devel \
glib2-devel \
gpgme-devel \
gnutls-devel \
gpgme-devel \
hiredis-devel \
libcurl-devel \
libgcrypt-devel \
libuuid-devel \
libnet-devel \
libpcap-devel \
libssh-devel \
hiredis-devel \
libuuid-devel \
libxml2-devel \
libpcap-devel \
libnet-devel \
paho-c-devel

.. code-block::
Expand All @@ -52,16 +56,18 @@
:caption: Required dependencies for gvm-libs

sudo dnf install -y \
cjson-devel \
glib2-devel \
gpgme-devel \
gnutls-devel \
gpgme-devel \
hiredis-devel \
libcurl-devel \
libgcrypt-devel \
libuuid-devel \
libnet-devel \
libpcap-devel \
libssh-devel \
hiredis-devel \
libuuid-devel \
libxml2-devel \
libpcap-devel \
libnet-devel \
uuid-devel

.. code-block::
Expand Down
18 changes: 8 additions & 10 deletions src/22.4/source-build/gvm-tools/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,22 @@

sudo apt install -y \
python3 \
python3-lxml \
python3-packaging \
python3-paramiko \
python3-pip \
python3-venv \
python3-setuptools \
python3-packaging \
python3-lxml \
python3-defusedxml \
python3-paramiko
python3-venv

.. tab:: Fedora/CentOS
.. code-block::
:caption: Required dependencies for gvm-tools

sudo dnf install -y \
python3 \
python3-pip \
python3-setuptools \
python3-packaging \
python3-lxml \
python3-defusedxml \
python3-paramiko
python3-packaging \
python3-paramiko \
python3-pip \
python3-setuptools
```
13 changes: 8 additions & 5 deletions src/22.4/source-build/gvmd/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
.. code-block::
:caption: Building gvmd

mkdir -p $BUILD_DIR/gvmd && cd $BUILD_DIR/gvmd
mkdir -p $BUILD_DIR/gvmd

cmake $SOURCE_DIR/gvmd-$GVMD_VERSION \
cmake \
-S $SOURCE_DIR/gvmd-$GVMD_VERSION \
-B $BUILD_DIR/gvmd \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DLOCALSTATEDIR=/var \
-DSYSCONFDIR=/etc \
-DGVM_DATA_DIR=/var \
-DGVM_LOG_DIR=/var/log/gvm \
-DGVMD_RUN_DIR=/run/gvmd \
-DOPENVAS_DEFAULT_SOCKET=/run/ospd/ospd-openvas.sock \
-DGVM_FEED_LOCK_PATH=/var/lib/gvm/feed-update.lock \
-DSYSTEMD_SERVICE_DIR=/lib/systemd/system \
-DLOGROTATE_DIR=/etc/logrotate.d

make -j$(nproc)
cmake --build $BUILD_DIR/gvmd -j$(nproc)

.. tab:: Fedora/CentOS
.. code-block::
Expand All @@ -32,6 +34,7 @@
-DLOCALSTATEDIR=/var \
-DSYSCONFDIR=/etc \
-DGVM_DATA_DIR=/var \
-DGVM_LOG_DIR/var/log/gvm \
-DGVMD_RUN_DIR=/run/gvmd \
-DOPENVAS_DEFAULT_SOCKET=/run/ospd/ospd-openvas.sock \
-DGVM_FEED_LOCK_PATH=/var/lib/gvm/feed-update.lock \
Expand All @@ -50,7 +53,7 @@
.. code-block::
:caption: Installing gvmd

mkdir -p $INSTALL_DIR/gvmd
mkdir -p $INSTALL_DIR/gvmd && cd $BUILD_DIR/gvmd

make DESTDIR=$INSTALL_DIR/gvmd install

Expand Down
77 changes: 19 additions & 58 deletions src/22.4/source-build/gvmd/dependencies.md
Original file line number Diff line number Diff line change
@@ -1,84 +1,45 @@
```{eval-rst}
.. tabs::
.. tab:: Debian
.. tab:: Debian/Ubuntu
.. code-block::
:caption: Required dependencies for gvmd

sudo apt install -y \
lcov \
libbsd-dev \
libcjson-dev \
libglib2.0-dev \
libgnutls28-dev \
libpq-dev \
postgresql-server-dev-15 \
libgpgme-dev \
libical-dev \
xsltproc \
libpq-dev \
postgresql-server-dev-all \
rsync \
libbsd-dev \
libgpgme-dev

xsltproc

.. code-block::
:caption: Optional dependencies for gvmd

sudo apt install -y --no-install-recommends \
texlive-latex-extra \
texlive-fonts-recommended \
xmlstarlet \
zip \
rpm \
fakeroot \
dpkg \
nsis \
fakeroot \
gnupg \
gnutls-bin \
gpgsm \
wget \
sshpass \
nsis \
openssh-client \
socat \
snmp \
python3 \
smbclient \
python3-lxml \
gnutls-bin

.. tab:: Ubuntu
.. code-block::
:caption: Required dependencies for gvmd

sudo apt install -y \
libglib2.0-dev \
libgnutls28-dev \
libpq-dev \
postgresql-server-dev-14 \
libical-dev \
xsltproc \
rsync \
libbsd-dev \
libgpgme-dev


.. code-block::
:caption: Optional dependencies for gvmd

sudo apt install -y --no-install-recommends \
texlive-latex-extra \
texlive-fonts-recommended \
xmlstarlet \
zip \
rpm \
fakeroot \
dpkg \
nsis \
gnupg \
gpgsm \
wget \
sshpass \
openssh-client \
socat \
snmp \
python3 \
smbclient \
python3-lxml \
gnutls-bin
snmp \
socat \
sshpass \
texlive-fonts-recommended \
texlive-latex-extra \
wget \
xmlstarlet \
zip

.. tab:: Fedora
.. code-block::
Expand Down
10 changes: 5 additions & 5 deletions src/22.4/source-build/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The components should be build and installed in the listed order.
```{code-block}
:caption: Setting the gvm-libs version to use

export GVM_LIBS_VERSION=22.10.0
export GVM_LIBS_VERSION=22.17.0
```

```{include} /22.4/source-build/gvm-libs/dependencies.md
Expand All @@ -48,7 +48,7 @@ Afterwards, gvm-libs can be build and installed.
```{code-block}
:caption: Setting the gvmd version to use

export GVMD_VERSION=23.8.1
export GVMD_VERSION=25.0.0
```

```{include} /22.4/source-build/gvmd/dependencies.md
Expand All @@ -71,7 +71,7 @@ Details about the optional dependencies can be found at
```{code-block}
:caption: Setting the pg-gvm version to use

export PG_GVM_VERSION=22.6.5
export PG_GVM_VERSION=22.6.7
```

```{include} /22.4/source-build/pg-gvm/dependencies.md
Expand Down Expand Up @@ -100,7 +100,7 @@ The Greenbone Security Assistant (GSA) sources consist of two parts:
```{code-block}
:caption: Setting the GSA version to use

export GSA_VERSION=23.2.1
export GSA_VERSION=24.2.0
```

```{include} /22.4/source-build/gsa/download.md
Expand All @@ -117,7 +117,7 @@ export GSA_VERSION=23.2.1
```{code-block}
:caption: Setting the GSAd version to use

export GSAD_VERSION=22.11.0
export GSAD_VERSION=24.2.0
```

```{include} /22.4/source-build/gsad/dependencies.md
Expand Down
Loading