summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin V. Arkhipov <voxus@gentoo.org>2004-07-10 12:39:02 +0000
committerKonstantin V. Arkhipov <voxus@gentoo.org>2004-07-10 12:39:02 +0000
commit24954204f22ca2d52dee20bd5dbcacbb367cf487 (patch)
treeb612bd915dd91f0dbcb1d90cdf1265390625f21b /sys-kernel/openmosix-sources
parent+ #56479 fix (diff)
downloadgentoo-2-24954204f22ca2d52dee20bd5dbcacbb367cf487.tar.gz
gentoo-2-24954204f22ca2d52dee20bd5dbcacbb367cf487.tar.bz2
gentoo-2-24954204f22ca2d52dee20bd5dbcacbb367cf487.zip
+ bumped ebuilds
Diffstat (limited to 'sys-kernel/openmosix-sources')
-rw-r--r--sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.22-r112
-rw-r--r--sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.24-r12
-rw-r--r--sys-kernel/openmosix-sources/openmosix-sources-2.4.22-r11.ebuild58
-rw-r--r--sys-kernel/openmosix-sources/openmosix-sources-2.4.24-r1.ebuild53
4 files changed, 115 insertions, 0 deletions
diff --git a/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.22-r11 b/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.22-r11
new file mode 100644
index 000000000000..c3ed47ac2831
--- /dev/null
+++ b/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.22-r11
@@ -0,0 +1,2 @@
+MD5 75dc85149b06ac9432106b8941eb9f7b linux-2.4.22.tar.bz2 29528612
+MD5 68224fe261b75cdfd84882df2ae6bb12 openMosix-2.4.22-3.bz2 249126
diff --git a/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.24-r1 b/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.24-r1
new file mode 100644
index 000000000000..791a2ee3378a
--- /dev/null
+++ b/sys-kernel/openmosix-sources/files/digest-openmosix-sources-2.4.24-r1
@@ -0,0 +1,2 @@
+MD5 1e055c42921b2396a559d84df4c3d9aa linux-2.4.24.tar.bz2 29837818
+MD5 7327583ac763d8833499274caa7e4771 openMosix-2.4.24-om1.bz2 234126
diff --git a/sys-kernel/openmosix-sources/openmosix-sources-2.4.22-r11.ebuild b/sys-kernel/openmosix-sources/openmosix-sources-2.4.22-r11.ebuild
new file mode 100644
index 000000000000..69d91c9fc26f
--- /dev/null
+++ b/sys-kernel/openmosix-sources/openmosix-sources-2.4.22-r11.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2004 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.4.22-r11.ebuild,v 1.1 2004/07/10 12:39:01 voxus Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel eutils
+
+OKV="2.4.22"
+[ "${PR}" == "r0" ] && KV=${PV/_/-}-openmosix || KV=${PV/_/-}-openmosix-${PR}
+EXTRAVERSION="`echo ${KV}|sed -e 's:[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\):\1:'`"
+BASE="`echo ${KV}|sed -e s:${EXTRAVERSION}::`"
+S=${WORKDIR}/linux-${KV}
+
+# What's in this kernel?
+
+# INCLUDED:
+# 2.4.22, plus:
+# 2.4.22 openmosix-2.4.22-3
+# various security patches
+
+DESCRIPTION="Full sources for the Gentoo openMosix Linux kernel"
+SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
+mirror://sourceforge/openmosix/openMosix-2.4.22-3.bz2"
+PROVIDE="virtual/linux-sources"
+HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://www.openmosix.org/"
+LICENSE="GPL-2"
+SLOT="${KV}"
+KEYWORDS="-* x86"
+
+src_unpack() {
+ unpack linux-${OKV}.tar.bz2
+ mv linux-${OKV} linux-${KV} || die
+ cd linux-${KV}
+ bzcat ${DISTDIR}/openMosix-2.4.22-3.bz2|patch -p1 || die "-openmosix patch failed"
+
+ epatch ${FILESDIR}/do_brk_fix.patch || die "Failed to patch do_brk() vulnerability!"
+ epatch ${FILESDIR}/${PN}-2.4.20.munmap.patch || die "Failed to apply munmap patch!"
+ epatch ${FILESDIR}/${P}.rtc_fix.patch || die "Failed to patch RTC vulnerabilities!"
+ epatch ${FILESDIR}/${P}.signal_fix.patch || die "Failed to patch signal.c vulnerability."
+ epatch ${FILESDIR}/${P}.pipe_bug.patch || die "Failed to patch pipe-bug."
+
+ for n in `ls ${FILESDIR}/${PN}.CAN-*`;
+ do
+ epatch $n || die "Failed to add " $n;
+ done
+
+ kernel_universal_unpack
+}
+
+pkg_postinst() {
+ [ "$ETYPE" = "headers" ] && return
+ if [ ! -e ${ROOT}usr/src/linux ]
+ then
+ rm -f ${ROOT}usr/src/linux
+ ln -sf linux-${KV} ${ROOT}/usr/src/linux
+ fi
+}
diff --git a/sys-kernel/openmosix-sources/openmosix-sources-2.4.24-r1.ebuild b/sys-kernel/openmosix-sources/openmosix-sources-2.4.24-r1.ebuild
new file mode 100644
index 000000000000..171f130df3db
--- /dev/null
+++ b/sys-kernel/openmosix-sources/openmosix-sources-2.4.24-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2004 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.4.24-r1.ebuild,v 1.1 2004/07/10 12:39:02 voxus Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel eutils
+
+OKV="2.4.24"
+OMV="om1"
+[ "${PR}" == "r0" ] && KV=${PV/_/-}-openmosix || KV=${PV/_/-}-openmosix-${PR}
+EXTRAVERSION="`echo ${KV}|sed -e 's:[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\):\1:'`"
+BASE="`echo ${KV}|sed -e s:${EXTRAVERSION}::`"
+S=${WORKDIR}/linux-${KV}
+
+# What's in this kernel?
+
+# INCLUDED:
+# 2.4.22, plus:
+# 2.4.22 openmosix-2.4.22-3
+# various security patches
+
+DESCRIPTION="Full sources for the Gentoo openMosix Linux kernel"
+SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2
+mirror://sourceforge/openmosix/openMosix-${OKV}-${OMV}.bz2"
+PROVIDE="virtual/linux-sources"
+HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://www.openmosix.org/"
+LICENSE="GPL-2"
+SLOT="${KV}"
+KEYWORDS="-* ~x86"
+
+src_unpack() {
+ unpack linux-${OKV}.tar.bz2
+ mv linux-${OKV} linux-${KV} || die
+ cd linux-${KV}
+ bzcat ${DISTDIR}/openMosix-${OKV}-${OMV}.bz2|patch -p1 || die "-openmosix patch failed"
+
+ for n in `ls ${FILESDIR}/${PN}.CAN-* | egrep -v \(CAN-2004-0394\|CAN-2004-0427\)`;
+ do
+ epatch $n || die "Failed to add " $n;
+ done
+
+ kernel_universal_unpack
+}
+
+pkg_postinst() {
+ [ "$ETYPE" = "headers" ] && return
+ if [ ! -e ${ROOT}usr/src/linux ]
+ then
+ rm -f ${ROOT}usr/src/linux
+ ln -sf linux-${KV} ${ROOT}/usr/src/linux
+ fi
+}