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 198 by kumaneko, Fri Sep 23 11:57:00 2016 UTC revision 203 by kumaneko, Wed Sep 28 10:22:23 2016 UTC
# Line 17  fi Line 17  fi
17  LANG=C rpm --checksig kernel-2.6.32-642.4.2.el6.src.rpm | grep -F ': rsa sha1 (md5) pgp md5 OK' || die "Can't verify signature."  LANG=C rpm --checksig kernel-2.6.32-642.4.2.el6.src.rpm | grep -F ': rsa sha1 (md5) pgp md5 OK' || die "Can't verify signature."
18  rpm -ivh kernel-2.6.32-642.4.2.el6.src.rpm || die "Can't install source package."  rpm -ivh kernel-2.6.32-642.4.2.el6.src.rpm || die "Can't install source package."
19    
20  cd /root/rpmbuild/SOURCES/ || die "Can't chdir to /root/rpmbuild/SOURCES/ ."  cd ~/rpmbuild/SOURCES/ || die "Can't chdir to ~/rpmbuild/SOURCES/ ."
21  if [ ! -r caitsith-patch-0.1-20160808.tar.gz ]  if [ ! -r caitsith-patch-0.1-20160928.tar.gz ]
22  then  then
23      wget -O caitsith-patch-0.1-20160808.tar.gz 'http://osdn.jp/frs/redir.php?f=/caitsith/55464/caitsith-patch-0.1-20160808.tar.gz' || die "Can't download patch."      wget -O caitsith-patch-0.1-20160928.tar.gz 'http://osdn.jp/frs/redir.php?f=/caitsith/55464/caitsith-patch-0.1-20160928.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 ~/rpmbuild/SPECS/ || die "Can't chdir to ~/rpmbuild/SPECS/ ."
27  cp -p kernel.spec cs-kernel.spec || die "Can't copy spec file."  cp -p kernel.spec cs-kernel.spec || die "Can't copy spec file."
28  patch << "EOF" || die "Can't patch spec file."  patch << "EOF" || die "Can't patch spec file."
29  --- cs-kernel.spec  --- cs-kernel.spec
# Line 69  patch << "EOF" || die "Can't patch spec Line 69  patch << "EOF" || die "Can't patch spec
69   ApplyOptionalPatch linux-kernel-test.patch   ApplyOptionalPatch linux-kernel-test.patch
70    
71  +# CaitSith  +# CaitSith
72  +tar -zxf %_sourcedir/caitsith-patch-0.1-20160808.tar.gz  +tar -zxf %_sourcedir/caitsith-patch-0.1-20160928.tar.gz
73  +sed -i -e 's/CCSECURITY/CAITSITH/g' -e 's/ccsecurity/caitsith/g' -e 's/ccs_domain_info/cs_domain_info/g' -e 's/ccs_flags/cs_flags/g' patches/ccs-patch-*.diff  +sed -i -e 's/CCSECURITY/CAITSITH/g' -e 's/ccsecurity/caitsith/g' -e 's/ccs_domain_info/cs_domain_info/g' -e 's/ccs_flags/cs_flags/g' patches/ccs-patch-*.diff
74  +patch -sp1 < patches/ccs-patch-2.6.32-centos-6.diff  +patch -sp1 < patches/ccs-patch-2.6.32-centos-6.diff
75   # Any further pre-build tree manipulations happen here.   # Any further pre-build tree manipulations happen here.
# Line 88  EOF Line 88  EOF
88  echo ""  echo ""
89  echo ""  echo ""
90  echo ""  echo ""
91  echo "Edit /root/rpmbuild/SPECS/cs-kernel.spec if needed, and run"  echo "Edit ~/rpmbuild/SPECS/cs-kernel.spec if needed, and run"
92  echo "rpmbuild -bb /root/rpmbuild/SPECS/cs-kernel.spec"  echo "rpmbuild -bb ~/rpmbuild/SPECS/cs-kernel.spec"
93  echo "to build kernel rpm packages."  echo "to build kernel rpm packages."
94  echo ""  echo ""
95  ARCH=`uname -m`  ARCH=`uname -m`
96  echo "I'll start 'rpmbuild -bb --target $ARCH --with baseonly --without debug --without debuginfo /root/rpmbuild/SPECS/cs-kernel.spec' in 30 seconds. Press Ctrl-C to stop."  echo "I'll start 'rpmbuild -bb --target $ARCH --with baseonly --without debug --without debuginfo ~/rpmbuild/SPECS/cs-kernel.spec' in 30 seconds. Press Ctrl-C to stop."
97  sleep 30  sleep 30
98  exec rpmbuild -bb --target $ARCH --with baseonly --without debug --without debuginfo /root/rpmbuild/SPECS/cs-kernel.spec  exec rpmbuild -bb --target $ARCH --with baseonly --without debug --without debuginfo ~/rpmbuild/SPECS/cs-kernel.spec
99  exit 0  exit 0

Legend:
Removed from v.198  
changed lines
  Added in v.203

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