/[gentoo-x86]/sys-kernel/hppa-sources/hppa-sources-2.4.23_p4.ebuild
Gentoo

Contents of /sys-kernel/hppa-sources/hppa-sources-2.4.23_p4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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.23_p4.ebuild,v 1.2 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 PATCH_SET="`seq 1 ${PATCH_LEVEL}`"
15 PATCH_COUNT="$(( `echo ${PATCH_SET} | wc -w` - 1 ))"
16
17
18 DESCRIPTION="Full sources for the Linux kernel with patch for hppa"
19 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
20 `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`"
21 HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org"
22 KEYWORDS="hppa -*"
23 SLOT="${KV}"
24
25
26 src_unpack() {
27 unpack linux-${OKV}.tar.bz2
28 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV}
29 cd ${S}
30
31 einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`
32 zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1
33
34 for i in `seq 1 ${PATCH_COUNT}`
35 do
36 a=`echo ${PATCH_SET} | awk "{ print \\\$$i }"`
37 b=`echo ${PATCH_SET} | awk "{ print \\\$$((i + 1)) }"`
38 einfo Applying patch from ${OKV}-pa${a} to ${OKV}-pa${b}
39 zcat ${DISTDIR}/patch-${OKV}-pa${a}-pa${b}.gz | patch -sp 1
40 done
41
42 kernel_universal_unpack
43 }

  ViewVC Help
Powered by ViewVC 1.1.20