wok annotate syslinux/receipt @ rev 1687
syslinux: update date in splash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 10 11:09:12 2008 +0000 (2008-11-10) |
parents | 2d568fbc64a2 |
children | 3dd3a53e2d4e |
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@1687 | 13 CONFIG_FILES="/boot/isolinux" |
pascal@786 | 14 |
pascal@786 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 16 compile_rules() |
pascal@786 | 17 { |
pascal@829 | 18 cd $src |
pascal@986 | 19 cp ../stuff/tools/keytab-lilo.pl . |
pascal@829 | 20 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 21 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 22 j=$(basename $i) |
pascal@829 | 23 j=${j%.map.gz}.kbd |
pascal@829 | 24 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 25 done |
pascal@1055 | 26 # patch kbdmap bug |
pascal@1055 | 27 while read file offset; do |
pascal@1055 | 28 cp $file $file.unpatched |
pascal@1055 | 29 echo "Fix $file 3.70 kbdmap bug..." |
pascal@1055 | 30 echo "0 90 90 |.." | hexdump -R | \ |
pascal@1055 | 31 dd conv=notrunc bs=1 count=2 seek=$(($offset)) of=$file 2> /dev/null |
pascal@1055 | 32 echo "0 90 90 |.." | hexdump -R | \ |
pascal@1055 | 33 dd conv=notrunc bs=1 count=2 seek=$(($offset+5)) of=$file 2> /dev/null |
pascal@1055 | 34 done <<EOT |
pascal@1055 | 35 core/isolinux.bin 0x1AC9 |
pascal@1055 | 36 core/pxelinux.0 0x2098 |
pascal@1055 | 37 linux/syslinux-nomtools 0x3CDD |
pascal@1055 | 38 extlinux/extlinux 0x4BBA |
pascal@1055 | 39 EOT |
pascal@786 | 40 } |
pankso@4 | 41 |
pankso@4 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 43 genpkg_rules() |
pankso@4 | 44 { |
pankso@4 | 45 mkdir -p $fs/boot/isolinux |
pascal@986 | 46 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@786 | 47 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux |
pascal@227 | 48 cp stuff/* $fs/boot/isolinux |
pascal@830 | 49 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null |
pascal@829 | 50 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do |
pascal@829 | 51 cfg=$(basename ${cfg%.cfg:*}) |
pascal@829 | 52 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg |
pascal@829 | 53 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd |
pascal@786 | 54 done |
pascal@283 | 55 chown root.root $fs/boot/isolinux/* |
pascal@986 | 56 # Package all syslinux pkgs |
pascal@986 | 57 for i in $(cd $WOK; ls -d syslinux-*) |
pascal@986 | 58 do |
pascal@986 | 59 tazwok genpkg $i |
pascal@986 | 60 done |
pankso@4 | 61 } |
pascal@786 | 62 |
pascal@1687 | 63 # Pre and post install commands for Tazpkg. |
pascal@1687 | 64 post_install() |
pascal@1687 | 65 { |
pascal@1687 | 66 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg |
pascal@1687 | 67 } |