sys-kernel/cryptodev: add 1.13

Signed-off-by: Sven Wegener <swegener@gentoo.org>
This commit is contained in:
Sven Wegener
2023-05-05 20:51:43 +02:00
parent c447996815
commit da496b6281
2 changed files with 56 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST cryptodev-linux-1.12.tar.gz 56922 BLAKE2B ec3d6585cbc15027468c0d009dfad1437286e71f90247b6b07067e1355483d9a3184cb0134ab4cfb406168b1b506fb08d4a0ab6476b71305267769a33e5ed2de SHA512 75f4f20ee7474375fd515cfd4f247f9a61739ac766525cd8fe007adfa44129d90077568d59409f577202a4d8883539b0d533dd5e060a1065b61106f68ea5e4b3
DIST cryptodev-linux-1.13.tar.gz 57673 BLAKE2B 856f91bcfab7012aa174e99e26bd47d1da9e8857fc58d69ec1068b1792350e0a211abcf4c32bc83fa867792283ddacc8c8b3ce230999c5f746762a5ebde08bf6 SHA512 20ea5a0838a2212fae3ce2bdfc2a8d118a5c56418d76491338caffb96e53e44d20450bba69e028f851333bb32fe0a9a174786a77eac4f2babd2d9371e0c04411

View File

@@ -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
}