Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/caitsith-patch/specs/build-debian_wheezy.sh

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

revision 258 by kumaneko, Mon Mar 26 10:49:51 2018 UTC revision 260 by kumaneko, Sun Apr 1 05:23:22 2018 UTC
# Line 23  sed -i -e 's/maintainer := .*/maintainer Line 23  sed -i -e 's/maintainer := .*/maintainer
23  # Download CaitSith patches.  # Download CaitSith patches.
24  mkdir -p ~/rpmbuild/SOURCES/  mkdir -p ~/rpmbuild/SOURCES/
25  cd ~/rpmbuild/SOURCES/ || die "Can't chdir to ~/rpmbuild/SOURCES/ ."  cd ~/rpmbuild/SOURCES/ || die "Can't chdir to ~/rpmbuild/SOURCES/ ."
26  if [ ! -r caitsith-patch-0.2-20180212.tar.gz ]  if [ ! -r caitsith-patch-0.2-20180401.tar.gz ]
27  then  then
28      apt-get -y install wget      apt-get -y install wget
29      wget -O caitsith-patch-0.2-20180212.tar.gz 'http://osdn.jp/frs/redir.php?f=/caitsith/66537/caitsith-patch-0.2-20180212.tar.gz' || die "Can't download patch."      wget -O caitsith-patch-0.2-20180401.tar.gz 'http://osdn.jp/frs/redir.php?f=/caitsith/66537/caitsith-patch-0.2-20180401.tar.gz' || die "Can't download patch."
30  fi  fi
31    
32  # Install kernel source packages.  # Install kernel source packages.
# Line 38  tar -jxf linux-source-3.2.tar.bz2 Line 38  tar -jxf linux-source-3.2.tar.bz2
38    
39  # Apply patches and create kernel config.  # Apply patches and create kernel config.
40  cd linux-source-3.2 || die "Can't chdir to linux-source-3.2/ ."  cd linux-source-3.2 || die "Can't chdir to linux-source-3.2/ ."
41  tar -zxf ~/rpmbuild/SOURCES/caitsith-patch-0.2-20180212.tar.gz || die "Can't extract patch."  tar -zxf ~/rpmbuild/SOURCES/caitsith-patch-0.2-20180401.tar.gz || die "Can't extract patch."
42  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
43  patch -p1 < patches/ccs-patch-3.2-debian-wheezy.diff || die "Can't apply patch."  patch -p1 < patches/ccs-patch-3.2-debian-wheezy.diff || die "Can't apply patch."
44  cat /boot/config-3.2.0-$ABI_VERSION-$ORIGINAL_FLAVOUR config.caitsith > .config || die "Can't create config."  cat /boot/config-3.2.0-$ABI_VERSION-$ORIGINAL_FLAVOUR config.caitsith > .config || die "Can't create config."

Legend:
Removed from v.258  
changed lines
  Added in v.260

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