wok-6.x view syslinux/receipt @ rev 16941
gnucash: fix typo
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Jul 24 02:22:52 2014 +0000 (2014-07-24) |
parents | 801fc6a118a2 |
children | 63ca4e6217bd |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="4.06"
5 CATEGORY="base-system"
6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://syslinux.zytor.com/"
11 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
12 BUILD_DEPENDS="kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl"
13 DEPENDS="ipxe memtest"
14 CONFIG_FILES="/boot/isolinux"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 compile_rules()
18 {
19 cd $src
20 patch -p 0 < $stuff/extra/iso9660.u
21 patch -p 0 < $stuff/extra/readconfig.u
22 patch -p 0 < $stuff/extra/fs.u
23 cp $stuff/tools/isohybrid.sh .
24 cp $stuff/extra/md5sum.c com32/modules
25 grep -q md5sum.c32 com32/modules/Makefile ||
26 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
27 make -C com32
28 ./isohybrid.sh --build
29 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
30 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
31 [ "$(basename $(dirname $i))" = "include" ] && continue
32 j=$(basename $i)
33 j=${j%.map.gz}.kbd
34 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
35 done
36 cp -a $stuff/iso2exe .
37 make -C iso2exe
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/boot/isolinux
44 cp -a $src/core/isolinux.bin $fs/boot/isolinux
45 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
46 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
47 # $stuff/isolinux.msg is the old way the have a splash image.
48 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
49 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
50 rm -f $fs/boot/isolinux/display.txt
51 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
52 while read label kbd loc menu; do
53 for i in ${kbd/,/ }; do
54 [ -e $src/$i.kbd ] || continue
55 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
57 # ${kbd/,/.kbd or }.kbd keyboard
58 LABEL $label
59 MENU LABEL $menu
60 com32 c32box.c32
61 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,}
62 EOT
63 break
64 done
65 done <<EOT
66 br br-abnt2 pt_BR Brazil (abnt2)
67 br_ac\ brac us-acentos pt_BR Brazil (us-acentos)
68 cz cz-lat2 C Cesky
69 dk dk-latin1 C Dansk
70 de de-latin1 de_DE Deutsch
71 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz
72 sg sg-latin1 de_DE Deutsch Schweiz (sg)
73 nl nl2 C Dutch
74 gr gr C Ellinika
75 en uk en_GB English UK
76 us us en_US English US
77 us_ac\ usac us-acentos en_US English US (acentos)
78 us_dv\ usdv dvorak en_US English US (dvorak)
79 us_dl\ usdl dvorak-l en_US English US (dvorak-l)
80 us_dr\ usdr dvorak-r en_US English US (dvorak-r)
81 es es es_ES Espanol
82 fr fr-latin1 fr_FR Francais
83 be be-latin1 fr_FR Francais Belgique
84 ca cf fr_FR Francais Canada
85 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
86 cr hr,croat C Hvratski
87 is is-latin1 C Islenska
88 it it it_IT Italiano
89 jp jp106 C Japanese
90 hu hu C Magyar
91 no no-latin1 C Norske
92 po pl2 C Polski
93 pt pt-latin1 pt_PT Portugues
94 ru ru ru_RU Russian
95 sl slovene C Slovenski
96 fi fi-latin1 C Suomi
97 se se-lat6 C Svenskt
98 tr trq C Turk
99 tr2 tr_q-latin5 C Turk latin5
100 EOT
101 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
103 LABEL exit
104 MENU LABEL Back to main menu
105 MENU EXIT
106 MENU END
107 EOT
108 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
109 for kbd in $(cd $src ; ls *.kbd); do
110 [ -s $src/$kbd ] || echo "Invalid file $kbd"
111 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
112 echo "Missing: file $kbd"
113 done
114 chown root.root $fs/boot/isolinux/*
115 }
117 # Pre and post install commands for Tazpkg.
118 post_install()
119 {
120 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
121 }