wok-current view syslinux/receipt @ rev 17999

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