wok view syslinux/receipt @ rev 3967

Add fusedav
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 26 18:12:58 2009 +0200 (2009-08-26)
parents 76990ad741d7
children 81f59d88ba12
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.82"
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 cp ../stuff/extra/ifmem.c com32/modules
21 grep -q ifmem.c32 com32/modules/Makefile ||
22 sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32/' com32/modules/Makefile
23 make -C com32
24 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
25 [ "$(basename $(dirname $i))" = "include" ] && continue
26 j=$(basename $i)
27 j=${j%.map.gz}.kbd
28 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
29 done
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/isolinux
36 cp -a $src/core/isolinux.bin $fs/boot/isolinux
37 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
38 cp -a $src/com32/modules/ifmem.c32 $fs/boot/isolinux
39 cp -a $src/modules/poweroff.com $fs/boot/isolinux
40 cp stuff/*.* $fs/boot/isolinux
41 while read cfg kbd loc ; do
42 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \
43 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \
44 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \
45 < $fs/boot/isolinux/isolinux.cfg > $fs/boot/isolinux/$cfg.cfg
46 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd
47 cat >> $fs/boot/isolinux/common.cfg <<EOT
48 label $cfg
49 config $cfg.cfg
50 EOT
51 done <<EOT
52 be be-latin1 fr_FR
53 br br-abnt2 pt_PT
54 ca cf fr_FR
55 de de-latin1 de_DE
56 de_CH de_CH-latin1 de_DE
57 en uk C
58 es es es_ES
59 fi fi-latin1 fi
60 fr fr-latin1 fr_FR
61 fr_CH fr_CH-latin1 fr_FR
62 hu hu hu
63 it it it_IT
64 jp jp106 jp_JP
65 pt pt-latin1 pt_PT
66 ru ru ru_RU
67 us us C
68 EOT
69 chown root.root $fs/boot/isolinux/*
70 # Package all syslinux pkgs
71 for i in $(cd $WOK; ls -d syslinux-*)
72 do
73 tazwok genpkg $i
74 done
75 }
77 # Pre and post install commands for Tazpkg.
78 post_install()
79 {
80 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg
81 }