18 |
rpm -ivh kernel-2.6.32-504.12.2.el6.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.32-504.12.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 /root/rpmbuild/SOURCES/ || die "Can't chdir to /root/rpmbuild/SOURCES/ ." |
21 |
if [ ! -r ccs-patch-1.8.3-20150408.tar.gz ] |
if [ ! -r ccs-patch-1.8.3-20150421.tar.gz ] |
22 |
then |
then |
23 |
wget -O ccs-patch-1.8.3-20150408.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.3-20150408.tar.gz' || die "Can't download patch." |
wget -O ccs-patch-1.8.3-20150421.tar.gz 'http://sourceforge.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.3-20150421.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.3p9 |
+%define buildid _tomoyo_1.8.3p10 |
37 |
|
|
38 |
%define distro_build 504.12.2 |
%define distro_build 504.12.2 |
39 |
%define signmodules 1 |
%define signmodules 1 |
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.3-20150408.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.8.3-20150421.tar.gz |
73 |
+patch -sp1 < patches/ccs-patch-2.6.32-centos-6.diff |
+patch -sp1 < patches/ccs-patch-2.6.32-centos-6.diff |
74 |
+ |
+ |
75 |
# Any further pre-build tree manipulations happen here. |
# Any further pre-build tree manipulations happen here. |