diff options
Diffstat (limited to 'meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.3.7.bb')
| -rw-r--r-- | meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.3.7.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.3.7.bb b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.3.7.bb new file mode 100644 index 0000000000..700984010f --- /dev/null +++ b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.3.7.bb | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | SUMMARY = "Manage plain dm-crypt and LUKS encrypted volumes" | ||
| 2 | DESCRIPTION = "Cryptsetup is used to conveniently setup dm-crypt managed \ | ||
| 3 | device-mapper mappings. These include plain dm-crypt volumes and \ | ||
| 4 | LUKS volumes. The difference is that LUKS uses a metadata header \ | ||
| 5 | and can hence offer more features than plain dm-crypt. On the other \ | ||
| 6 | hand, the header is visible and vulnerable to damage." | ||
| 7 | HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup" | ||
| 8 | SECTION = "console" | ||
| 9 | LICENSE = "GPL-2.0-with-OpenSSL-exception" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" | ||
| 11 | |||
| 12 | DEPENDS = " \ | ||
| 13 | json-c \ | ||
| 14 | libdevmapper \ | ||
| 15 | popt \ | ||
| 16 | util-linux-libuuid \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" | ||
| 20 | SRC_URI[md5sum] = "9c5952cebb836ee783b0b76c5380a964" | ||
| 21 | SRC_URI[sha256sum] = "61835132a5986217af17b8943013aa3fe6d47bdc1a07386343526765e2ce27a9" | ||
| 22 | |||
| 23 | inherit autotools gettext pkgconfig | ||
| 24 | |||
| 25 | # Use openssl because libgcrypt drops root privileges | ||
| 26 | # if libgcrypt is linked with libcap support | ||
| 27 | PACKAGECONFIG ??= " \ | ||
| 28 | keyring \ | ||
| 29 | cryptsetup \ | ||
| 30 | veritysetup \ | ||
| 31 | cryptsetup-reencrypt \ | ||
| 32 | integritysetup \ | ||
| 33 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ | ||
| 34 | kernel_crypto \ | ||
| 35 | internal-argon2 \ | ||
| 36 | blkid \ | ||
| 37 | luks-adjust-xts-keysize \ | ||
| 38 | openssl \ | ||
| 39 | " | ||
| 40 | PACKAGECONFIG_append_class-target = " \ | ||
| 41 | udev \ | ||
| 42 | " | ||
| 43 | |||
| 44 | PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" | ||
| 45 | PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" | ||
| 46 | PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality" | ||
| 47 | PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc" | ||
| 48 | PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup" | ||
| 49 | PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" | ||
| 50 | PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" | ||
| 51 | PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" | ||
| 52 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" | ||
| 53 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,udev lvm2-udevrules" | ||
| 54 | PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" | ||
| 55 | # gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't | ||
| 56 | # recognized. | ||
| 57 | PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" | ||
| 58 | PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2" | ||
| 59 | PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" | ||
| 60 | PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" | ||
| 61 | PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random" | ||
| 62 | PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize" | ||
| 63 | PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" | ||
| 64 | PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" | ||
| 65 | PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" | ||
| 66 | PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" | ||
| 67 | PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" | ||
| 68 | PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1" | ||
| 69 | |||
| 70 | EXTRA_OECONF = "--enable-static" | ||
| 71 | # Building without largefile is not supported by upstream | ||
| 72 | EXTRA_OECONF += "--enable-largefile" | ||
| 73 | # Requires a static popt library | ||
| 74 | EXTRA_OECONF += "--disable-static-cryptsetup" | ||
| 75 | # There's no recipe for libargon2 yet | ||
| 76 | EXTRA_OECONF += "--disable-libargon2" | ||
| 77 | |||
| 78 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}" | ||
| 79 | |||
| 80 | RDEPENDS_${PN} = " \ | ||
| 81 | libdevmapper \ | ||
| 82 | " | ||
| 83 | |||
| 84 | RRECOMMENDS_${PN}_class-target = " \ | ||
| 85 | kernel-module-aes-generic \ | ||
| 86 | kernel-module-dm-crypt \ | ||
| 87 | kernel-module-md5 \ | ||
| 88 | kernel-module-cbc \ | ||
| 89 | kernel-module-sha256-generic \ | ||
| 90 | kernel-module-xts \ | ||
| 91 | " | ||
| 92 | |||
| 93 | BBCLASSEXTEND = "native nativesdk" | ||
