summaryrefslogtreecommitdiff
path: root/sys-kernel/cryptodev
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-05 23:32:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-05 23:32:29 +0100
commit930b5a700c6f4093c4b63eec7395c080ab639311 (patch)
tree314e43df83fe12b5fa743c5aa37d0c7ae26260fc /sys-kernel/cryptodev
parent8b5a92f1e1eccecfa61db8a4744e1b9d449522b6 (diff)
gentoo auto-resync : 05:05:2023 - 23:32:28
Diffstat (limited to 'sys-kernel/cryptodev')
-rw-r--r--sys-kernel/cryptodev/Manifest2
-rw-r--r--sys-kernel/cryptodev/cryptodev-1.13.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/cryptodev/Manifest b/sys-kernel/cryptodev/Manifest
index 8d652d5c407d..d6f8ca3d5940 100644
--- a/sys-kernel/cryptodev/Manifest
+++ b/sys-kernel/cryptodev/Manifest
@@ -1,4 +1,6 @@
DIST cryptodev-linux-1.12.tar.gz 56922 BLAKE2B ec3d6585cbc15027468c0d009dfad1437286e71f90247b6b07067e1355483d9a3184cb0134ab4cfb406168b1b506fb08d4a0ab6476b71305267769a33e5ed2de SHA512 75f4f20ee7474375fd515cfd4f247f9a61739ac766525cd8fe007adfa44129d90077568d59409f577202a4d8883539b0d533dd5e060a1065b61106f68ea5e4b3
+DIST cryptodev-linux-1.13.tar.gz 57673 BLAKE2B 856f91bcfab7012aa174e99e26bd47d1da9e8857fc58d69ec1068b1792350e0a211abcf4c32bc83fa867792283ddacc8c8b3ce230999c5f746762a5ebde08bf6 SHA512 20ea5a0838a2212fae3ce2bdfc2a8d118a5c56418d76491338caffb96e53e44d20450bba69e028f851333bb32fe0a9a174786a77eac4f2babd2d9371e0c04411
EBUILD cryptodev-1.12.ebuild 1243 BLAKE2B 5c48671d23bd85599c7f39b84f84a196c9c84464a9f4864c26a4db400896cfadbeed2f67d6ab7637bb65eba9c4d8994a2f111e5fc73b135de2cd28557326d2b2 SHA512 d2f001ff4f5fdff871ebd73b95bdd6f798df3bdbca63712c98c96ca056a0f9653ac3b6178869a9d2166f1fe7d77b3f53c72ff6aa18128fa9b4e824212109dd9e
+EBUILD cryptodev-1.13.ebuild 1245 BLAKE2B 3ed6ebd92782288f38b97031c9ed0007a4447aa3327e9212600f746baac306ced68b00cfde9e320ece21cc070c9b50b8744972f4926e55c9f519c44f70c39580 SHA512 6027e7f8385bc531e3913da053956a207b8c24005e58a253d62274eb758bb2fb63e866e974c65efd2c2f6d24fd767a15007bccb19599fbffcaf719b06fd1ed68
EBUILD cryptodev-9999.ebuild 1245 BLAKE2B 3ed6ebd92782288f38b97031c9ed0007a4447aa3327e9212600f746baac306ced68b00cfde9e320ece21cc070c9b50b8744972f4926e55c9f519c44f70c39580 SHA512 6027e7f8385bc531e3913da053956a207b8c24005e58a253d62274eb758bb2fb63e866e974c65efd2c2f6d24fd767a15007bccb19599fbffcaf719b06fd1ed68
MISC metadata.xml 248 BLAKE2B 2d106b5e5ce214c551cc1e69c63882e8eb0c2986584f02a89a912ab1bf37e7febee7f32dc6428330c516149d777c181de0699ed51f2278908570b04103163592 SHA512 5f733a87a4b90f9037d013b281384f3df7a2f24c9a445ff729687c1693f4b7ce254966c58c190efa569864bedc5d9933eb960e86aa691d490fb9a4d5c90cf0c1
diff --git a/sys-kernel/cryptodev/cryptodev-1.13.ebuild b/sys-kernel/cryptodev/cryptodev-1.13.ebuild
new file mode 100644
index 000000000000..ac9bd1eeea15
--- /dev/null
+++ b/sys-kernel/cryptodev/cryptodev-1.13.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info linux-mod
+
+DESCRIPTION="device that allows access to Linux kernel cryptographic drivers"
+HOMEPAGE="http://cryptodev-linux.org/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/cryptodev-linux/cryptodev-linux.git"
+else
+ SRC_URI="https://github.com/cryptodev-linux/cryptodev-linux/archive/${PN}-linux-${PV}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+ S=${WORKDIR}/${PN}-linux-${PN}-linux-${PV}
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="examples"
+
+DEPEND="virtual/linux-sources"
+
+#test requires that the module is already loaded
+RESTRICT="test"
+
+MODULE_NAMES="cryptodev(extra:${S})"
+BUILD_PARAMS="KERNEL_DIR=\"\${KV_OUT_DIR}\""
+BUILD_TARGETS="build"
+
+pkg_pretend() {
+ use kernel_linux || die "cryptodev ebuild only support linux"
+
+ CONFIG_CHECK="~CRYPTO ~CRYPTO_AEAD"
+ if kernel_is -lt 4 8 0; then
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_BLKCIPHER"
+ else
+ CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SKCIPHER"
+ fi
+ check_extra_config
+}
+
+src_install() {
+ linux-mod_src_install
+
+ insinto /usr/include/crypto
+ doins crypto/cryptodev.h
+
+ if use examples ; then
+ docinto examples
+ dodoc example/*
+ fi
+}