diff options
author | Armin Kuster <akuster808@gmail.com> | 2019-03-16 16:47:27 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-03-17 15:38:53 -0700 |
commit | 5b7c372770408cecf16b2eca50d4951502bef597 (patch) | |
tree | 8004d2e79f8fd335bdb29d13b224b3ab1f815ad8 | |
parent | 0590bd05207313c4bd9dde8f2cccc336e8b3b055 (diff) | |
download | meta-security-5b7c372770408cecf16b2eca50d4951502bef597.tar.gz |
cryptsetup-tpm-incubator: add new package
[v2]
add missing patch
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/cryptsetup-tpm-incubator_0.9.9.bb | 41 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/files/configure_fix.patch | 16 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/cryptsetup-tpm-incubator_0.9.9.bb b/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/cryptsetup-tpm-incubator_0.9.9.bb new file mode 100644 index 0000000..8b50445 --- /dev/null +++ b/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/cryptsetup-tpm-incubator_0.9.9.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | SUMMARY = "An extension to cryptsetup/LUKS that enables use of the TPM 2.0 via tpm2-tss" | ||
2 | DESCRIPTION = "Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module." | ||
3 | |||
4 | SECTION = "security/tpm" | ||
5 | LICENSE = "LGPL-2.1 | GPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326 \ | ||
7 | file://COPYING.LGPL;md5=1960515788100ce5f9c98ea78a65dc52 \ | ||
8 | " | ||
9 | |||
10 | DEPENDS = "autoconf-archive pkgconfig gettext libtss2-dev libdevmapper popt libgcrypt json-c" | ||
11 | |||
12 | SRC_URI = "git://github.com/AndreasFuchsSIT/cryptsetup-tpm-incubator.git;branch=luks2tpm \ | ||
13 | file://configure_fix.patch " | ||
14 | |||
15 | SRCREV = "15c283195f19f1d980e39ba45448683d5e383179" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit autotools pkgconfig gettext | ||
20 | |||
21 | PACKAGECONFIG ??= "openssl" | ||
22 | PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" | ||
23 | PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" | ||
24 | |||
25 | EXTRA_OECONF = "--enable-static" | ||
26 | |||
27 | RRECOMMENDS_${PN} = "kernel-module-aes-generic \ | ||
28 | kernel-module-dm-crypt \ | ||
29 | kernel-module-md5 \ | ||
30 | kernel-module-cbc \ | ||
31 | kernel-module-sha256-generic \ | ||
32 | kernel-module-xts \ | ||
33 | " | ||
34 | |||
35 | RDEPENDS_${PN} += "lvm2" | ||
36 | RRECOMMENDS_${PN} += "lvm2-udevrules" | ||
37 | |||
38 | RREPLACES_${PN} = "cryptsetup" | ||
39 | RCONFLICTS_${PN} ="cryptsetup" | ||
40 | |||
41 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/files/configure_fix.patch b/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/files/configure_fix.patch new file mode 100644 index 0000000..8c7b6da --- /dev/null +++ b/meta-tpm/recipes-tpm2/cryptsetup-tpm-incubator/files/configure_fix.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Upstream-Status: OE specific | ||
2 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
3 | |||
4 | Index: git/configure.ac | ||
5 | =================================================================== | ||
6 | --- git.orig/configure.ac | ||
7 | +++ git/configure.ac | ||
8 | @@ -16,7 +16,7 @@ AC_CONFIG_HEADERS([config.h:config.h.in] | ||
9 | |||
10 | # For old automake use this | ||
11 | #AM_INIT_AUTOMAKE(dist-xz subdir-objects) | ||
12 | -AM_INIT_AUTOMAKE([dist-xz 1.12 serial-tests subdir-objects]) | ||
13 | +AM_INIT_AUTOMAKE([dist-xz 1.12 serial-tests subdir-objects foreign]) | ||
14 | |||
15 | if test "x$prefix" = "xNONE"; then | ||
16 | sysconfdir=/etc | ||