27 |
[ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1) |
[ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1) |
28 |
|
|
29 |
distname='SME Server' |
distname='SME Server' |
30 |
|
disttag='smeserver' |
31 |
distvers=$(basename $(pwd)) |
distvers=$(basename $(pwd)) |
32 |
|
|
33 |
[ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda |
[ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda |
34 |
|
|
|
chmod -R a+rX cdrom.image |
|
|
|
|
35 |
for img in product updates |
for img in product updates |
36 |
do |
do |
37 |
/usr/bin/mkcramfs \ |
/usr/bin/mkcramfs \ |
52 |
--fileorder pkgorder \ |
--fileorder pkgorder \ |
53 |
$(pwd)/cdrom.image/ |
$(pwd)/cdrom.image/ |
54 |
|
|
55 |
rm -f smeserver-$distvers.iso smeserver.iso |
rm -f $disttag-$distvers.iso smeserver.iso |
56 |
|
|
57 |
cd cdrom.image |
cd cdrom.image |
58 |
|
|
59 |
yum-arch . |
yum-arch . |
60 |
createrepo . |
createrepo . |
61 |
|
repoview . |
62 |
|
|
63 |
bootimg='isolinux/isolinux.bin' |
bootimg='isolinux/isolinux.bin' |
64 |
bootcat='isolinux/boot.cat' |
bootcat='isolinux/boot.cat' |
73 |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
74 |
-x lost+found \ |
-x lost+found \ |
75 |
-x CVS \ |
-x CVS \ |
76 |
-o "../smeserver-$distvers".iso \ |
-o "../$disttag-$distvers".iso \ |
77 |
. |
. |
78 |
|
|
79 |
cd .. |
cd .. |
80 |
/usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso |
/usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso |
81 |
md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum |
dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso |
82 |
ls -lRt > smeserver-$distvers.iso.ls-lRt |
md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum |
83 |
zsyncmake smeserver-$distvers.iso |
ls -lRt > $disttag-$distvers.iso.ls-lRt |
84 |
mv smeserver-$distvers.iso smeserver.iso |
zsyncmake $disttag-$distvers.iso |
85 |
ln -sf smeserver.iso smeserver-$distvers.iso |
mv $disttag-$distvers.iso $disttag.iso |
86 |
|
ln -sf $disttag.iso $disttag-$distvers.iso |
87 |
|
|
88 |
|
echo "Building SRPMS ISO" |
89 |
|
|
90 |
|
rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso |
91 |
|
|
92 |
|
mkisofs $mkisopts \ |
93 |
|
-V "$distname $distvers SRPMS" \ |
94 |
|
-A "$distname SRPMS created on $today" \ |
95 |
|
-x lost+found \ |
96 |
|
-x CVS \ |
97 |
|
-x cdrom.image \ |
98 |
|
-o "$disttag-$distvers-SRPMS".iso \ |
99 |
|
--graft-points \ |
100 |
|
./SRPMS=SRPMS \ |
101 |
|
GPL=cdrom.image/GPL \ |
102 |
|
RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \ |
103 |
|
RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \ |
104 |
|
RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7 |
105 |
|
|
106 |
|
md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum |
107 |
|
zsyncmake $disttag-$distvers-SRPMS.iso |
108 |
|
mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso |
109 |
|
ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso |
110 |
|
|
111 |
# That's it. |
# That's it. |
112 |
|
|