diff options
-rw-r--r-- | sys-kernel/hppa-sources/Manifest | 5 | ||||
-rw-r--r-- | sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p3 | 2 | ||||
-rw-r--r-- | sys-kernel/hppa-sources/hppa-sources-2.4.23_p3.ebuild | 40 |
3 files changed, 44 insertions, 3 deletions
diff --git a/sys-kernel/hppa-sources/Manifest b/sys-kernel/hppa-sources/Manifest index fc5fb018974c..564878892221 100644 --- a/sys-kernel/hppa-sources/Manifest +++ b/sys-kernel/hppa-sources/Manifest @@ -1,4 +1,4 @@ -MD5 0b7337e7b401e0cce8715948e6c62bf2 ChangeLog 3268 +MD5 da01778b1193cff73e9da2c336b87af2 ChangeLog 3405 MD5 622e8f2314c5ea410458584582a6e460 hppa-sources-2.4.21_p10.ebuild 1561 MD5 0758f55b4873a3d88c96aec4952597c3 hppa-sources-2.4.21_p13.ebuild 1879 MD5 38b00b5d2411620e0ff2f40b7f3228f6 hppa-sources-2.4.21_p2.ebuild 1082 @@ -11,7 +11,7 @@ MD5 0dcef44b9c80df51b0a94704894f781e hppa-sources-2.4.22_p13.ebuild 1874 MD5 6bdfbb6a1254cd02158e028a37e5266f hppa-sources-2.4.22_p17.ebuild 1874 MD5 a7731136711ea8a34621c9247dece54a hppa-sources-2.4.22_p6.ebuild 1795 MD5 05ed5731534e9423f109cbec1aa7e993 metadata.xml 223 -MD5 e81f47783fa86d0306aac629dd0aeeeb hppa-sources-2.4.23_p3.ebuild 1450 +MD5 bfc9b73a4ece8d9d9f6e2e8793402a8b hppa-sources-2.4.23_p3.ebuild 1451 MD5 7743c939ccccf0343faed987e12b489b files/digest-hppa-sources-2.4.21_p10 334 MD5 306724fa77532e2a73c383f7322f1e56 files/digest-hppa-sources-2.4.21_p13 469 MD5 605092c92ae7fda21bdfc646556c3318 files/digest-hppa-sources-2.4.21_p2 136 @@ -24,5 +24,4 @@ MD5 362841daf5331eb63eb1227293fa32ad files/digest-hppa-sources-2.4.22_p13 598 MD5 21f8036e5fe4337145680f7b384774ab files/digest-hppa-sources-2.4.22_p17 870 MD5 f7f4dbcc460742f63598a1986ff400c1 files/digest-hppa-sources-2.4.22_p6 262 MD5 e637c6fa41097ea2c4693d0766f2e1c5 files/do_brk_fix.patch 242 -MD5 2f6c705cb689234966dc767d464ba49e files/digest-hppa-sources-2.4.23_p2 131 MD5 545a151ce959e51f4e528e3c27cb5a65 files/digest-hppa-sources-2.4.23_p3 131 diff --git a/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p3 b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p3 new file mode 100644 index 000000000000..3ca018c85324 --- /dev/null +++ b/sys-kernel/hppa-sources/files/digest-hppa-sources-2.4.23_p3 @@ -0,0 +1,2 @@ +MD5 642af5ab5e1fc63685fde85e9ae601e4 linux-2.4.23.tar.bz2 29832609 +MD5 5b2115aa25f0fff7b20bdae77694f544 patch-2.4.23-pa3.gz 715860 diff --git a/sys-kernel/hppa-sources/hppa-sources-2.4.23_p3.ebuild b/sys-kernel/hppa-sources/hppa-sources-2.4.23_p3.ebuild new file mode 100644 index 000000000000..2d7f6b743469 --- /dev/null +++ b/sys-kernel/hppa-sources/hppa-sources-2.4.23_p3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.4.23_p3.ebuild,v 1.1 2003/12/05 20:43:59 gmsoft Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +ETYPE="sources" +inherit kernel +OKV="${PV/_p*/}" +PATCH_LEVEL="${PV/${OKV}_p/}" +KV=${OKV}-pa${PATCH_LEVEL} +EXTRAVERSION="-pa${PATCH_LEVEL}" +S=${WORKDIR}/linux-${KV} + +DESCRIPTION="Full sources for the Linux kernel with patch for hppa" +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_LEVEL}.gz" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org" +KEYWORDS="hppa -*" +SLOT="${KV}" + + +src_unpack() { + unpack linux-${OKV}.tar.bz2 + mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV} + cd ${S} + + einfo Applying ${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'` + zcat ${DISTDIR}/patch-${OKV}-pa`echo ${PATCH_SET} | awk '{ print $1 }'`.gz | patch -sp 1 + + for i in `seq 1 ${PATCH_COUNT}` + do + a=`echo ${PATCH_SET} | awk "{ print \\\$$i }"` + b=`echo ${PATCH_SET} | awk "{ print \\\$$((i + 1)) }"` + einfo Applying patch from ${OKV}-pa${a} to ${OKV}-pa${b} + zcat ${DISTDIR}/patch-${OKV}-pa${a}-pa${b}.gz | patch -sp 1 + done + + epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln" + + kernel_universal_unpack +} |