summaryrefslogtreecommitdiff
blob: abdb730eb91976669e79cf028dcb73af0abb6915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/zen-sources/zen-sources-9999.ebuild,v 1.4 2011/09/21 09:02:49 mgorny Exp $

EAPI="2"

COMPRESSTYPE=".lzma"
K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
K_DEBLOB_AVAILABLE=0
# If these are not set, you will get weird behavior from kernel-2, due to the
# huge $PV that is used otherwise.
CKV='2.6.99'

ETYPE="sources"

IUSE="+stable"

inherit kernel-2 git-2
detect_version

K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="The Zen Kernel Live Sources"
HOMEPAGE="http://zen-kernel.org"

if use stable; then
	EGIT_REPO_URI="git://zen-kernel.org/kernel/zen-stable.git
		http://git.zen-kernel.org/zen-stable/"
else
	EGIT_REPO_URI="git://zen-kernel.org/kernel/zen.git
		http://git.zen-kernel.org/zen/"
fi

KEYWORDS=""

K_EXTRAEINFO="For more info on zen-sources, and for how to report problems, see: \
${HOMEPAGE}, also go to #zen-sources on freenode"

pkg_setup(){
	ewarn "Be carefull!! You are about to install live kernel sources."
	ewarn "Git zen-sources are extremely unsupported, even from the upstream"
	ewarn "developers. Use them at your own risk and don't bite us if your"
	ewarn "system explodes"
	ebeep 10
	ewarn
	if use stable; then
		ewarn "stable use flag is enabled. This means that you will install"
		ewarn "${PN} from stable git tree."
	else
		ewarn "WARNING! stable use flag is disabled. You will install ${PN}"
		ewarn "from unstable git tree"
	fi
	ebeep 10
	kernel-2_pkg_setup
}