18 |
rpm -ivh kernel-2.6.32-71.29.1.el6.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.32-71.29.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 ccs-patch-1.8.2-20110707.tar.gz ] |
if [ ! -r ccs-patch-1.8.2-20110713.tar.gz ] |
22 |
then |
then |
23 |
wget -O ccs-patch-1.8.2-20110707.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.2-20110707.tar.gz' || die "Can't download patch." |
wget -O ccs-patch-1.8.2-20110713.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.2-20110713.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/ ." |
33 |
# by setting the define to ".local" or ".bz123456" |
# by setting the define to ".local" or ".bz123456" |
34 |
# |
# |
35 |
-# % define buildid .local |
-# % define buildid .local |
36 |
+%define buildid _tomoyo_1.8.2p1 |
+%define buildid _tomoyo_1.8.2p2 |
37 |
|
|
38 |
%define rhel 1 |
%define rhel 1 |
39 |
%if %{rhel} |
%if %{rhel} |
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.2-20110707.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.8.2-20110713.tar.gz |
73 |
+patch -sp1 < patches/ccs-patch-2.6.32-centos-6.0.diff |
+patch -sp1 < patches/ccs-patch-2.6.32-centos-6.0.diff |
74 |
+ |
+ |
75 |
# Any further pre-build tree manipulations happen here. |
# Any further pre-build tree manipulations happen here. |