/[gentoo-x86]/sys-kernel/cryptodev/cryptodev-1.7.ebuild
Gentoo

Contents of /sys-kernel/cryptodev/cryptodev-1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 24 21:52:54 2015 UTC (4 years, 10 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines
export KERNEL_DIR to prevent the Makefile from trying to detect the kernel source itself which might break chroots and containers. Bug #547028. Thanks to Toralf Förster for the report and testing

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 09BF4F54C2BA7F3C!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/cryptodev/cryptodev-1.7.ebuild,v 1.1 2015/04/11 12:12:04 hwoarang Exp $
4
5 EAPI=5
6 inherit linux-info linux-mod
7
8 DESCRIPTION="device that allows access to Linux kernel cryptographic drivers"
9 HOMEPAGE="http://cryptodev-linux.org/index.html"
10 SRC_URI="http://download.gna.org/cryptodev-linux/${PN}-linux-${PV}.tar.gz"
11 KEYWORDS="~amd64 ~arm ~x86"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 IUSE="examples"
16
17 DEPEND="virtual/linux-sources"
18 RDEPEND=""
19 #test do not compile
20 RESTRICT="test"
21 S=${WORKDIR}/${PN}-linux-${PV}
22
23 MODULE_NAMES="cryptodev(extra:${S})"
24
25 pkg_pretend() {
26 if use kernel_linux ; then
27 CONFIG_CHECK="~CRYPTO ~CRYPTO_BLKCIPHER ~CRYPTO_AEAD"
28 check_extra_config
29 fi
30 }
31
32 pkg_setup() {
33 if use kernel_linux ; then
34 linux-mod_pkg_setup
35 else
36 die "cryptodev ebuild only support linux"
37 fi
38 BUILD_TARGETS="build"
39 export KERNEL_DIR
40 }
41
42 src_prepare() {
43 # get_unused_fd was removed in 3.19
44 sed -i 's,get_unused_fd(),get_unused_fd_flags(0),' ioctl.c || die
45 }
46
47 src_install() {
48 linux-mod_src_install
49 if use examples ; then
50 docinto examples
51 dodoc example/*
52 fi
53 insinto /usr/include/crypto
54 doins crypto/cryptodev.h
55 }

  ViewVC Help
Powered by ViewVC 1.1.20