summaryrefslogtreecommitdiff
blob: 2b86c5840450c9dcfe95c54801d32dd00b4248fd (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
57
58
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/openmosix-sources/openmosix-sources-2.6.12.577.ebuild,v 1.1 2005/08/03 14:04:39 voxus Exp $

ETYPE="sources"

# stripping oM's revision
inherit versionator eutils

OMR="$(get_version_component_range 4 ${PV})"
OKV="$(get_version_component_range 1-3 ${OKV})"
EXTRAVERSION="-openmosix-r${OMR}"

inherit kernel-2

detect_version
detect_arch

KV_FULL=${OKV}-openmosix-r${OMR}

# version of gentoo patchset
GPV="12-11"
GPV_SRC="mirror://gentoo/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.base.tar.bz2
	mirror://gentoo/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.extras.tar.bz2"

KEYWORDS="~amd64 ~x86"

HOMEPAGE="http://openmosix.snarc.org/"

UNIPATCH_LIST="${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.base.tar.bz2
			${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.extras.tar.bz2
			${DISTDIR}/patch-${OKV}-om-r${OMR}.bz2"

UNIPATCH_STRICTORDER="genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.base.tar.bz2
			${DISTDIR}/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}.extras.tar.bz2
			${DISTDIR}/patch-${OKV}-om-r${OMR}.bz2"

UNIPATCH_DOCS="${WORKDIR}/patches/genpatches-${KV_MAJOR}.${KV_MINOR}.${GPV}/0000_README"

OM_SRC="http://openmosix.snarc.org/files/releases/2.6/patch-${OKV}-om-r${OMR}.bz2"

DESCRIPTION="Full sources for the Gentoo openMosix Linux kernel ${KV_MAJOR}.${KV_MINOR} kernel tree"
SRC_URI="${KERNEL_URI} ${GPV_SRC} ${ARCH_URI} ${OM_SRC}"

src_unpack() {
	kernel-2_src_unpack

	epatch ${FILESDIR}/${PN}-extraversion.patch
}

pkg_postinst() {
	postinst_sources

	echo

	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}