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