Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/1.6.x/ccs-patch/specs/build-ubuntu_8.04.sh

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

revision 1277 by kumaneko, Mon Jun 9 01:25:19 2008 UTC revision 1278 by kumaneko, Tue Jun 10 00:59:43 2008 UTC
# Line 8  die () { Line 8  die () {
8      exit 1      exit 1
9  }  }
10    
11    VERSION=`uname -r | cut -d - -f 1,2`
12    
13  # Download TOMOYO Linux patches.  # Download TOMOYO Linux patches.
14  mkdir -p /usr/src/rpm/SOURCES/  mkdir -p /usr/src/rpm/SOURCES/
15  cd /usr/src/rpm/SOURCES/ || die "Can't chdir to /usr/src/rpm/SOURCES/ ."  cd /usr/src/rpm/SOURCES/ || die "Can't chdir to /usr/src/rpm/SOURCES/ ."
# Line 21  curl 'http://pgp.nic.ad.jp/pks/lookup?op Line 23  curl 'http://pgp.nic.ad.jp/pks/lookup?op
23  curl 'http://pgp.nic.ad.jp/pks/lookup?op=get&search=0x76682A37 ' | gpg --import || die "Can't import PGP key."  curl 'http://pgp.nic.ad.jp/pks/lookup?op=get&search=0x76682A37 ' | gpg --import || die "Can't import PGP key."
24  cd /usr/src/ || die "Can't chdir to /usr/src/ ."  cd /usr/src/ || die "Can't chdir to /usr/src/ ."
25  apt-get install linux-kernel-devel fakeroot build-essential || die "Can't install packages."  apt-get install linux-kernel-devel fakeroot build-essential || die "Can't install packages."
26  apt-get build-dep linux-image-2.6.24-19-generic || die "Can't install packages."  apt-get build-dep linux-image-${VERSION}-generic || die "Can't install packages."
27  apt-get source linux-image-2.6.24-19-generic || die "Can't install kernel source."  apt-get source linux-image-${VERSION}-generic || die "Can't install kernel source."
28  apt-get install linux-headers-2.6.24-19 || die "Can't install packages."  apt-get install linux-headers-${VERSION} || die "Can't install packages."
29  apt-get build-dep linux-ubuntu-modules-2.6.24-19-generic || die "Can't install packages."  apt-get build-dep linux-ubuntu-modules-${VERSION}-generic || die "Can't install packages."
30  apt-get source linux-ubuntu-modules-2.6.24-19-generic || die "Can't install kernel source."  apt-get source linux-ubuntu-modules-${VERSION}-generic || die "Can't install kernel source."
31  apt-get build-dep linux-restricted-modules-2.6.24-19-generic || die "Can't install packages."  apt-get build-dep linux-restricted-modules-${VERSION}-generic || die "Can't install packages."
32  apt-get source linux-restricted-modules-2.6.24-19-generic || die "Can't install kernel source."  apt-get source linux-restricted-modules-${VERSION}-generic || die "Can't install kernel source."
33    
34  # Copy patches and create kernel config.  # Copy patches and create kernel config.
35  cd linux-2.6.24/ || die "Can't chdir to linux-2.6.24/ ."  cd linux-2.6.24/ || die "Can't chdir to linux-2.6.24/ ."
# Line 49  debian/rules custom-binary-ccs || die "F Line 51  debian/rules custom-binary-ccs || die "F
51  cd .. || die "Can't chdir to ../ ."  cd .. || die "Can't chdir to ../ ."
52    
53  # Install header package for compiling additional modules.  # Install header package for compiling additional modules.
54  dpkg -i linux-headers-2.6.24-19-ccs_2.6.24-19.*_i386.deb || die "Can't install packages."  dpkg -i linux-headers-${VERSION}-ccs_${VERSION}.*_i386.deb || die "Can't install packages."
55  cd linux-ubuntu-modules-2.6.24-2.6.24 || die "Can't chdir to linux-ubuntu-modules-2.6.24-2.6.24 ."  cd linux-ubuntu-modules-2.6.24-2.6.24 || die "Can't chdir to linux-ubuntu-modules-2.6.24-2.6.24 ."
56  awk ' BEGIN { flag = 0; print ""; } { if ($1 == "Package:" ) { if (index($0, "-generic") > 0) flag = 1; else flag = 0; }; if (flag) print $0; } ' debian/control.stub | sed -e 's:-generic:-ccs:' > debian/control.stub.ccs || die "Can't create file."  awk ' BEGIN { flag = 0; print ""; } { if ($1 == "Package:" ) { if (index($0, "-generic") > 0) flag = 1; else flag = 0; }; if (flag) print $0; } ' debian/control.stub | sed -e 's:-generic:-ccs:' > debian/control.stub.ccs || die "Can't create file."
57  cat debian/control.stub.ccs >> debian/control.stub || die "Can't edit file."  cat debian/control.stub.ccs >> debian/control.stub || die "Can't edit file."

Legend:
Removed from v.1277  
changed lines
  Added in v.1278

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