17 |
rpm -ivh kernel-2.6.9-78.0.13.EL.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.9-78.0.13.EL.src.rpm || die "Can't install source package." |
18 |
|
|
19 |
cd /usr/src/redhat/SOURCES/ || die "Can't chdir to /usr/src/redhat/SOURCES/ ." |
cd /usr/src/redhat/SOURCES/ || die "Can't chdir to /usr/src/redhat/SOURCES/ ." |
20 |
if [ ! -r ccs-patch-1.6.5-20081225.tar.gz ] |
if [ ! -r ccs-patch-1.6.6-20090202.tar.gz ] |
21 |
then |
then |
22 |
wget http://osdn.dl.sourceforge.jp/tomoyo/30297/ccs-patch-1.6.5-20081225.tar.gz || die "Can't download patch." |
wget http://osdn.dl.sourceforge.jp/tomoyo/30297/ccs-patch-1.6.6-20090202.tar.gz || die "Can't download patch." |
23 |
fi |
fi |
24 |
|
|
25 |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
32 |
# adding some text to the end of the version number. |
# adding some text to the end of the version number. |
33 |
# |
# |
34 |
-%define release 78.0.13.EL |
-%define release 78.0.13.EL |
35 |
+%define release 78.0.13.EL_tomoyo_1.6.5 |
+%define release 78.0.13.EL_tomoyo_1.6.6 |
36 |
%define sublevel 9 |
%define sublevel 9 |
37 |
%define kversion 2.6.%{sublevel} |
%define kversion 2.6.%{sublevel} |
38 |
%define rpmversion 2.6.%{sublevel} |
%define rpmversion 2.6.%{sublevel} |
60 |
# END OF PATCH APPLICATIONS |
# END OF PATCH APPLICATIONS |
61 |
|
|
62 |
+# TOMOYO Linux |
+# TOMOYO Linux |
63 |
+tar -zxf %_sourcedir/ccs-patch-1.6.5-20081225.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.6.6-20090202.tar.gz |
64 |
+patch -sp1 < patches/ccs-patch-2.6.9-centos-4.7.diff |
+patch -sp1 < patches/ccs-patch-2.6.9-centos-4.7.diff |
65 |
+ |
+ |
66 |
cp %{SOURCE10} Documentation/ |
cp %{SOURCE10} Documentation/ |