wok-4.x view syslinux/receipt @ rev 12471

Mass Rebuild of base packages
author Stanislas Leduc <shann@slitaz.org>
date Thu Nov 10 11:11:46 2022 +0000 (18 months ago)
parents d423bfd548e3
children
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 WGET_URL="http://mirror.slitaz.org/sources/packages-4.0/s/$TARBALL"
12 BUILD_DEPENDS="kbd-base perl nasm"
13 DEPENDS="gpxe"
14 CONFIG_FILES="/boot/isolinux"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 compile_rules()
18 {
19 cd $src
20 cp $stuff/tools/isohybrid.sh .
21 cp $stuff/tools/keytab-lilo.pl .
22 cp $stuff/extra/ifmem.c com32/modules
23 cp $stuff/extra/md5sum.c com32/modules
24 grep -q ifmem.c32 com32/modules/Makefile ||
25 sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32 md5sum.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/com32/modules/md5sum.c32 $fs/boot/isolinux
44 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
45 cp -a $src/modules/poweroff.com $fs/boot/isolinux
46 # $stuff/isolinux.msg is the old way the have a splash image.
47 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
48 while read cfg kbd loc ; do
49 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \
50 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \
51 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \
52 < $fs/boot/isolinux/default.cfg > $fs/boot/isolinux/$cfg.cfg
53 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd
54 cat >> $fs/boot/isolinux/common.cfg <<EOT
55 label $cfg
56 config $cfg.cfg
57 EOT
58 done <<EOT
59 be be-latin1 fr_FR
60 br br-abnt2 pt_PT
61 ca cf fr_FR
62 de de-latin1 de_DE
63 de_CH de_CH-latin1 de_DE
64 en uk C
65 es es es_ES
66 fi fi-latin1 fi
67 fr fr-latin1 fr_FR
68 fr_CH fr_CH-latin1 fr_FR
69 hu hu hu
70 it it it_IT
71 jp jp106 jp_JP
72 pt pt-latin1 pt_PT
73 ru ru ru_RU
74 us us C
75 EOT
76 chown root.root $fs/boot/isolinux/*
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.cfg
83 }