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