wok-6.x view syslinux/receipt @ rev 18281
mate-control-center: update deps and force glib compile schemas
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Mon Aug 10 09:59:01 2015 -0300 (2015-08-10) |
parents | 0c26c70238ec |
children | 78c5e0c52eb6 |
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 libidn"
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 cs_CZ Cesky
77 dk dk-latin1 da_DK Dansk
78 de de-latin1 de_DE Deutsch
79 de_CH\ deCH de_CH-latin1 de_CH Deutsch Schweiz
80 sg sg-latin1 de_CH Deutsch Schweiz (sg)
81 gr gr el_GR Ellinika
82 en uk en_GB English UK
83 us us en_US English US
84 us_ac\ usac us-acentos en_US English US (acentos)
85 us_dv\ usdv dvorak en_US English US (dvorak)
86 us_dl\ usdl dvorak-l en_US English US (dvorak-l)
87 us_dr\ usdr dvorak-r en_US English US (dvorak-r)
88 es es es_ES Espanol
89 fr fr-latin1 fr_FR Francais
90 be be-latin1 fr_BE Francais Belgique
91 ca cf fr_CA Francais Canada
92 fr_CH\ frCH fr_CH-latin1 fr_CH Francais Suisse
93 cr hr,croat hr_HR Hrvatski
94 is is-latin1 is_IS Islenska
95 it it it_IT Italiano
96 jp jp106 ja_JP Japanese
97 hu hu hu_HU Magyar
98 nl nl2 nl_NL Nederlands
99 no\ nb no-latin1 nb_NO Norsk (Bokmal)
100 nn no-latin1 nn_NO Norsk (Nynorsk)
101 po pl2 pl_PL Polski
102 pt pt-latin1 pt_PT Portugues
103 ru ru ru_RU Russian
104 sl slovene sl_SI Slovenski
105 fi fi fi_FI Suomi
106 se se-lat6 sv_SE Svenska
107 tr trq tr_TR Turkce
108 tr2 tr_q-latin5 tr_TR Turkce 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 }