-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathclevis_21.bb
More file actions
67 lines (51 loc) · 1.84 KB
/
clevis_21.bb
File metadata and controls
67 lines (51 loc) · 1.84 KB
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
58
59
60
61
62
63
64
65
66
67
SUMMARY = "Clevis - Automated Encryption Framework"
DESCRIPTION = "Clevis is a pluggable framework for automated decryption. It \
can be used to provide automated decryption of data or even automated \
unlocking of LUKS volumes."
HOMEPAGE = "https://github.com/latchset/clevis"
SECTION = "security"
LICENSE = "GPL-3.0-or-later"
LIC_FILES_CHKSUM = "\
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://COPYING.openssl;md5=a78c00d154a43f35ef1dc1292a234c6d \
"
DEPENDS = "\
cryptsetup \
cryptsetup-native \
jansson \
jose \
keyutils-native \
"
SRC_URI = "\
https://github.com/latchset/clevis/releases/download/v${PV}/${BP}.tar.xz \
"
SRC_URI[sha256sum] = "a0388a544c77139dc751cdbf66bdd38fc29c43f9e81a1cdfd119c84109ffca3f"
# ==============================================================================
# BBCLASSES
# ==============================================================================
# CONFIGURATION AND BUILD
inherit meson pkgconfig
PACKAGECONFIG ??= ""
PACKAGECONFIG[docs] = ",, asciidoc-native"
PACKAGECONFIG[dracut] = ",, dracut, dracut"
PACKAGECONFIG[luks] = ",, luksmeta, cryptsetup jq"
PACKAGECONFIG[pkcs11] = ",, opensc-native, opensc"
PACKAGECONFIG[tpm2] = ",, tpm2-tools-native, tpm2-tools"
# TODO: Add support for systemd systems.
# initramfs-tools integration intentionally skipped due to no-support in OE.
inherit bash-completion
# PTESTING
inherit ptest
do_install_ptest () {
install -d ${D}${PTEST_PATH}
install -m 0744 ${S}/src/luks/tests/* ${D}${PTEST_PATH}
# TODO: more tests
}
RDEPENDS:${PN}-ptest += " bash cryptsetup"
RRECOMMENDS:${PN}-ptest += " jq keyutils"
# ==============================================================================
# PACKAGING
# ==============================================================================
# clevis
FILES:${PN} += " ${libdir}/dracut/*"
RDEPENDS:${PN} += " bash tpm2-tools"