Skip to content

Commit 5b8b543

Browse files
authored
Merge pull request #856 from greenbone/disable-openvasd-in-oldstable
Change: Disable build of openvasd for oldstable
2 parents eeea93c + 119ce70 commit 5b8b543

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.docker/prod-oldstable.Dockerfile

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 1 deletion
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)