public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sven Wegener" <swegener@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/cryptodev/
Date: Sun,  9 Aug 2020 19:52:05 +0000 (UTC)	[thread overview]
Message-ID: <1597002572.cb65575f0f19ce79f1c40ff5ef8063d3e3216498.swegener@gentoo> (raw)

commit:     cb65575f0f19ce79f1c40ff5ef8063d3e3216498
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 19:45:23 2020 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 19:49:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb65575f

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 <AT> gentoo.org>

 sys-kernel/cryptodev/cryptodev-9999.ebuild | 35 +++++++++++++++---------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/sys-kernel/cryptodev/cryptodev-9999.ebuild b/sys-kernel/cryptodev/cryptodev-9999.ebuild
index 97182739422..08cf07fc623 100644
--- a/sys-kernel/cryptodev/cryptodev-9999.ebuild
+++ b/sys-kernel/cryptodev/cryptodev-9999.ebuild
@@ -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
 }


             reply	other threads:[~2020-08-09 19:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-09 19:52 Sven Wegener [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-06 15:26 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/cryptodev/ Arthur Zamarin
2023-06-21 18:50 Sven Wegener
2023-05-05 18:55 Sven Wegener
2023-03-04 18:53 Sven Wegener
2023-03-04 18:53 Sven Wegener
2022-01-22 18:23 Sven Wegener
2021-04-01 18:47 Sven Wegener
2021-04-01 18:47 Sven Wegener
2020-08-09 19:52 Sven Wegener
2020-08-08 12:18 Mikle Kolyada
2018-09-02 12:15 Sven Wegener
2018-09-02 12:15 Sven Wegener
2018-09-02 12:15 Sven Wegener
2018-06-26 22:22 Jonas Stein
2017-10-04  9:17 Michał Górny
2017-07-30  9:23 Michał Górny
2017-04-25 12:18 Jeroen Roovers
2017-04-24  7:45 Jeroen Roovers
2017-03-22  9:50 Marek Szuba
2017-03-18 17:43 Göktürk Yüksek
2017-03-18 17:43 Göktürk Yüksek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1597002572.cb65575f0f19ce79f1c40ff5ef8063d3e3216498.swegener@gentoo \
    --to=swegener@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox