summaryrefslogtreecommitdiff
blob: 9fa117b914452e3590b0ed28c75cf9fafa3c6d08 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/kurobox-sources/kurobox-sources-2.4.31.ebuild,v 1.1 2006/01/22 02:25:11 nerdboy Exp $
#OKV=original kernel version, KV=patched kernel version.  They can be the same.

ETYPE="sources"
inherit kernel-2 eutils

#TIMESTAMP="20050527"
#[ "${PR}" == "r0" ] && KV=${PV/_/-}-openmosix || KV=${PV/_/-}-openmosix-${PR}
S=${WORKDIR}/linux-${KV}

DESCRIPTION="Full sources for the Linux kernel, including kurobox hardware patches."
SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${PV}.tar.bz2
		 mirror://gentoo/kurobox-${PV}.patch.bz2"
PROVIDE="virtual/linux-sources"
HOMEPAGE="http://www.kernel.org/
		http://www.kurobox.com"
LICENSE="GPL-2"
SLOT="${KV}"
KEYWORDS="-* ~ppc"
IUSE=""

src_unpack() {
	unpack linux-${PV}.tar.bz2
	mv linux-${PV} linux-${KV}
	cd linux-${KV}
	epatch ${DISTDIR}/kurobox-${PV}.patch.bz2 || die "kurobox patch failed."
	unpack_2_4
}

pkg_postinst() {
	echo
	einfo "For documentation about setting up your kurobox - check out"
	einfo "http://www.kurobox.com/online/tiki-index.php?page=Welcome"
	einfo "For a more modular and complete kurobox config - check out"
	einfo "http://dev.gentoo.org/~nerdboy/config-2.4.31-kurobox"
	echo
}