blob: df72454efa4d6c7c6cebfb185884a2d4b3cbe38e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
SUMMARY = "A library for integrity verification of FIPS validated modules"
DESCRIPTION = "FIPSCheck is a library for integrity verification of FIPS validated \
modules. The package also provides helper binaries for creation and \
verification of the HMAC-SHA256 checksum files."
HOMEPAGE = "https://pagure.io/fipscheck"
SECTION = "libs/network"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=35f2904ce138ac5fa63e7cedf96bbedf"
SRC_URI = "https://releases.pagure.org/fipscheck/${BPN}-${PV}.tar.bz2 \
file://0001-compat-fip-with-openssl-1.0.2.patch \
"
SRC_URI[md5sum] = "86e756a7d2aa15f3f91033fb3eced99b"
SRC_URI[sha256sum] = "7ba38100ced187f44b12dd52c8c74db8f366a2a8b9da819bd3e7c6ea17f469d5"
DEPENDS = " \
openssl \
openssl-fips \
"
inherit autotools pkgconfig
EXTRA_OECONF += " \
--disable-static \
"
EXTRA_OEMAKE += " \
-I${STAGING_LIBDIR_NATIVE}/ssl/fips-2.0/include \
"
do_install:append() {
install -d ${D}${libdir}/fipscheck
}
inherit qemu
pkg_postinst:${PN} () {
if [ -n "$D" ]; then
if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true','false', d)}; then
${@qemu_run_binary(d, '$D', '${bindir}/fipshmac')} \
-d $D${libdir}/fipscheck $D${bindir}/fipscheck $D${libdir}/libfipscheck.so.1.2.1 && \
ln -s libfipscheck.so.1.2.1.hmac $D${libdir}/fipscheck/libfipscheck.so.1.hmac
else
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
fi
else
${bindir}/fipshmac -d ${libdir}/fipscheck ${bindir}/fipscheck \
${libdir}/libfipscheck.so.1.2.1 && \
ln -s libfipscheck.so.1.2.1.hmac ${libdir}/fipscheck/libfipscheck.so.1.hmac
fi
}
python __anonymous() {
if d.getVar("OPENSSL_FIPS_ENABLED", True) != "1":
raise bb.parse.SkipPackage("To enable the fipscheck recipe set OPENSSL_FIPS_ENABLED = '1'.")
}
FILES:${PN} += "${libdir}/fipscheck"
|