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 |
54 |
--fileorder pkgorder \ |
--fileorder pkgorder \ |
55 |
$(pwd)/cdrom.image/ |
$(pwd)/cdrom.image/ |
56 |
|
|
57 |
rm -f smeserver-$distvers.iso smeserver.iso |
rm -f $disttag-$distvers.iso smeserver.iso |
58 |
|
|
59 |
cd cdrom.image |
cd cdrom.image |
60 |
|
|
74 |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
75 |
-x lost+found \ |
-x lost+found \ |
76 |
-x CVS \ |
-x CVS \ |
77 |
-o "../smeserver-$distvers".iso \ |
-o "../$disttag-$distvers".iso \ |
78 |
. |
. |
79 |
|
|
80 |
cd .. |
cd .. |
81 |
/usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso |
/usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso |
82 |
dd if=/dev/zero bs=2048 count=150 >> smeserver-$distvers.iso |
dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso |
83 |
md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum |
md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum |
84 |
ls -lRt > smeserver-$distvers.iso.ls-lRt |
ls -lRt > $disttag-$distvers.iso.ls-lRt |
85 |
zsyncmake smeserver-$distvers.iso |
zsyncmake $disttag-$distvers.iso |
86 |
mv smeserver-$distvers.iso smeserver.iso |
mv $disttag-$distvers.iso $disttag.iso |
87 |
ln -sf smeserver.iso smeserver-$distvers.iso |
ln -sf $disttag.iso $disttag-$distvers.iso |
88 |
|
|
89 |
echo "Building SRPMS ISO" |
echo "Building SRPMS ISO" |
90 |
|
|
91 |
|
rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso |
92 |
|
|
93 |
mkisofs $mkisopts \ |
mkisofs $mkisopts \ |
94 |
-V "$distname $distvers SRPMS" \ |
-V "$distname $distvers SRPMS" \ |
95 |
-A "$distname SRPMS created on $today" \ |
-A "$distname SRPMS created on $today" \ |
96 |
-x lost+found \ |
-x lost+found \ |
97 |
-x CVS \ |
-x CVS \ |
98 |
-x cdrom.image \ |
-x cdrom.image \ |
99 |
-o "smeserver-$distvers-SRPMS".iso \ |
-o "$disttag-$distvers-SRPMS".iso \ |
100 |
--graft-points \ |
--graft-points \ |
101 |
./SRPMS=SRPMS \ |
./SRPMS=SRPMS \ |
102 |
GPL=cdrom.image/GPL \ |
GPL=cdrom.image/GPL \ |
104 |
RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \ |
RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \ |
105 |
RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7 |
RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7 |
106 |
|
|
107 |
|
md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum |
108 |
|
zsyncmake $disttag-$distvers-SRPMS.iso |
109 |
|
mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso |
110 |
|
ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso |
111 |
|
|
112 |
# That's it. |
# That's it. |
113 |
|
|