sys-kernel/cryptodev: Update live ebuild to EAPI 7

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sven Wegener <swegener@gentoo.org>
This commit is contained in:
Sven Wegener
2020-08-09 21:45:23 +02:00
parent 4ad7736677
commit cb65575f0f

View File

@@ -1,20 +1,21 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit linux-info linux-mod
DESCRIPTION="device that allows access to Linux kernel cryptographic drivers"
HOMEPAGE="http://cryptodev-linux.org/index.html"
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="http://nwl.cc/pub/cryptodev-linux/${PN}-linux-${PV}.tar.gz"
SRC_URI="https://github.com/cryptodev-linux/cryptodev-linux/archive/${PN}-linux-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
S=${WORKDIR}/${PN}-linux-${PV}
S=${WORKDIR}/${PN}-linux-${PN}-linux-${PV}
fi
LICENSE="GPL-2+"
@@ -28,30 +29,28 @@ RESTRICT="test"
MODULE_NAMES="cryptodev(extra:${S})"
BUILD_PARAMS="KERNEL_DIR=\"\${KV_OUT_DIR}\""
BUILD_TARGETS="build"
pkg_pretend() {
if use kernel_linux ; then
CONFIG_CHECK="~CRYPTO ~CRYPTO_BLKCIPHER ~CRYPTO_AEAD"
check_extra_config
fi
}
use kernel_linux || die "cryptodev ebuild only support linux"
pkg_setup() {
if use kernel_linux ; then
linux-mod_pkg_setup
CONFIG_CHECK="~CRYPTO ~CRYPTO_AEAD"
if kernel_is -lt 4 8 0; then
CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_BLKCIPHER"
else
die "cryptodev ebuild only support linux"
CONFIG_CHECK="${CONFIG_CHECK} ~CRYPTO_SKCIPHER"
fi
BUILD_TARGETS="build"
export KERNEL_DIR
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
insinto /usr/include/crypto
doins crypto/cryptodev.h
}