Skip to content

Commit 2e7eef3

Browse files
committed
Add oscap-podman to CMake
Allows users to install `oscap-podman`. The man page is commented out because it doesn't exist.
1 parent 10af6a9 commit 2e7eef3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ endif()
289289
cmake_dependent_option(ENABLE_OSCAP_UTIL_AS_RPM "enable the scap-as-rpm utility, this lets you package SCAP data as RPMs" ON "NOT WIN32" OFF)
290290
cmake_dependent_option(ENABLE_OSCAP_UTIL_SSH "enables the oscap-ssh utility, this lets you scan remote machines over ssh" ON "NOT WIN32" OFF)
291291
cmake_dependent_option(ENABLE_OSCAP_UTIL_VM "enables the oscap-vm utility, this lets you scan VMs and VM storage images" ON "NOT WIN32" OFF)
292+
cmake_dependent_option(ENABLE_OSCAP_UTIL_PODMAN "enables the oscap-podman utility, this lets you scan Podman containers and container images" ON "NOT WIN32" OFF)
292293
cmake_dependent_option(ENABLE_OSCAP_UTIL_CHROOT "enables the oscap-chroot utility, this lets you scan entire chroots using offline scanning" ON "NOT WIN32" OFF)
293294

294295
# ---------- TEST-SUITE SWITCHES
@@ -355,6 +356,7 @@ message(STATUS "oscap-docker: ${ENABLE_OSCAP_UTIL_DOCKER}")
355356
message(STATUS "scap-as-rpm: ${ENABLE_OSCAP_UTIL_AS_RPM}")
356357
message(STATUS "oscap-ssh: ${ENABLE_OSCAP_UTIL_SSH}")
357358
message(STATUS "oscap-vm: ${ENABLE_OSCAP_UTIL_VM}")
359+
message(STATUS "oscap-podman: ${ENABLE_OSCAP_UTIL_PODMAN}")
358360
message(STATUS "oscap-chroot: ${ENABLE_OSCAP_UTIL_CHROOT}")
359361
message(STATUS " ")
360362

utils/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ if(ENABLE_OSCAP_UTIL_VM)
7171
DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
7272
)
7373
endif()
74+
if(ENABLE_OSCAP_UTIL_PODMAN)
75+
install(PROGRAMS "oscap-podman"
76+
DESTINATION ${CMAKE_INSTALL_BINDIR}
77+
)
78+
# install(FILES "oscap-podman.8"
79+
# DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
80+
# )
81+
endif()
7482
if(ENABLE_OSCAP_UTIL_AS_RPM)
7583
install(PROGRAMS "scap-as-rpm"
7684
DESTINATION ${CMAKE_INSTALL_BINDIR}

0 commit comments

Comments
 (0)