wok annotate syslinux/receipt @ rev 1686
Up get-flash-plugin (1.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 09 23:12:30 2008 +0000 (2008-11-09) |
parents | 29ef7d8a4729 |
children | e53e6a788414 |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@986 | 4 VERSION="3.70" |
pankso@4 | 5 CATEGORY="base-system" |
pankso@4 | 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)" |
pankso@4 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@4 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@4 | 9 WEB_SITE="http://syslinux.zytor.com/" |
pankso@4 | 10 WGET_URL="ftp://ftp.kernel.org/pub/linux/boot/syslinux/$TARBALL" |
pascal@786 | 11 BUILD_DEPENDS="kbd-base perl" |
pascal@956 | 12 DEPENDS="gpxe" |
pascal@786 | 13 |
pascal@786 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 15 compile_rules() |
pascal@786 | 16 { |
pascal@829 | 17 cd $src |
pascal@986 | 18 cp ../stuff/tools/keytab-lilo.pl . |
pascal@829 | 19 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 20 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 21 j=$(basename $i) |
pascal@829 | 22 j=${j%.map.gz}.kbd |
pascal@829 | 23 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 24 done |
pascal@1055 | 25 # patch kbdmap bug |
pascal@1055 | 26 while read file offset; do |
pascal@1055 | 27 cp $file $file.unpatched |
pascal@1055 | 28 echo "Fix $file 3.70 kbdmap bug..." |
pascal@1055 | 29 echo "0 90 90 |.." | hexdump -R | \ |
pascal@1055 | 30 dd conv=notrunc bs=1 count=2 seek=$(($offset)) of=$file 2> /dev/null |
pascal@1055 | 31 echo "0 90 90 |.." | hexdump -R | \ |
pascal@1055 | 32 dd conv=notrunc bs=1 count=2 seek=$(($offset+5)) of=$file 2> /dev/null |
pascal@1055 | 33 done <<EOT |
pascal@1055 | 34 core/isolinux.bin 0x1AC9 |
pascal@1055 | 35 core/pxelinux.0 0x2098 |
pascal@1055 | 36 linux/syslinux-nomtools 0x3CDD |
pascal@1055 | 37 extlinux/extlinux 0x4BBA |
pascal@1055 | 38 EOT |
pascal@786 | 39 } |
pankso@4 | 40 |
pankso@4 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 42 genpkg_rules() |
pankso@4 | 43 { |
pankso@4 | 44 mkdir -p $fs/boot/isolinux |
pascal@986 | 45 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@786 | 46 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux |
pascal@227 | 47 cp stuff/* $fs/boot/isolinux |
pascal@830 | 48 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null |
pascal@829 | 49 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do |
pascal@829 | 50 cfg=$(basename ${cfg%.cfg:*}) |
pascal@829 | 51 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg |
pascal@829 | 52 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd |
pascal@786 | 53 done |
pascal@283 | 54 chown root.root $fs/boot/isolinux/* |
pascal@986 | 55 # Package all syslinux pkgs |
pascal@986 | 56 for i in $(cd $WOK; ls -d syslinux-*) |
pascal@986 | 57 do |
pascal@986 | 58 tazwok genpkg $i |
pascal@986 | 59 done |
pankso@4 | 60 } |
pascal@786 | 61 |