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