12 |
|
|
13 |
if [ ! -r kernel-2.6.33.3-85.fc13.src.rpm ] |
if [ ! -r kernel-2.6.33.3-85.fc13.src.rpm ] |
14 |
then |
then |
15 |
wget ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/13/Fedora/source/SRPMS/kernel-2.6.33.3-85.fc13.src.rpm || die "Can't download source package." |
wget https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/13/Everything/source/SRPMS/kernel-2.6.33.3-85.fc13.src.rpm || die "Can't download source package." |
16 |
fi |
fi |
17 |
rpm --checksig kernel-2.6.33.3-85.fc13.src.rpm || die "Can't verify signature." |
rpm --checksig kernel-2.6.33.3-85.fc13.src.rpm || die "Can't verify signature." |
18 |
rpm -ivh kernel-2.6.33.3-85.fc13.src.rpm || die "Can't install source package." |
rpm -ivh kernel-2.6.33.3-85.fc13.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.4-20150505.tar.gz ] |
if [ ! -r ccs-patch-1.8.5-20151111.tar.gz ] |
22 |
then |
then |
23 |
wget -O ccs-patch-1.8.4-20150505.tar.gz 'http://osdn.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.4-20150505.tar.gz' || die "Can't download patch." |
wget -O ccs-patch-1.8.5-20151111.tar.gz 'http://osdn.jp/frs/redir.php?f=/tomoyo/49684/ccs-patch-1.8.5-20151111.tar.gz' || die "Can't download patch." |
24 |
fi |
fi |
25 |
|
|
26 |
if [ ! -r ccs-patch-2.6.33-fedora-13-20110614.diff ] |
if [ ! -r ccs-patch-2.6.33-fedora-13-20110614.diff ] |
38 |
# (Uncomment the '#' and both spaces below to set the buildid.) |
# (Uncomment the '#' and both spaces below to set the buildid.) |
39 |
# |
# |
40 |
-# % define buildid .local |
-# % define buildid .local |
41 |
+%define buildid _tomoyo_1.8.4 |
+%define buildid _tomoyo_1.8.5 |
42 |
################################################################### |
################################################################### |
43 |
|
|
44 |
# buildid can also be specified on the rpmbuild command line |
# buildid can also be specified on the rpmbuild command line |
77 |
# END OF PATCH APPLICATIONS |
# END OF PATCH APPLICATIONS |
78 |
|
|
79 |
+# TOMOYO Linux |
+# TOMOYO Linux |
80 |
+tar -zxf %_sourcedir/ccs-patch-1.8.4-20150505.tar.gz |
+tar -zxf %_sourcedir/ccs-patch-1.8.5-20151111.tar.gz |
81 |
+patch -sp1 < %_sourcedir/ccs-patch-2.6.33-fedora-13-20110614.diff |
+patch -sp1 < %_sourcedir/ccs-patch-2.6.33-fedora-13-20110614.diff |
82 |
+ |
+ |
83 |
%endif |
%endif |