Initial Commit
- initial default booting image
This commit is contained in:
24
package/openscap/Config.in
Normal file
24
package/openscap/Config.in
Normal file
@@ -0,0 +1,24 @@
|
||||
config BR2_PACKAGE_OPENSCAP
|
||||
bool "openscap"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
# In theory should build without crypto, but in practice it
|
||||
# doesn't: https://github.com/OpenSCAP/openscap/issues/2310
|
||||
select BR2_PACKAGE_LIBGCRYPT if !BR2_PACKAGE_LIBNSS
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_LIBXSLT
|
||||
select BR2_PACKAGE_LIBXMLSEC1
|
||||
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_PCRE2
|
||||
help
|
||||
The purpose of this project is to create security policy
|
||||
content for various platforms
|
||||
|
||||
https://www.open-scap.org/
|
||||
https://github.com/OpenSCAP/openscap
|
||||
|
||||
comment "openscap needs a toolchain w/ dynamic library, NPTL"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
6
package/openscap/openscap.hash
Normal file
6
package/openscap/openscap.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://github.com/OpenSCAP/openscap/releases/tag/1.4.4
|
||||
sha256 25b1b046822121204e6d53d877a532c88bf7fde14b94c9c72297cd5709b03478 openscap-1.4.4.tar.gz
|
||||
# From https://github.com/OpenSCAP/openscap/releases/download/1.4.4/openscap-1.4.4.tar.gz.sha512
|
||||
sha512 c69736bee997e50a04aff8e4f22da880f342190e1289c5df0fb73b7af34833d3bd9f4e5055b227a18d571167671f821701a09f8c9a3e4568c7da68cc4be51133 openscap-1.4.4.tar.gz
|
||||
# Locally computed
|
||||
sha256 5df07007198989c622f5d41de8d703e7bef3d0e79d62e24332ee739a452af62a COPYING
|
||||
75
package/openscap/openscap.mk
Normal file
75
package/openscap/openscap.mk
Normal file
@@ -0,0 +1,75 @@
|
||||
################################################################################
|
||||
#
|
||||
# openscap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPENSCAP_VERSION = 1.4.4
|
||||
OPENSCAP_SITE = https://github.com/OpenSCAP/openscap/releases/download/$(OPENSCAP_VERSION)
|
||||
OPENSCAP_LICENSE = LGPL-2.1+
|
||||
OPENSCAP_LICENSE_FILES = COPYING
|
||||
OPENSCAP_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
OPENSCAP_INSTALL_STAGING = YES
|
||||
|
||||
OPENSCAP_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
libcurl \
|
||||
libxml2 \
|
||||
libxmlsec1 \
|
||||
libxslt \
|
||||
pcre2
|
||||
|
||||
HOST_OPENSCAP_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
host-libcurl \
|
||||
host-libgcrypt \
|
||||
host-libxml2 \
|
||||
host-libxmlsec1 \
|
||||
host-libxslt \
|
||||
host-pcre2
|
||||
|
||||
OPENSCAP_CONF_OPTS = \
|
||||
-DENABLE_OSCAP_UTIL=ON \
|
||||
-DENABLE_OSCAP_UTIL_DOCKER=OFF \
|
||||
-DENABLE_OSCAP_UTIL_CHROOT=OFF \
|
||||
-DENABLE_OSCAP_UTIL_PODMAN=OFF \
|
||||
-DENABLE_OSCAP_UTIL_VM=OFF \
|
||||
-DENABLE_PROBES_WINDOWS=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DWITH_CRYPTO=gcrypt \
|
||||
-DENABLE_PYTHON3=OFF
|
||||
|
||||
HOST_OPENSCAP_CONF_OPTS = \
|
||||
-DENABLE_OSCAP_UTIL=ON \
|
||||
-DENABLE_OSCAP_UTIL_DOCKER=OFF \
|
||||
-DENABLE_OSCAP_UTIL_CHROOT=OFF \
|
||||
-DENABLE_OSCAP_UTIL_PODMAN=OFF \
|
||||
-DENABLE_OSCAP_UTIL_VM=OFF \
|
||||
-DENABLE_PROBES_WINDOWS=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DWITH_CRYPTO=gcrypt \
|
||||
-DENABLE_PYTHON3=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
OPENSCAP_DEPENDENCIES += acl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
OPENSCAP_DEPENDENCIES += libcap
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
OPENSCAP_DEPENDENCIES += libgcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
||||
OPENSCAP_DEPENDENCIES += libnss
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
|
||||
OPENSCAP_DEPENDENCIES += musl-fts
|
||||
OPENSCAP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-lfts
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
$(eval $(host-cmake-package))
|
||||
Reference in New Issue
Block a user