From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 94179139694 for ; Wed, 22 Mar 2017 09:50:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 999FEE0CE1; Wed, 22 Mar 2017 09:50:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F9E6E0CE1 for ; Wed, 22 Mar 2017 09:50:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 141E7340DF9 for ; Wed, 22 Mar 2017 09:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79E0970E4 for ; Wed, 22 Mar 2017 09:50:24 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1490175506.2d3c92e5d6daa6b96321c3392abc319cc8bb8098.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/cryptodev/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/cryptodev/cryptodev-9999.ebuild X-VCS-Directories: sys-kernel/cryptodev/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 2d3c92e5d6daa6b96321c3392abc319cc8bb8098 X-VCS-Branch: master Date: Wed, 22 Mar 2017 09:50:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ef672918-692b-4f04-990f-4dbfea629451 X-Archives-Hash: 765d30c32a9827e15f46b4be391d1d6e commit: 2d3c92e5d6daa6b96321c3392abc319cc8bb8098 Author: Marek Szuba gentoo org> AuthorDate: Wed Mar 22 09:38:26 2017 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Mar 22 09:38:26 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d3c92e5 sys-kernel/cryptodev: add live ebuild Requested-By: Corentin Labbe gmail.com> Package-Manager: Portage-2.3.3, Repoman-2.3.1 sys-kernel/cryptodev/cryptodev-9999.ebuild | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/sys-kernel/cryptodev/cryptodev-9999.ebuild b/sys-kernel/cryptodev/cryptodev-9999.ebuild new file mode 100644 index 00000000000..1576432f236 --- /dev/null +++ b/sys-kernel/cryptodev/cryptodev-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit linux-info linux-mod + +DESCRIPTION="device that allows access to Linux kernel cryptographic drivers" +HOMEPAGE="http://cryptodev-linux.org/index.html" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/cryptodev-linux/cryptodev-linux.git" + S="${WORKDIR}/${PN}-${PV}" +else + SRC_URI="http://download.gna.org/cryptodev-linux/${PN}-linux-${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" + S=${WORKDIR}/${PN}-linux-${PV} +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples" + +DEPEND="virtual/linux-sources" +RDEPEND="" +#test now compile, but need the module to run +RESTRICT="test" + +MODULE_NAMES="cryptodev(extra:${S})" + +pkg_pretend() { + if use kernel_linux ; then + CONFIG_CHECK="~CRYPTO ~CRYPTO_BLKCIPHER ~CRYPTO_AEAD" + check_extra_config + fi +} + +pkg_setup() { + if use kernel_linux ; then + linux-mod_pkg_setup + else + die "cryptodev ebuild only support linux" + fi + BUILD_TARGETS="build" + export KERNEL_DIR +} + +src_install() { + linux-mod_src_install + if use examples ; then + docinto examples + dodoc example/* + fi + insinto /usr/include/crypto + doins crypto/cryptodev.h +}