Benutzer-Werkzeuge

Webseiten-Werkzeuge


2009_mkisofs

iso bauen

  • 01-rpms.sh
#!/bin/bash
 
rpms=("s4e" "s4e-www" "d4e");
version="2010"
rm packages/SPECS/log
 
for((i=0;i<${#rpms};i++)); do
what=${rpms[$i]};
echo $what
test -d /var/tmp/$what-$version-build && rm -rf /var/tmp/$what-$version-build
#cp -a packages/SPECS.orig/$what.spec packages/SPECS
cd /daten/d4e$version
cd packages/SOURCES
test -d $what-$version.tar.gz && rm $what-$version.tar.gz
tar cfz $what-$version.tar.gz $what-$version
cd $what-$version
#find -L  | cut -d "." -f2- >> ../../SPECS/$what.spec
cd ../../..
test -d packages/RPMS/i586/$what-$version-1.i586.rpm && rm packages/RPMS/i586/$what-$version-1.i586.rpm
cd packages/SPECS
rpmbuild  -bb --quiet --clean --target i586 $what.spec >> log
cd ../..
test -d rpms/$what-$version-1.i586.rpm && rm rpms/$what-$version-1.i586.rpm
cp packages/RPMS/i586/$what-$version-1.i586.rpm rpms
done
 
less packages/SPECS/log | grep Wrote
echo "Building RPM packages successfully."
  • 02-addon.sh
#!/bin/bash
 
version="2010"
 
cd /mnt/d4e$version
rm -rf iso/add-on
mkdir iso/add-on
yast2 add-on-creator create rpm_dir=rpms content=iso/content output_dir=iso/add-on do_not_sign verbose
  • 02-sun.sh
#!/bin/bash
 
yast2 add-on-creator create rpm_dir=sun-rpms content=iso/content output_dir=iso/sun do_not_sign verbose
  • 02-novell.sh
#!/bin/bash
 
yast2 add-on-creator create rpm_dir=novell-rpms content=iso/content output_dir=iso/novell do_not_sign verbose
  • 03-build.sh
#!/bin/bash
 
version="2010"
cd /d4e$version
test -f d4e$version.iso && rm d4e$version.iso
 
cp VERSION iso
date >> iso/VERSION
 
# isolinux (ALT)
#mkisofs -v -V d4e2009 -r -J -l -L -P 'http://d4e.at, support@d4e.at' -p 'd4e Team Weiz' -b boot/i386/loader/isolinux.bin -c boot/i386/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -graft-points -o d4e.iso /daten/d4e2009/iso
 
# grub
mkisofs -v -V d4e2010 -P 'http://d4e.at, support@d4e.at' -p 'd4e Team Weiz' -R -b boot/grub/stage2_eltorito -r -J -l -no-emul-boot -boot-load-size 4 -boot-info-table -o d4e$version.iso iso
 
md5sum d4e$version.iso > MD5SUM
 
#echo -n "Schreibe ISO Image auf Einstein"
#rm /nfs/einstein/srv/www/htdocs/d4e.at/d4e2010/d4e2010.iso
#cp -a d4e2010.iso /nfs/einstein/srv/www/htdocs/d4e.at/d4e2010
#cp -a MD5SUM /nfs/einstein/srv/www/htdocs/d4e.at/d4e2010
#chmod 755 /nfs/einstein/srv/www/htdocs/d4e.at/d4e2010/d4e2010.iso /nfs/einstein/srv/www/htdocs/d4e.at/d4e2010/MD5SUM
#echo "Done."
 
echo -n "Synchronisiere Platten"
sync
echo "Done".
 
#cp d4e2010.iso d4e2010.1.iso
#cp d4e2010.iso d4e2010.2.iso
2009_mkisofs.txt · Zuletzt geändert: 2009/08/12 15:38 (Externe Bearbeitung)