Contents of /branches/magellan-next/core/kernel26-magellan/kernel26-magellan-2.6.35-r3.smage2
Parent Directory | Revision Log
Revision 6680 -
(show annotations)
(download)
Sat Sep 18 11:06:03 2010 UTC (13 years, 7 months ago) by niro
File size: 4604 byte(s)
Sat Sep 18 11:06:03 2010 UTC (13 years, 7 months ago) by niro
File size: 4604 byte(s)
-added patch to fix CVE-2010-3301
1 | # $Id: kernel26-magellan-2.6.33-r3.smage2 5605 2010-07-12 13:44:55Z niro $ |
2 | |
3 | # standard magellan kernel: |
4 | # using linux-2.6.35.4 |
5 | # using fbcondecor-0.9.6 (http://dev.gentoo.org/~spock/projects/fbcondecor/) |
6 | # using unionfs-2.5.5 (http://www.filesystems.org/project-unionfs.html) |
7 | # using tuxonice-20100815 (suspend2) (http://www.suspend2.net/) |
8 | # -> disabled tuxonice-cluster modules; seems to be broken |
9 | # using reiser4 (http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/) |
10 | # -> using mm-patch from http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/ |
11 | # enabled all options needed to use lxc conatiners (see: http://lxc.teegra.net/) |
12 | # removed deprecated ATA support, only use PATA drivers |
13 | # enabled btrfs filesystem |
14 | # added patch to mount cgroupfs under /sys/fs/cgroup |
15 | # added patch to fix security issue CVE-2010-3301 |
16 | |
17 | # what type are we building (sources or image) ? |
18 | KERNEL_TYPE="image" |
19 | |
20 | # which branch we're using |
21 | BRANCH="magellan" |
22 | |
23 | PNAME="kernel26-${BRANCH}" |
24 | |
25 | # 2.6.x.x subver style |
26 | PSUBVER="" |
27 | |
28 | PVER="2.6.35${PSUBVER}" |
29 | PBUILD="r3" |
30 | |
31 | PCATEGORIE="sys-kernel" |
32 | STATE="unstable" |
33 | |
34 | DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support." |
35 | HOMEPAGE="http://magellan-linux.net" |
36 | |
37 | DEPEND=">= sys-apps/module-init-tools-3.12 |
38 | >= sys-fs/udev-161 |
39 | >= sys-apps/mkinitrd-6.1.0 |
40 | >= sys-apps/initscripts-0.5" |
41 | |
42 | PROVIDE="virtual/kernel |
43 | virtual/alsa-drivers" |
44 | |
45 | SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2" |
46 | SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" |
47 | |
48 | # include global kernel26 functions |
49 | sminclude kernel26 mtools |
50 | |
51 | # --- extra drivers included in this kernel: --- |
52 | # we do not bundle ati-drivers and nvidia-glx drivers anymore |
53 | # use our new module builders! |
54 | # --- eot extra drivers --- |
55 | |
56 | SRC_URI=( |
57 | http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE} |
58 | mirror://kernel26-${BRANCH}/${SRCFILE} |
59 | mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i686 |
60 | mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64 |
61 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0100-2.6.35.1-all-fixes.patch patches-${PVER}-${PBUILD}" |
62 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0101-2.6.35.2-all-fixes.patch patches-${PVER}-${PBUILD}" |
63 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0102-2.6.35.3-all-fixes.patch patches-${PVER}-${PBUILD}" |
64 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0103-2.6.35.4-all-fixes.patch patches-${PVER}-${PBUILD}" |
65 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0150-2.6.35-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}" |
66 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0153-2.6.35.4-unionfs-2.5.5.patch patches-${PVER}-${PBUILD}" |
67 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0154-2.6.35-tuxonice-20100815.patch patches-${PVER}-${PBUILD}" |
68 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0159-2.6.35-reiser4-10.patch patches-${PVER}-${PBUILD}" |
69 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0300-2.6.35-cgroup.patch patches-${PVER}-${PBUILD}" |
70 | "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0301-2.6.35-CVE-2010-3301.patch patches-${PVER}-${PBUILD}" |
71 | ) |
72 | |
73 | UP2PVER="${PVER}.4" |
74 | UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" |
75 | |
76 | src_prepare() |
77 | { |
78 | kernel26_src_prepare || die |
79 | |
80 | # 001-100 - ck patches (deprecated atm) |
81 | # 100-150 - official updates |
82 | mpatch patches-${PVER}-${PBUILD}/0100-2.6.35.1-all-fixes.patch || die |
83 | mpatch patches-${PVER}-${PBUILD}/0101-2.6.35.2-all-fixes.patch || die |
84 | mpatch patches-${PVER}-${PBUILD}/0102-2.6.35.3-all-fixes.patch || die |
85 | mpatch patches-${PVER}-${PBUILD}/0103-2.6.35.4-all-fixes.patch || die |
86 | # 150-300 - magellan patches, driver updates etc |
87 | mpatch patches-${PVER}-${PBUILD}/0150-2.6.35-fbcondecor-0.9.6.patch || die |
88 | mpatch patches-${PVER}-${PBUILD}/0153-2.6.35.4-unionfs-2.5.5.patch || die |
89 | mpatch patches-${PVER}-${PBUILD}/0154-2.6.35-tuxonice-20100815.patch || die |
90 | mpatch patches-${PVER}-${PBUILD}/0159-2.6.35-reiser4-10.patch || die |
91 | # 300-400 - compilations fixes and other |
92 | # mount cgroupfs under /sys/fs/cgroup |
93 | # see: http://cgit.freedesktop.org/systemd/commit/?id=77d5f105bf63330350c7bddacdeda914f945590f |
94 | mpatch patches-${PVER}-${PBUILD}/0300-2.6.35-cgroup.patch || die |
95 | # fixes security issue CVE-2010-3301 |
96 | # see:http://sota.gen.nz/compat2/ |
97 | # upstream commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=c41d68a513c71e35a14f66d71782d27a79a81ea6 |
98 | mpatch patches-${PVER}-${PBUILD}/0301-2.6.35-CVE-2010-3301.patch || die |
99 | } |