/[gentoo-x86]/sys-kernel/spl/spl-0.6.0_rc10.ebuild
Gentoo

Contents of /sys-kernel/spl/spl-0.6.0_rc10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Aug 15 23:03:39 2012 UTC (2 years, 4 months ago) by ryao
Branch: MAIN
Add 0.6.0-rc10 release

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 ryao 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sys-kernel/spl/spl-0.6.0_rc9-r2.ebuild,v 1.2 2012/07/28 21:46:16 ryao Exp $
4    
5     EAPI="4"
6     AUTOTOOLS_AUTORECONF="1"
7    
8     inherit flag-o-matic linux-mod autotools-utils
9    
10     if [[ ${PV} == "9999" ]] ; then
11     inherit git-2
12     EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git"
13     else
14     inherit eutils versionator
15     MY_PV=$(replace_version_separator 3 '-')
16     SRC_URI="https://github.com/downloads/zfsonlinux/${PN}/${PN}-${MY_PV}.tar.gz"
17     S="${WORKDIR}/${PN}-${MY_PV}"
18     KEYWORDS="~amd64"
19     fi
20    
21     DESCRIPTION="The Solaris Porting Layer is a Linux kernel module which provides many of the Solaris kernel APIs"
22     HOMEPAGE="http://zfsonlinux.org/"
23    
24     LICENSE="|| ( GPL-2 GPL-3 )"
25     SLOT="0"
26     IUSE="custom-cflags debug"
27    
28     RDEPEND="!sys-devel/spl"
29    
30     AT_M4DIR="config"
31     AUTOTOOLS_IN_SOURCE_BUILD="1"
32    
33     pkg_setup() {
34     CONFIG_CHECK="
35     !DEBUG_LOCK_ALLOC
36     !GRKERNSEC_HIDESYM
37     !PREEMPT
38     MODULES
39     KALLSYMS
40     ZLIB_DEFLATE
41     ZLIB_INFLATE
42     "
43     kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required"
44     check_extra_config
45     }
46    
47     src_prepare() {
48     # Workaround for hard coded path
49     sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/check.sh || die
50    
51     if [ ${PV} != "9999" ]
52     then
53     epatch "${FILESDIR}/${PN}-0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch"
54     fi
55    
56     autotools-utils_src_prepare
57     }
58    
59     src_configure() {
60     use custom-cflags || strip-flags
61     set_arch_to_kernel
62     local myeconfargs=(
63     --bindir="${EPREFIX}/bin"
64     --sbindir="${EPREFIX}/sbin"
65     --with-config=all
66     --with-linux="${KV_DIR}"
67     --with-linux-obj="${KV_OUT_DIR}"
68     $(use_enable debug)
69     )
70     autotools-utils_src_configure
71     }
72    
73     src_test() {
74     if [[ ! -e /proc/modules ]]
75     then
76     die "Missing /proc/modules"
77     elif [[ $UID -ne 0 ]]
78     then
79     ewarn "Cannot run make check tests with FEATURES=userpriv."
80     ewarn "Skipping make check tests."
81     elif grep -q '^spl ' /proc/modules
82     then
83     ewarn "Cannot run make check tests with module spl loaded."
84     ewarn "Skipping make check tests."
85     else
86     autotools-utils_src_test
87     fi
88     }

  ViewVC Help
Powered by ViewVC 1.1.20