Skip to content

Commit 119ce70

Browse files
committed
Change: Disable build of openvasd for oldstable
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.
1 parent eeea93c commit 119ce70

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.docker/prod-oldstable.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN apt-get update && \
2929
libcgreen1-dev \
3030
lcov \
3131
&& rm -rf /var/lib/apt/lists/*
32-
RUN cmake -DCMAKE_BUILD_TYPE=Release -B/build /source
32+
RUN cmake -DCMAKE_BUILD_TYPE=Release -DOPENVASD=0 -B/build /source
3333
RUN DESTDIR=/install cmake --build /build -- install
3434

3535
FROM debian:oldstable-slim

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ endif (NOT CMAKE_BUILD_TYPE)
2424
OPTION(BUILD_STATIC "Build static versions of the libraries" OFF)
2525
OPTION(ENABLE_COVERAGE "Enable support for coverage analysis" OFF)
2626
OPTION(BUILD_TESTS "Build tests for the libraries" OFF)
27+
OPTION(OPENVASD "Build openvasd library" ON)
2728

2829
if (NOT BUILD_STATIC)
2930
set (BUILD_SHARED ON)
@@ -258,9 +259,12 @@ if (NOT SKIP_SRC)
258259
add_subdirectory (base)
259260
add_subdirectory (boreas)
260261
add_subdirectory (util)
261-
add_subdirectory (openvasd)
262262
add_subdirectory (osp)
263263
add_subdirectory (gmp)
264+
265+
if (OPENVASD)
266+
add_subdirectory (openvasd)
267+
endif (OPENVASD)
264268
endif (NOT SKIP_SRC)
265269

266270
## Documentation

0 commit comments

Comments
 (0)