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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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.22_p10.ebuild,v 1.3 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_SET="3 4 6 7 10"
21 PATCH_COUNT="$(( `echo ${PATCH_SET} | wc -w` - 1 ))"
22
23
24 DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
25 SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz
26 `for i in \`seq 1 ${PATCH_COUNT}\`; do echo http://ftp.parisc-linux.org/cvs/linux-2.4/patch-${OKV}-pa\`echo ${PATCH_SET} | awk \"{ print \\\\\$$i }\"\`-pa\`echo ${PATCH_SET} | awk \"{ print \\\\\$$((i + 1)) }\"\`.gz; done`"
27 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
28 KEYWORDS="hppa -*"
29 SLOT="${KV}"
30
31
32 src_unpack() {
33 unpack linux-${OKV}.tar.bz2
34 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
35 cd ${S}
36
37 einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`
38 zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1
39
40 for i in `seq 1 ${PATCH_COUNT}`
41 do
42 a=`echo ${PATCH_SET} | awk "{ print \\\$$i }"`
43 b=`echo ${PATCH_SET} | awk "{ print \\\$$((i + 1)) }"`
44 einfo Applying patch from ${OKV}-pa${a} to ${OKV}-pa${b}
45 zcat ${DISTDIR}/patch-${OKV}-pa${a}-pa${b}.gz | patch -sp 1
46 done
47
48
49 kernel_universal_unpack
50 }

  ViewVC Help
Powered by ViewVC 1.1.20