[openscap] Update to 1.4.0 (#40467)

This commit is contained in:
jim wang 2024-08-17 08:41:01 +00:00 committed by GitHub
parent 911961efcf
commit 8fc52f40cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 71 additions and 66 deletions

View File

@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72d9aec..8938931 100644 index e4076b7..dff0a45 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -164,12 +164,19 @@ if (WIN32 AND NOT MINGW) @@ -163,13 +163,19 @@ if (WIN32 AND NOT MINGW)
else() else()
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
endif() endif()
@ -22,13 +22,13 @@ index 72d9aec..8938931 100644
+else() +else()
+ find_package(Threads REQUIRED) + find_package(Threads REQUIRED)
+endif() +endif()
+
+# OpenSSL +# OpenSSL
+link_libraries(OpenSSL::SSL OpenSSL::Crypto) +link_libraries(OpenSSL::SSL OpenSSL::Crypto)
# WITH_CRYPTO # WITH_CRYPTO
set(WITH_CRYPTO "gcrypt" CACHE STRING "gcrypt|nss3") set(WITH_CRYPTO "gcrypt" CACHE STRING "gcrypt|nss")
@@ -475,19 +482,9 @@ message(STATUS "asciidoc: ${ASCIIDOC_EXECUTABLE}") if(${WITH_CRYPTO} STREQUAL "nss")
@@ -482,19 +488,9 @@ message(STATUS "asciidoc: ${ASCIIDOC_EXECUTABLE}")
# ---------- PATHS # ---------- PATHS
@ -52,10 +52,10 @@ index 72d9aec..8938931 100644
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e9339c6..9347087 100644 index 5d59bf3..d6919d0 100644
--- a/src/CMakeLists.txt --- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt +++ b/src/CMakeLists.txt
@@ -134,4 +134,8 @@ else() @@ -125,4 +125,8 @@ else()
set(OPENSCAP_INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}) set(OPENSCAP_INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()
@ -66,7 +66,7 @@ index e9339c6..9347087 100644
+ ARCHIVE DESTINATION lib + ARCHIVE DESTINATION lib
+) +)
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 93ce1f2..f500e1d 100644 index 9347c29..0e16a8d 100644
--- a/utils/CMakeLists.txt --- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt
@@ -29,22 +29,15 @@ if(ENABLE_OSCAP_UTIL) @@ -29,22 +29,15 @@ if(ENABLE_OSCAP_UTIL)
@ -82,7 +82,7 @@ index 93ce1f2..f500e1d 100644
- ") - ")
else() else()
- set(OSCAP_UTIL_DESTINATION ${CMAKE_INSTALL_BINDIR}) - set(OSCAP_UTIL_DESTINATION ${CMAKE_INSTALL_BINDIR})
+ set(OSCAP_UTIL_DESTINATION tools) + set(OSCAP_UTIL_DESTINATION bin)
# Install the 'oscap' utility # Install the 'oscap' utility
install(TARGETS "oscap" install(TARGETS "oscap"
DESTINATION ${OSCAP_UTIL_DESTINATION} DESTINATION ${OSCAP_UTIL_DESTINATION}

View File

@ -1,25 +1,26 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8938931..d111896 100644 index dff0a45..494512e 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -148,9 +148,7 @@ if (APPLE) @@ -147,9 +147,7 @@ if (APPLE)
endif() endif()
find_package(OpenSSL REQUIRED) find_package(OpenSSL REQUIRED)
add_definitions(${XMLSEC_DEFINITIONS}) add_definitions(${XMLSEC_DEFINITIONS})
-if (WIN32) -if (WIN32)
add_compile_definitions("XMLSEC_CRYPTO_OPENSSL") - add_compile_definitions("XMLSEC_CRYPTO_OPENSSL")
-endif() -endif()
+add_compile_definitions("XMLSEC_CRYPTO_OPENSSL")
find_package(BZip2) find_package(BZip2)
# PThread # PThread
@@ -610,11 +608,6 @@ if(NOT WIN32) @@ -614,11 +612,6 @@ if(NOT WIN32)
if(WITH_SYSTEMD) if(WITH_SYSTEMD)
if(ENABLE_OSCAP_REMEDIATE_SERVICE) if(ENABLE_OSCAP_REMEDIATE_SERVICE)
# systemd service for offline (boot-time) remediation # systemd service for offline (boot-time) remediation
- configure_file("oscap-remediate.service.in" "oscap-remediate.service" @ONLY) - configure_file("oscap-remediate.service.in" "oscap-remediate.service" @ONLY)
- install(FILES - install(FILES
- ${CMAKE_CURRENT_BINARY_DIR}/oscap-remediate.service - ${CMAKE_CURRENT_BINARY_DIR}/oscap-remediate.service
- DESTINATION ${SYSTEMD_UNITDIR} - DESTINATION ${CMAKE_INSTALL_PREFIX}/${SYSTEMD_UNITDIR}
- ) - )
endif() endif()
endif() endif()

View File

@ -1,5 +1,5 @@
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index f500e1d..ebddcbf 100644 index 0e16a8d..e2af57e 100644
--- a/utils/CMakeLists.txt --- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
@ -9,18 +9,11 @@ index f500e1d..ebddcbf 100644
) )
if(ENABLE_OSCAP_UTIL) if(ENABLE_OSCAP_UTIL)
@@ -24,13 +24,13 @@ if(ENABLE_OSCAP_UTIL) @@ -24,7 +24,7 @@ if(ENABLE_OSCAP_UTIL)
target_link_libraries(oscap ${GETOPT_LIBRARY}) target_link_libraries(oscap ${GETOPT_LIBRARY})
endif() endif()
- set(OSCAP_UTIL_DESTINATION ".") - set(OSCAP_UTIL_DESTINATION ".")
+ set(OSCAP_UTIL_DESTINATION bin)
# Install the 'oscap' utility
install(TARGETS "oscap"
DESTINATION ${OSCAP_UTIL_DESTINATION}
)
else()
- set(OSCAP_UTIL_DESTINATION tools)
+ set(OSCAP_UTIL_DESTINATION bin) + set(OSCAP_UTIL_DESTINATION bin)
# Install the 'oscap' utility # Install the 'oscap' utility
install(TARGETS "oscap" install(TARGETS "oscap"

View File

@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO OpenSCAP/openscap REPO OpenSCAP/openscap
REF ${VERSION} REF ${VERSION}
SHA512 88d095f350cb1b27f30222c809835ad9f182589a4410ea66f6389d9140804a45767b70176bcd52a0ad6b248ccf63153f09e44f93e70b3002d45cc445642a458f SHA512 10f28593a6776d28020c26fc3ad3f3aa095fdc48fa6261c0b9677c559d3c822a23eb61c02e09a3c11654dc20d8374b5fcc3154bb9d2d34da5985fc737d252a9b
HEAD_REF dev HEAD_REF dev
PATCHES PATCHES
fix-build.patch fix-build.patch
@ -21,6 +21,13 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
python ENABLE_PYTHON3 python ENABLE_PYTHON3
) )
if(VCPKG_TARGET_IS_LINUX AND ENABLE_OSCAP_UTIL)
message("openscap with util feature requires the following packages via the system package manager:
libgcrypt20-dev
On Ubuntu derivatives:
sudo apt install libgcrypt20-dev")
endif()
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS} OPTIONS ${FEATURE_OPTIONS}

View File

@ -1,7 +1,6 @@
{ {
"name": "openscap", "name": "openscap",
"version": "1.3.7", "version": "1.4.0",
"port-version": 3,
"description": "The oscap program is a command line tool that allows users to load, scan, validate, edit, and export SCAP documents.", "description": "The oscap program is a command line tool that allows users to load, scan, validate, edit, and export SCAP documents.",
"homepage": "https://github.com/OpenSCAP/openscap", "homepage": "https://github.com/OpenSCAP/openscap",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",

View File

@ -6605,8 +6605,8 @@
"port-version": 15 "port-version": 15
}, },
"openscap": { "openscap": {
"baseline": "1.3.7", "baseline": "1.4.0",
"port-version": 3 "port-version": 0
}, },
"openslide": { "openslide": {
"baseline": "3.4.1", "baseline": "3.4.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "854ccfd3c08afae1dbf963c9c18b5cea7c5f4ae5",
"version": "1.4.0",
"port-version": 0
},
{ {
"git-tree": "82c5fa2487fc5377950c5ad49bf9a3902cea36fd", "git-tree": "82c5fa2487fc5377950c5ad49bf9a3902cea36fd",
"version": "1.3.7", "version": "1.3.7",