17 |
rpm -ivh kernel-2.6.23.17-88.fc7.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.23.17-88.fc7.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.8-20090824.tar.gz ] |
if [ ! -r ccs-patch-1.7.0-20090903.tar.gz ] |
21 |
then |
then |
22 |
wget http://osdn.dl.sourceforge.jp/tomoyo/30297/ccs-patch-1.6.8-20090824.tar.gz || die "Can't download patch." |
wget http://osdn.dl.sourceforge.jp/tomoyo/43375/ccs-patch-1.7.0-20090903.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 |
# by setting the define to ".local" or ".bz123456" |
# by setting the define to ".local" or ".bz123456" |
33 |
# |
# |
34 |
-#% define buildid .local |
-#% define buildid .local |
35 |
+%define buildid _tomoyo_1.6.8p1 |
+%define buildid _tomoyo_1.7.0 |
36 |
|
|
37 |
# fedora_build defines which build revision of this kernel version we're |
# fedora_build defines which build revision of this kernel version we're |
38 |
# building. Rather than incrementing forever, as with the prior versioning |
# building. Rather than incrementing forever, as with the prior versioning |
62 |
# END OF PATCH APPLICATIONS |
# END OF PATCH APPLICATIONS |
63 |
|
|
64 |
+# TOMOYO Linux |
+# TOMOYO Linux |
65 |
+tar -zxf %_sourcedir/ccs-patch-1.6.8-20090824.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.7.0-20090903.tar.gz |
66 |
+# sed -i -e 's:EXTRAVERSION =.*:EXTRAVERSION = .17-88.fc7:' -- Makefile |
+# sed -i -e 's:EXTRAVERSION =.*:EXTRAVERSION = .17-88.fc7:' -- Makefile |
67 |
+patch -sp1 < patches/ccs-patch-2.6.23-fedora-7.diff |
+patch -sp1 < patches/ccs-patch-2.6.23-fedora-7.diff |
68 |
+ |
+ |