wok-6.x view syslinux/receipt @ rev 12210

syslinux: add md5sum.c32
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 31 14:27:35 2012 +0200 (2012-03-31)
parents 3ae84f4269b5
children af17de69f535
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="4.05"
5 CATEGORY="base-system"
6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://syslinux.zytor.com/"
10 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
11 BUILD_DEPENDS="kbd-base perl nasm"
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/isohybrid.sh .
20 cp $stuff/tools/keytab-lilo.pl .
21 cp $stuff/extra/ifmem.c com32/modules
22 cp $stuff/extra/md5sum.c com32/modules
23 grep -q ifmem.c32 com32/modules/Makefile ||
24 sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32 md5sum.c32/' com32/modules/Makefile
25 make -C com32
26 ./isohybrid.sh --build
27 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
28 [ "$(basename $(dirname $i))" = "include" ] && continue
29 j=$(basename $i)
30 j=${j%.map.gz}.kbd
31 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
32 done
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/boot/isolinux
39 cp -a $src/core/isolinux.bin $fs/boot/isolinux
40 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
41 cp -a $src/com32/modules/ifmem.c32 $fs/boot/isolinux
42 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux
43 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
44 cp -a $src/modules/poweroff.com $fs/boot/isolinux
45 # $stuff/isolinux.msg is the old way the have a splash image.
46 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
47 while read cfg kbd loc ; do
48 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \
49 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \
50 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \
51 < $fs/boot/isolinux/default.cfg > $fs/boot/isolinux/$cfg.cfg
52 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd
53 cat >> $fs/boot/isolinux/common.cfg <<EOT
54 label $cfg
55 config $cfg.cfg
56 EOT
57 done <<EOT
58 be be-latin1 fr_FR
59 br br-abnt2 pt_PT
60 ca cf fr_FR
61 de de-latin1 de_DE
62 de_CH de_CH-latin1 de_DE
63 en uk C
64 es es es_ES
65 fi fi-latin1 fi
66 fr fr-latin1 fr_FR
67 fr_CH fr_CH-latin1 fr_FR
68 hu hu hu
69 it it it_IT
70 jp jp106 jp_JP
71 pt pt-latin1 pt_PT
72 ru ru ru_RU
73 us us C
74 EOT
75 chown root.root $fs/boot/isolinux/*
76 }
78 # Pre and post install commands for Tazpkg.
79 post_install()
80 {
81 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
82 }