Skip to content

Commit

Permalink
Change: Disable build of openvasd for oldstable
Browse files Browse the repository at this point in the history
The CMake option OPENVASD is added and used to disable building the
openvasd library in the oldstable Docker images.

This is needed because openvasd would need a newer libcurl version.
  • Loading branch information
timopollmeier committed Dec 5, 2024
1 parent eeea93c commit 119ce70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .docker/prod-oldstable.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && \
libcgreen1-dev \
lcov \
&& rm -rf /var/lib/apt/lists/*
RUN cmake -DCMAKE_BUILD_TYPE=Release -B/build /source
RUN cmake -DCMAKE_BUILD_TYPE=Release -DOPENVASD=0 -B/build /source
RUN DESTDIR=/install cmake --build /build -- install

FROM debian:oldstable-slim
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ endif (NOT CMAKE_BUILD_TYPE)
OPTION(BUILD_STATIC "Build static versions of the libraries" OFF)
OPTION(ENABLE_COVERAGE "Enable support for coverage analysis" OFF)
OPTION(BUILD_TESTS "Build tests for the libraries" OFF)
OPTION(OPENVASD "Build openvasd library" ON)

if (NOT BUILD_STATIC)
set (BUILD_SHARED ON)
Expand Down Expand Up @@ -258,9 +259,12 @@ if (NOT SKIP_SRC)
add_subdirectory (base)
add_subdirectory (boreas)
add_subdirectory (util)
add_subdirectory (openvasd)
add_subdirectory (osp)
add_subdirectory (gmp)

if (OPENVASD)
add_subdirectory (openvasd)
endif (OPENVASD)
endif (NOT SKIP_SRC)

## Documentation
Expand Down

0 comments on commit 119ce70

Please sign in to comment.