diff options
author | Zoltán Böszörményi <zboszor@gmail.com> | 2025-02-13 16:23:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 11:56:04 +0000 |
commit | 304df6b4c834b5b72b938d46a6738511b0e8b2f0 (patch) | |
tree | 8ea3b35e0e53dcd9ac33e626ad0a355a6c774262 /meta/recipes-devtools/rpm-sequoia | |
parent | fc4bbbbd51dd33a9be8a596e0830455bb59a5acc (diff) | |
download | poky-304df6b4c834b5b72b938d46a6738511b0e8b2f0.tar.gz |
rpm-sequoia-crypto-policy: New recipe
This ships a crypto policy file for rpm-sequoia.
(From OE-Core rev: 8e499cefab6bfb40b40ae3eb811ca3eb51a7d4bc)
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm-sequoia')
-rw-r--r-- | meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb b/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb new file mode 100644 index 0000000000..098881e3da --- /dev/null +++ b/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "Crypto policy for rpm-sequoia" | ||
2 | HOMEPAGE = "https://gitlab.com/redhat-crypto/fedora-crypto-policies/" | ||
3 | |||
4 | LICENSE = "LGPL-2.1-or-later" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
7 | |||
8 | DEPENDS = "coreutils-native openssl-native make-native" | ||
9 | |||
10 | inherit allarch python3native | ||
11 | |||
12 | SRC_URI = "git://gitlab.com/redhat-crypto/fedora-crypto-policies.git;protocol=https;branch=master" | ||
13 | |||
14 | SRCREV = "032b418a6db842f0eab330eb5909e4604e888728" | ||
15 | UPSTREAM_CHECK_COMMITS = "1" | ||
16 | |||
17 | S = "${UNPACKDIR}/git" | ||
18 | |||
19 | do_compile () { | ||
20 | # Remove most policy variants, leave DEFAULT.pol | ||
21 | # It speeds up the build and we only need DEFAULT/rpm-sequoia. | ||
22 | rm -f $(ls -1 policies/*.pol | grep -v DEFAULT.pol) || echo nothing to delete | ||
23 | |||
24 | # Don't validate openssh policy variants. | ||
25 | # Validation may fail and these variants are not needed. | ||
26 | export OLD_OPENSSH=1 | ||
27 | |||
28 | make ASCIIDOC=echo XSLTPROC=echo | ||
29 | } | ||
30 | |||
31 | do_install () { | ||
32 | install -d -m755 ${D}${datadir}/crypto-policies/back-ends | ||
33 | install -m644 ${S}/output/DEFAULT/rpm-sequoia.txt ${D}${datadir}/crypto-policies/back-ends/rpm-sequoia.config | ||
34 | } | ||
35 | |||
36 | FILES:${PN} = "${datadir}/crypto-policies/back-ends/*" | ||
37 | |||
38 | BBCLASSEXTEND = "native" | ||