オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/specs/build-c4-2.6.9.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1611 by kumaneko, Sat Sep 20 01:31:15 2008 UTC revision 1671 by kumaneko, Thu Oct 9 00:30:32 2008 UTC
# Line 10  die () { Line 10  die () {
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.1.EL.src.rpm ]  if [ ! -r kernel-2.6.9-78.0.5.EL.src.rpm ]
14  then  then
15      wget http://ftp.riken.jp/Linux/centos/4.7/updates/SRPMS/kernel-2.6.9-78.0.1.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.5.EL.src.rpm || die "Can't download source package."
16  fi  fi
17  rpm -ivh kernel-2.6.9-78.0.1.EL.src.rpm || die "Can't install source package."  rpm -ivh kernel-2.6.9-78.0.5.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.4-20080903.tar.gz ]  if [ ! -r ccs-patch-1.6.4-20080903.tar.gz ]
# Line 30  fi Line 30  fi
30  cd /tmp/ || die "Can't chdir to /tmp/ ."  cd /tmp/ || die "Can't chdir to /tmp/ ."
31  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."
32  patch << "EOF" || die "Can't patch spec file."  patch << "EOF" || die "Can't patch spec file."
33  --- kernel-2.6.spec     2008-08-05 23:29:38.000000000 +0900  --- kernel-2.6.spec     2008-10-08 19:32:33.000000000 +0900
34  +++ kernel-2.6.spec     2008-09-20 10:10:17.000000000 +0900  +++ kernel-2.6.spec     2008-10-09 09:15:32.000000000 +0900
35  @@ -26,7 +26,7 @@  @@ -27,7 +27,7 @@
36   # that the kernel isn't the stock distribution kernel, for example by   # that the kernel isn't the stock distribution kernel, for example by
37   # adding some text to the end of the version number.   # adding some text to the end of the version number.
38   #   #
39  -%define release 78.0.1.EL  -%define release 78.0.5.EL
40  +%define release 78.0.1.EL_tomoyo_1.6.4  +%define release 78.0.5.EL_tomoyo_1.6.4
41   %define sublevel 9   %define sublevel 9
42   %define kversion 2.6.%{sublevel}   %define kversion 2.6.%{sublevel}
43   %define rpmversion 2.6.%{sublevel}   %define rpmversion 2.6.%{sublevel}
44  @@ -139,6 +139,9 @@  @@ -140,6 +140,9 @@
45   # to versions below the minimum   # to versions below the minimum
46   #   #
47    
# Line 51  patch << "EOF" || die "Can't patch spec Line 51  patch << "EOF" || die "Can't patch spec
51   #   #
52   # First the general kernel 2.6 required versions as per   # First the general kernel 2.6 required versions as per
53   # Documentation/Changes   # Documentation/Changes
54  @@ -175,7 +178,7 @@  @@ -176,7 +179,7 @@
55   %define __find_provides /usr/lib/rpm/redhat/find-kmod-provides.sh   %define __find_provides /usr/lib/rpm/redhat/find-kmod-provides.sh
56   %define __find_requires %{nil}   %define __find_requires %{nil}
57    
# Line 60  patch << "EOF" || die "Can't patch spec Line 60  patch << "EOF" || die "Can't patch spec
60   Group: System Environment/Kernel   Group: System Environment/Kernel
61   License: GPLv2   License: GPLv2
62   Version: %{rpmversion}   Version: %{rpmversion}
63  @@ -4567,6 +4570,10 @@  @@ -4578,6 +4581,10 @@
64    
65   # END OF PATCH APPLICATIONS   # END OF PATCH APPLICATIONS
66    
# Line 71  patch << "EOF" || die "Can't patch spec Line 71  patch << "EOF" || die "Can't patch spec
71   cp %{SOURCE10} Documentation/   cp %{SOURCE10} Documentation/
72    
73   mkdir configs   mkdir configs
74  @@ -4578,6 +4585,9 @@  @@ -4589,6 +4596,9 @@
75   for i in *.config   for i in *.config
76   do   do
77          mv $i .config          mv $i .config

Legend:
Removed from v.1611  
changed lines
  Added in v.1671

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26