Skip to content

Commit

Permalink
Add oscap-podman to CMake
Browse files Browse the repository at this point in the history
Allows users to install `oscap-podman`. The man page is commented
out because it doesn't exist.
  • Loading branch information
jan-cerny committed Jun 13, 2019
1 parent 10af6a9 commit 2e7eef3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ endif()
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)
cmake_dependent_option(ENABLE_OSCAP_UTIL_SSH "enables the oscap-ssh utility, this lets you scan remote machines over ssh" ON "NOT WIN32" OFF)
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)
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)
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)

# ---------- TEST-SUITE SWITCHES
Expand Down Expand Up @@ -355,6 +356,7 @@ message(STATUS "oscap-docker: ${ENABLE_OSCAP_UTIL_DOCKER}")
message(STATUS "scap-as-rpm: ${ENABLE_OSCAP_UTIL_AS_RPM}")
message(STATUS "oscap-ssh: ${ENABLE_OSCAP_UTIL_SSH}")
message(STATUS "oscap-vm: ${ENABLE_OSCAP_UTIL_VM}")
message(STATUS "oscap-podman: ${ENABLE_OSCAP_UTIL_PODMAN}")
message(STATUS "oscap-chroot: ${ENABLE_OSCAP_UTIL_CHROOT}")
message(STATUS " ")

Expand Down
8 changes: 8 additions & 0 deletions utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ if(ENABLE_OSCAP_UTIL_VM)
DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
)
endif()
if(ENABLE_OSCAP_UTIL_PODMAN)
install(PROGRAMS "oscap-podman"
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# install(FILES "oscap-podman.8"
# DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
# )
endif()
if(ENABLE_OSCAP_UTIL_AS_RPM)
install(PROGRAMS "scap-as-rpm"
DESTINATION ${CMAKE_INSTALL_BINDIR}
Expand Down

0 comments on commit 2e7eef3

Please sign in to comment.