18 |
rpm -ivh kernel-2.4.21-63.EL.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.4.21-63.EL.src.rpm || die "Can't install source package." |
19 |
|
|
20 |
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/ ." |
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 /tmp/ || die "Can't chdir to /tmp/ ." |
cd /tmp/ || die "Can't chdir to /tmp/ ." |
33 |
# adding some text to the end of the version number. |
# adding some text to the end of the version number. |
34 |
# |
# |
35 |
-%define release 63.EL |
-%define release 63.EL |
36 |
+%define release 63.EL_tomoyo_1.8.3p9 |
+%define release 63.EL_tomoyo_1.8.3p10 |
37 |
%define sublevel 21 |
%define sublevel 21 |
38 |
%define kversion 2.4.%{sublevel} |
%define kversion 2.4.%{sublevel} |
39 |
# /usr/src/%{kslnk} -> /usr/src/linux-%{KVERREL} |
# /usr/src/%{kslnk} -> /usr/src/linux-%{KVERREL} |
51 |
# END OF PATCH APPLICATIONS |
# END OF PATCH APPLICATIONS |
52 |
|
|
53 |
+# TOMOYO Linux |
+# TOMOYO Linux |
54 |
+tar -zxf %_sourcedir/ccs-patch-1.8.3-20150408.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.8.3-20150421.tar.gz |
55 |
+patch -sp1 < patches/ccs-patch-2.4.21-centos-3.diff |
+patch -sp1 < patches/ccs-patch-2.4.21-centos-3.diff |
56 |
+ |
+ |
57 |
cp %{SOURCE10} Documentation/ |
cp %{SOURCE10} Documentation/ |