diff mbox series

[meta-perl,2/7] libcrypt-urandom-perl: add recipe

Message ID 20260919222044.2143524-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-perl,1/7] libcrypt-openssl-bignum-perl: add recipe | expand

Commit Message

Khem Raj Sept. 19, 2026, 10:20 p.m. UTC
Crypt::URandom provides non-blocking cryptographically secure random
bytes via getrandom(2) or /dev/urandom. Authen::SASL 2.2000 uses it in
its DIGEST-MD5 mechanism.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../libcrypt/libcrypt-urandom-perl_0.55.bb    | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libcrypt/libcrypt-urandom-perl_0.55.bb
diff mbox series

Patch

diff --git a/meta-perl/recipes-perl/libcrypt/libcrypt-urandom-perl_0.55.bb b/meta-perl/recipes-perl/libcrypt/libcrypt-urandom-perl_0.55.bb
new file mode 100644
index 0000000000..9f7a91a954
--- /dev/null
+++ b/meta-perl/recipes-perl/libcrypt/libcrypt-urandom-perl_0.55.bb
@@ -0,0 +1,34 @@ 
+SUMMARY = "Crypt::URandom - Provide non blocking randomness"
+DESCRIPTION = "Crypt::URandom reads random bytes from the getrandom(2) system \
+call or /dev/urandom, providing cryptographically secure randomness that does \
+not block."
+HOMEPAGE = "https://metacpan.org/dist/Crypt-URandom"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 OR GPL-1.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ec17831373365f90a71812362a07229a"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/D/DD/DDICK/Crypt-URandom-${PV}.tar.gz"
+SRC_URI[sha256sum] = "ef9f44141073c13573e85b148ff9a9089c45825b7d6608d832e4263899d3a2d4"
+
+S = "${UNPACKDIR}/Crypt-URandom-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN} += "\
+    perl-module-carp \
+    perl-module-constant \
+    perl-module-english \
+    perl-module-exporter \
+    perl-module-filehandle \
+    perl-module-xsloader \
+"
+
+RDEPENDS:${PN}-ptest += "\
+    perl-module-config \
+    perl-module-encode \
+    perl-module-overload \
+    perl-module-posix \
+    perl-module-test-more \
+"
+
+BBCLASSEXTEND = "native"