/[gentoo-x86]/sys-kernel/hppa-sources/hppa-sources-2.4.21_p10.ebuild
Gentoo

Contents of /sys-kernel/hppa-sources/hppa-sources-2.4.21_p10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu May 13 11:03:13 2004 UTC (13 years, 5 months ago) by gmsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Pruned old sources.

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.21_p10.ebuild,v 1.4 2004/01/06 19:58:13 plasmaroo Exp $
4 #OKV=original kernel version, KV=patched kernel version. They can be the same.
5
6 ETYPE="sources"
7 inherit kernel
8 OKV="${PV/_p*/}"
9 PATCH_LEVEL="${PV/${OKV}_p/}"
10 KV=${OKV}-pa${PATCH_LEVEL}
11 EXTRAVERSION="-pa${PATCH_LEVEL}"
12 S=${WORKDIR}/linux-${KV}
13
14 # What's in this kernel?
15
16 # INCLUDED:
17 # stock 2.4.20 kernel sources
18 # patches for hppa
19
20 PATCH_BASE="7"
21
22 DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
23 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa${PATCH_BASE}.diff.gz
24 `for i in \`seq $((PATCH_BASE + 1)) ${PATCH_LEVEL}\`; do echo http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa$((i - 1))-pa${i}.gz; done`"
25 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
26 KEYWORDS="hppa -*"
27 SLOT="${KV}"
28
29
30 src_unpack() {
31 unpack linux-${OKV}.tar.bz2
32 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
33 cd ${S}
34
35 einfo Applying ${OKV}-pa${PATCH_BASE}
36 zcat ${DISTDIR}/patch-${OKV}-pa${PATCH_BASE}.diff.gz | patch -sp 1
37
38 for i in `seq $((PATCH_BASE + 1)) ${PATCH_LEVEL}`
39 do
40 einfo Applying patch from ${OKV}-pa$((i - 1)) to ${OKV}-pa${i}
41 zcat ${DISTDIR}/patch-${OKV}-pa$((i - 1))-pa${i}.gz | patch -sp 1
42 done
43
44 einfo Please ignore any "Hunk failed" above error if any
45
46 kernel_universal_unpack
47 }

  ViewVC Help
Powered by ViewVC 1.1.20