10 |
|
|
11 |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
12 |
|
|
13 |
if [ ! -r kernel-2.6.9-78.0.5.EL.src.rpm ] |
if [ ! -r kernel-2.6.9-78.0.8.EL.src.rpm ] |
14 |
then |
then |
15 |
wget http://ftp.riken.jp/Linux/centos/4.7/updates/SRPMS/kernel-2.6.9-78.0.5.EL.src.rpm || die "Can't download source package." |
wget http://ftp.riken.jp/Linux/centos/4.7/updates/SRPMS/kernel-2.6.9-78.0.8.EL.src.rpm || die "Can't download source package." |
16 |
fi |
fi |
17 |
rpm -ivh kernel-2.6.9-78.0.5.EL.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.9-78.0.8.EL.src.rpm || die "Can't install source package." |
18 |
|
|
19 |
cd /usr/src/redhat/SOURCES/ || die "Can't chdir to /usr/src/redhat/SOURCES/ ." |
cd /usr/src/redhat/SOURCES/ || die "Can't chdir to /usr/src/redhat/SOURCES/ ." |
20 |
if [ ! -r ccs-patch-1.6.5-20081111.tar.gz ] |
if [ ! -r ccs-patch-1.6.5-20081111.tar.gz ] |
25 |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
26 |
cp -p /usr/src/redhat/SPECS/kernel-2.6.spec . || die "Can't copy spec file." |
cp -p /usr/src/redhat/SPECS/kernel-2.6.spec . || die "Can't copy spec file." |
27 |
patch << "EOF" || die "Can't patch spec file." |
patch << "EOF" || die "Can't patch spec file." |
28 |
--- kernel-2.6.spec 2008-10-08 19:32:33.000000000 +0900 |
--- kernel-2.6.spec 2008-11-20 07:11:11.000000000 +0900 |
29 |
+++ kernel-2.6.spec 2008-10-09 09:15:32.000000000 +0900 |
+++ kernel-2.6.spec 2008-11-21 10:31:15.000000000 +0900 |
30 |
@@ -27,7 +27,7 @@ |
@@ -27,7 +27,7 @@ |
31 |
# that the kernel isn't the stock distribution kernel, for example by |
# that the kernel isn't the stock distribution kernel, for example by |
32 |
# adding some text to the end of the version number. |
# adding some text to the end of the version number. |
33 |
# |
# |
34 |
-%define release 78.0.5.EL |
-%define release 78.0.8.EL |
35 |
+%define release 78.0.5.EL_tomoyo_1.6.5 |
+%define release 78.0.8.EL_tomoyo_1.6.5 |
36 |
%define sublevel 9 |
%define sublevel 9 |
37 |
%define kversion 2.6.%{sublevel} |
%define kversion 2.6.%{sublevel} |
38 |
%define rpmversion 2.6.%{sublevel} |
%define rpmversion 2.6.%{sublevel} |
55 |
Group: System Environment/Kernel |
Group: System Environment/Kernel |
56 |
License: GPLv2 |
License: GPLv2 |
57 |
Version: %{rpmversion} |
Version: %{rpmversion} |
58 |
@@ -4578,6 +4581,10 @@ |
@@ -4614,6 +4617,10 @@ |
59 |
|
|
60 |
# END OF PATCH APPLICATIONS |
# END OF PATCH APPLICATIONS |
61 |
|
|
66 |
cp %{SOURCE10} Documentation/ |
cp %{SOURCE10} Documentation/ |
67 |
|
|
68 |
mkdir configs |
mkdir configs |
69 |
@@ -4589,6 +4596,9 @@ |
@@ -4625,6 +4632,9 @@ |
70 |
for i in *.config |
for i in *.config |
71 |
do |
do |
72 |
mv $i .config |
mv $i .config |