wok view syslinux/receipt @ rev 6615

Up: imlib2, imlib2-dev to 1.4.4.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Oct 09 20:29:32 2010 +0000 (2010-10-09)
parents 81f59d88ba12
children 7498c29561bc
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="4.02"
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 # Do not try to build the Windows or DOS installers
20 patch -p1 -i ../stuff/syslinux-dont-build-dos-windows-targets.patch
21 cp ../stuff/tools/isohybrid.sh .
22 cp ../stuff/tools/keytab-lilo.pl .
23 cp ../stuff/extra/ifmem.c com32/modules
24 grep -q ifmem.c32 com32/modules/Makefile ||
25 sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32/' com32/modules/Makefile
26 make -C com32
27 ./isohybrid.sh --build
28 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
29 [ "$(basename $(dirname $i))" = "include" ] && continue
30 j=$(basename $i)
31 j=${j%.map.gz}.kbd
32 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
33 done
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/boot/isolinux
40 cp -a $src/core/isolinux.bin $fs/boot/isolinux
41 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
42 cp -a $src/com32/modules/ifmem.c32 $fs/boot/isolinux
43 cp -a $src/modules/poweroff.com $fs/boot/isolinux
44 cp stuff/*.* $fs/boot/isolinux
45 while read cfg kbd loc ; do
46 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \
47 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \
48 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \
49 < $fs/boot/isolinux/isolinux.cfg > $fs/boot/isolinux/$cfg.cfg
50 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd
51 cat >> $fs/boot/isolinux/common.cfg <<EOT
52 label $cfg
53 config $cfg.cfg
54 EOT
55 done <<EOT
56 be be-latin1 fr_FR
57 br br-abnt2 pt_PT
58 ca cf fr_FR
59 de de-latin1 de_DE
60 de_CH de_CH-latin1 de_DE
61 en uk C
62 es es es_ES
63 fi fi-latin1 fi
64 fr fr-latin1 fr_FR
65 fr_CH fr_CH-latin1 fr_FR
66 hu hu hu
67 it it it_IT
68 jp jp106 jp_JP
69 pt pt-latin1 pt_PT
70 ru ru ru_RU
71 us us C
72 EOT
73 chown root.root $fs/boot/isolinux/*
74 # Package all syslinux pkgs
75 for i in $(cd $WOK; ls -d syslinux-*)
76 do
77 tazwok genpkg $i
78 done
79 }
81 # Pre and post install commands for Tazpkg.
82 post_install()
83 {
84 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg
85 }