blob: f121a58f72a0660fcceaa4252c7692f1d4f11f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2005 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-r10.ebuild,v 1.6 2005/07/14 18:32:16 voxus Exp $
#OKV=original kernel version, KV=patched kernel version. They can be the same.
ETYPE="sources"
inherit kernel eutils linux-info
OKV="2.4.24"
OMV="2"
[ "${PR}" == "r0" ] && KV=${PV/_/-}-openmosix || KV=${PV/_/-}-openmosix-${PR}
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
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-2.4.23-CAN-2004-0415.patch
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-2.4.26-CAN-2004-0814.patch
mirror://gentoo/linux-2.4.27-nfs3-xdr.patch.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"
IUSE=""
src_unpack() {
unpack linux-${OKV}.tar.bz2
mv linux-${OKV} linux-${KV} || die
cd linux-${KV}
epatch ${DISTDIR}/openMosix-${OKV}-${OMV}.bz2 || die "openMosix patch failed"
epatch ${FILESDIR}/${PN}.CAN-2003-0985.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0001.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0010.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0109.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0177.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0178.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0181.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0495.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0497.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0535.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}.CAN-2004-0685.patch || die "Security patch failed"
epatch ${FILESDIR}/cmdline-proc-fix.patch || die "Security patch failed"
epatch ${FILESDIR}/${PN}-binfmt_elf.patch || die "Security patch failed"
epatch ${DISTDIR}/linux-2.4.23-CAN-2004-0415.patch || die "Failed to add CAN-2004-0415"
epatch ${DISTDIR}/linux-2.4.26-CAN-2004-0814.patch || die "Failed to add CAN-2004-0814"
epatch ${FILESDIR}/${PN}.CAN-2004-0841-fix_ldisc_switch.patch || die "Antipatch failed."
epatch ${DISTDIR}/linux-2.4.27-nfs3-xdr.patch.bz2 || die "Failed to add nfs3-xdk patch"
epatch ${FILESDIR}/${PN}-${PV}-smbfs.patch || die "Failed to add smbfs patch"
epatch ${FILESDIR}/${PN}-af_unix.patch || die "Failed to add af_unix patch"
kernel_universal_unpack
}
pkg_postinst() {
einfo
ewarn "openmosix-sources <2.4.28 is obsoleted due to security reasons"
ewarn "and will be dropped from tree soon"
ewarn "please, take a look at >=openmosix-sources-2.4.28"
einfo
echo
einfo
ewarn "using this obsoleted and unsupported sources you are always"
ewarn "under high security risc."
einfo
[ "$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
}
|