wok-current view syslinux/receipt @ rev 18678

Add xpenguins (2.2), xpenguins_themes (1.0)
author Lucas Levrel <llevrel@yahoo.fr>
date Mon Dec 07 22:10:28 2015 +0100 (2015-12-07)
parents 181af255e428
children c059fdadabdc
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"
13 TAGS="boot"
15 DEPENDS="ipxe memtest"
16 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \
17 util-linux-uuid-dev advancecomp libidn"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 compile_rules()
21 {
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 Brasil (abnt2)
76 br_ac\ brac us-acentos pt_BR Brasil (us-acentos)
77 cz cz-lat2 cs_CZ Cesky
78 dk dk-latin1 da_DK Dansk
79 de de-latin1 de_DE Deutsch
80 de_CH\ deCH de_CH-latin1 de_CH Deutsch Schweiz
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 hu hu hu_HU Magyar
97 nl nl2 nl_NL Nederlands
98 no\ nb no-latin1 nb_NO Norsk (Bokmal)
99 nn no-latin1 nn_NO Norsk (Nynorsk)
100 po pl2 pl_PL Polski
101 pt pt-latin1 pt_PT Portugues
102 ru ru ru_RU Russian
103 sl slovene sl_SI Slovenski
104 fi fi fi_FI Suomi
105 se se-lat6 sv_SE Svenska
106 tr trq tr_TR Turkce
107 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 "/MENU TITLE SliTaz GNU\/Linux/ s| [0-9X]*$| $(date +%Y%m%d)|" \
129 "$1/boot/isolinux/isolinux.cfg"
130 }