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

Subversion リポジトリの参照

Diff of /trunk/1.8.x/ccs-patch/specs/build-c6-2.6.32.sh

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

revision 6184 by kumaneko, Thu Jan 17 14:04:43 2013 UTC revision 6261 by kumaneko, Sun Jul 7 12:21:30 2013 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  #  #
3  # This is a kernel build script for CentOS 6.3's 2.6.32 kernel.  # This is a kernel build script for CentOS 6's 2.6.32 kernel.
4  #  #
5    
6  die () {  die () {
# 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.32-279.19.1.el6.src.rpm ]  if [ ! -r kernel-2.6.32-358.11.1.el6.src.rpm ]
14  then  then
15      wget http://vault.centos.org/6.3/updates/Source/SPackages/kernel-2.6.32-279.19.1.el6.src.rpm || die "Can't download source package."      wget http://vault.centos.org/6.4/updates/Source/SPackages/kernel-2.6.32-358.11.1.el6.src.rpm || die "Can't download source package."
16  fi  fi
17  rpm --checksig kernel-2.6.32-279.19.1.el6.src.rpm || die "Can't verify signature."  rpm --checksig kernel-2.6.32-358.11.1.el6.src.rpm || die "Can't verify signature."
18  rpm -ivh kernel-2.6.32-279.19.1.el6.src.rpm || die "Can't install source package."  rpm -ivh kernel-2.6.32-358.11.1.el6.src.rpm || die "Can't install source package."
 # sed -i -e 's@--keyring \./kernel\.pub Red@--keyring ./kernel.pub CentOS@' -- /root/rpmbuild/SPECS/kernel.spec || die "Can't update spec file"  
 # sed -i -e 's@Red Hat, Inc\.@CentOS@' -- /root/rpmbuild/SOURCES/genkey || die "Can't patch file"  
19    
20  cd /root/rpmbuild/SOURCES/ || die "Can't chdir to /root/rpmbuild/SOURCES/ ."  cd /root/rpmbuild/SOURCES/ || die "Can't chdir to /root/rpmbuild/SOURCES/ ."
21  if [ ! -r ccs-patch-1.8.3-20130117.tar.gz ]  if [ ! -r ccs-patch-1.8.3-20130707.tar.gz ]
22  then  then
23      wget -O ccs-patch-1.8.3-20130117.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.3-20130117.tar.gz' || die "Can't download patch."      wget -O ccs-patch-1.8.3-20130707.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.3-20130707.tar.gz' || die "Can't download patch."
24  fi  fi
25    
26  cd /root/rpmbuild/SPECS/ || die "Can't chdir to /root/rpmbuild/SPECS/ ."  cd /root/rpmbuild/SPECS/ || die "Can't chdir to /root/rpmbuild/SPECS/ ."
# Line 39  patch << "EOF" || die "Can't patch spec Line 37  patch << "EOF" || die "Can't patch spec
37    
38   %define rhel 1   %define rhel 1
39   %if %{rhel}   %if %{rhel}
40  @@ -451,7 +451,7 @@  @@ -454,7 +454,7 @@
41   # Packages that need to be installed before the kernel is, because the %post   # Packages that need to be installed before the kernel is, because the %post
42   # scripts use them.   # scripts use them.
43   #   #
# Line 48  patch << "EOF" || die "Can't patch spec Line 46  patch << "EOF" || die "Can't patch spec
46   %if %{with_dracut}   %if %{with_dracut}
47   %define initrd_prereq  dracut-kernel >= 002-18.git413bcf78   %define initrd_prereq  dracut-kernel >= 002-18.git413bcf78
48   %else   %else
49  @@ -487,7 +487,7 @@  @@ -490,7 +490,7 @@
50   AutoProv: yes\   AutoProv: yes\
51   %{nil}   %{nil}
52    
# Line 57  patch << "EOF" || die "Can't patch spec Line 55  patch << "EOF" || die "Can't patch spec
55   Group: System Environment/Kernel   Group: System Environment/Kernel
56   License: GPLv2   License: GPLv2
57   URL: http://www.kernel.org/   URL: http://www.kernel.org/
58  @@ -755,7 +755,7 @@  @@ -778,7 +778,7 @@
59   Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\   Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
60   AutoReqProv: no\   AutoReqProv: no\
61   Requires(pre): /usr/bin/find\   Requires(pre): /usr/bin/find\
# Line 66  patch << "EOF" || die "Can't patch spec Line 64  patch << "EOF" || die "Can't patch spec
64   This package provides kernel headers and makefiles sufficient to build modules\   This package provides kernel headers and makefiles sufficient to build modules\
65   against the %{?2:%{2} }kernel package.\   against the %{?2:%{2} }kernel package.\
66   %{nil}   %{nil}
67  @@ -921,6 +921,10 @@  @@ -944,6 +944,10 @@
68    
69   ApplyOptionalPatch linux-kernel-test.patch   ApplyOptionalPatch linux-kernel-test.patch
70    
71  +# TOMOYO Linux  +# TOMOYO Linux
72  +tar -zxf %_sourcedir/ccs-patch-1.8.3-20130117.tar.gz  +tar -zxf %_sourcedir/ccs-patch-1.8.3-20130707.tar.gz
73  +patch -sp1 < patches/ccs-patch-2.6.32-centos-6.3.diff  +patch -sp1 < patches/ccs-patch-2.6.32-centos-6.diff
74  +  +
75   # Any further pre-build tree manipulations happen here.   # Any further pre-build tree manipulations happen here.
76    
77   chmod +x scripts/checkpatch.pl   chmod +x scripts/checkpatch.pl
78  @@ -945,6 +949,9 @@  @@ -968,6 +972,9 @@
79   for i in *.config   for i in *.config
80   do   do
81     mv $i .config     mv $i .config

Legend:
Removed from v.6184  
changed lines
  Added in v.6261

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