17 |
rpm -ivh kernel-2.6.9-67.0.22.EL.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.9-67.0.22.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.3-20080715.tar.gz ] |
if [ ! -r ccs-patch-1.6.4-20080903.tar.gz ] |
21 |
then |
then |
22 |
wget http://osdn.dl.sourceforge.jp/tomoyo/30297/ccs-patch-1.6.3-20080715.tar.gz || die "Can't download patch." |
wget http://osdn.dl.sourceforge.jp/tomoyo/30297/ccs-patch-1.6.4-20080903.tar.gz || die "Can't download patch." |
|
fi |
|
|
|
|
|
if [ ! -r ccs-patch-2.6.9-centos-4.6.diff ] |
|
|
then |
|
|
wget -O ccs-patch-2.6.9-centos-4.6.diff 'http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/trunk/1.6.x/ccs-patch/patches/ccs-patch-2.6.9-centos-4.6.diff?root=tomoyo' || 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 67.0.22.EL |
-%define release 67.0.22.EL |
35 |
+%define release 67.0.22.EL_tomoyo_1.6.3 |
+%define release 67.0.22.EL_tomoyo_1.6.4 |
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.3-20080715.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.6.4-20080903.tar.gz |
64 |
+sed -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -67.0.22.EL/" -- Makefile |
+# sed -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -67.0.22.EL/" -- Makefile |
65 |
+patch -sp1 < %_sourcedir/ccs-patch-2.6.9-centos-4.6.diff |
+patch -sp1 < patches/ccs-patch-2.6.9-centos-4.6.diff |
66 |
+ |
+ |
67 |
cp %{SOURCE10} Documentation/ |
cp %{SOURCE10} Documentation/ |
68 |
|
|