From bb7fd41e21d968e9de582ccc8e3fb2a903940e3f Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Sun, 9 Aug 2020 21:48:31 +0200 Subject: sys-kernel/cryptodev: Version bump to 1.11, bug #736561 Closes: https://bugs.gentoo.org/736561 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sven Wegener --- sys-kernel/cryptodev/Manifest | 1 + sys-kernel/cryptodev/cryptodev-1.11.ebuild | 56 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 sys-kernel/cryptodev/cryptodev-1.11.ebuild (limited to 'sys-kernel/cryptodev') diff --git a/sys-kernel/cryptodev/Manifest b/sys-kernel/cryptodev/Manifest index 5d057c080a6d..a747dd1bd801 100644 --- a/sys-kernel/cryptodev/Manifest +++ b/sys-kernel/cryptodev/Manifest @@ -1 +1,2 @@ +DIST cryptodev-linux-1.11.tar.gz 56876 BLAKE2B 97cf09c515c586372b2c5bd450e445afd5f80ed8ab39002545dc550c63480469a5318214f467444618e4e1783b9ab999b550cfb16d8ded6de26671a0727d06c2 SHA512 f7b76e9a154945514e2238cd7106cb50cea8120febc79228d6a8ba2dfaf98d5f0756d970df76fd63bda4755d7e0d78331aea394c3c5c18794b7ef1a8738fddba DIST cryptodev-linux-1.9.tar.gz 54409 BLAKE2B 48427235409c792001f420c8a66ab4320457a1cf22c1bf47c8d0a40ef82491ffe64a27b7f2e7ed92f3b8b426fc8425bd15b2bf9c875bb222de8b738022adf99f SHA512 8aff822e834d7d77f2b954b3f6de22d7de9659dac27b8a185b7ca060ff4b17bd38e287bb5c19043a53f5015a3f000d31be961695152bad0fb9f55785b2753d29 diff --git a/sys-kernel/cryptodev/cryptodev-1.11.ebuild b/sys-kernel/cryptodev/cryptodev-1.11.ebuild new file mode 100644 index 000000000000..08cf07fc623e --- /dev/null +++ b/sys-kernel/cryptodev/cryptodev-1.11.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 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" + S="${WORKDIR}/${PN}-${PV}" +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 +} -- cgit v1.2.3-65-gdbad