mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
sys-kernel/cryptodev: Cleanup
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST cryptodev-linux-1.7.tar.gz 52827 BLAKE2B b64b317dfae942c0323acec6cf14b4bf7c6313b60b95d925f0c1c02b1d0b55d17ee8924d5fba1a4f18c5c9b3fd24d437103159986c03dc6c6251ee05d19f17dd SHA512 b0073bc547782973587654cb14205ec624059ef46f88ed2b36236d37203f9231ffb8124489b1b2fea735eb7f89bd1011f0d1546eae7b6f562e26ec7a72a59b6c
|
||||
DIST cryptodev-linux-1.9.tar.gz 54409 BLAKE2B 48427235409c792001f420c8a66ab4320457a1cf22c1bf47c8d0a40ef82491ffe64a27b7f2e7ed92f3b8b426fc8425bd15b2bf9c875bb222de8b738022adf99f SHA512 8aff822e834d7d77f2b954b3f6de22d7de9659dac27b8a185b7ca060ff4b17bd38e287bb5c19043a53f5015a3f000d31be961695152bad0fb9f55785b2753d29
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit linux-info linux-mod
|
||||
|
||||
DESCRIPTION="device that allows access to Linux kernel cryptographic drivers"
|
||||
HOMEPAGE="http://cryptodev-linux.org/index.html"
|
||||
SRC_URI="http://nwl.cc/pub/cryptodev-linux/${PN}-linux-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="examples"
|
||||
|
||||
DEPEND="virtual/linux-sources"
|
||||
RDEPEND=""
|
||||
#test do not compile
|
||||
RESTRICT="test"
|
||||
S=${WORKDIR}/${PN}-linux-${PV}
|
||||
|
||||
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_prepare() {
|
||||
# get_unused_fd was removed in 3.19
|
||||
sed -i 's,get_unused_fd(),get_unused_fd_flags(0),' ioctl.c || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc example/*
|
||||
fi
|
||||
insinto /usr/include/crypto
|
||||
doins crypto/cryptodev.h
|
||||
}
|
||||
Reference in New Issue
Block a user