Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/caitsith-patch/specs/build-c6-2.6.32.sh

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

revision 159 by kumaneko, Tue Jul 21 12:07:15 2015 UTC revision 164 by kumaneko, Tue Jul 28 12:03:36 2015 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.32-504.30.3.el6.src.rpm ]  if [ ! -r kernel-2.6.32-573.1.1.el6.src.rpm ]
14  then  then
15      wget http://vault.centos.org/6.6/updates/Source/SPackages/kernel-2.6.32-504.30.3.el6.src.rpm || die "Can't download source package."      wget http://vault.centos.org/6.7/updates/Source/SPackages/kernel-2.6.32-573.1.1.el6.src.rpm || die "Can't download source package."
16  fi  fi
17  LANG=C rpm --checksig kernel-2.6.32-504.30.3.el6.src.rpm | grep -F ': rsa sha1 (md5) pgp md5 OK' || die "Can't verify signature."  LANG=C rpm --checksig kernel-2.6.32-573.1.1.el6.src.rpm | grep -F ': rsa sha1 (md5) pgp md5 OK' || die "Can't verify signature."
18  rpm -ivh kernel-2.6.32-504.30.3.el6.src.rpm || die "Can't install source package."  rpm -ivh kernel-2.6.32-573.1.1.el6.src.rpm || die "Can't install source package."
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 caitsith-patch-0.1-20150721.tar.gz ]  if [ ! -r caitsith-patch-0.1-20150721.tar.gz ]
# Line 35  patch << "EOF" || die "Can't patch spec Line 35  patch << "EOF" || die "Can't patch spec
35  -# % define buildid .local  -# % define buildid .local
36  +%define buildid _caitsith_0.1  +%define buildid _caitsith_0.1
37    
38   %define distro_build 504.30.3   %define distro_build 573.1.1
39   %define signmodules 1   %define signmodules 1
40  @@ -437,7 +437,7 @@  @@ -437,7 +437,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
# Line 44  patch << "EOF" || die "Can't patch spec Line 44  patch << "EOF" || die "Can't patch spec
44  -%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, kernel-firmware >= %{rpmversion}-%{pkg_release}, grubby >= 7.0.4-1  -%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, kernel-firmware >= %{rpmversion}-%{pkg_release}, grubby >= 7.0.4-1
45  +%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, grubby >= 7.0.4-1  +%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, grubby >= 7.0.4-1
46   %if %{with_dracut}   %if %{with_dracut}
47   %define initrd_prereq  dracut-kernel >= 004-356.el6_6.3   %define initrd_prereq  dracut-kernel >= 004-388.el6
48   %else   %else
49  @@ -473,7 +473,7 @@  @@ -473,7 +473,7 @@
50   AutoProv: yes\   AutoProv: yes\
# Line 55  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  @@ -768,7 +768,7 @@  @@ -767,7 +767,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 64  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  @@ -934,6 +934,10 @@  @@ -933,6 +933,10 @@
68    
69   ApplyOptionalPatch linux-kernel-test.patch   ApplyOptionalPatch linux-kernel-test.patch
70    
# Line 75  patch << "EOF" || die "Can't patch spec Line 75  patch << "EOF" || die "Can't patch spec
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  @@ -958,6 +962,8 @@  @@ -957,6 +961,8 @@
79   for i in *.config   for i in *.config
80   do   do
81     mv $i .config     mv $i .config

Legend:
Removed from v.159  
changed lines
  Added in v.164

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