wok view syslinux/receipt @ rev 25680

updated gnu-efi (3.0.14 -> 3.0.17)
author Hans-G?nter Theisgen
date Mon Mar 18 18:46:02 2024 +0100 (8 months ago)
parents 73f36875e5a7
children
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="https://www.syslinux.org/"
11 WGET_URL="https://www.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
12 LINLD="$WOK/linld/source"
13 CONFIG_FILES="/boot/isolinux/*.cfg /boot/isolinux/kbd"
14 TAGS="boot"
16 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \
17 util-linux-uuid-dev advancecomp libidn linld e2fsprogs"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 compile_rules()
27 {
28 rm -f $src/core/isolinux.bin
29 for i in loadhigh iso9660 readconfig keytab-lilo lzop-1.03-gcc6 fixes-4.07 ; do
30 patch -p 0 < $stuff/extra/$i.u
31 done
32 cp $stuff/tools/isohybrid.sh .
33 cp $stuff/extra/md5sum.c com32/modules
34 grep -q md5sum.c32 com32/modules/Makefile ||
35 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
36 export LDFLAGS=''
37 make clean
38 echo "make all: LDFLAGS=$LDFLAGS"
39 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d'
40 echo "make core: LDFLAGS=$LDFLAGS"
41 make -C core
42 make -C com32
43 ./isohybrid.sh --build
44 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
45 mkdir kbd
46 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
47 [ "$(basename $(dirname $i))" = 'include' ] && continue
48 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz \
49 $i > kbd/$(basename $i .map.gz)
50 done
51 cp -a $stuff/iso2exe .
52 cp $LINLD/*/linld.com iso2exe
53 make -C iso2exe
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/boot/isolinux $install/usr/share/doc
60 cp $stuff/iso2exe/README* $install/usr/share/doc
61 cp $stuff/iso2exe/init.custom $install/usr/share/doc
62 cp $src/doc/*.txt $install/usr/share/doc
63 cp -a $src/man $install/usr/share/
64 cp $LINLD/*/linld.com $fs/boot
65 cp -a $src/core/isolinux.bin $fs/boot/isolinux
66 lzma e $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
67 lzma e $src/com32/menu/vesamenu.c32 $fs/boot/isolinux/vesamenu.c32
68 # $stuff/isolinux.msg is the old way the have a splash image.
69 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
70 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
71 rm -f $fs/boot/isolinux/display.txt
72 while read label kbd loc tz menu; do
73 for i in ${kbd/,/ }; do
74 [ -e $src/kbd/$i ] || continue
75 map=" $i"
76 [ ${kbd#*,} = $i ] && map=
77 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
78 LABEL $label
79 MENU LABEL $menu
80 com32 c32box.c32
81 append kbd$map lang=$loc kmap=${kbd#*,} tz=$tz
83 EOT
84 break
85 done
86 done <<EOT
87 br br-abnt2 pt_BR America/Sao_Paulo Brasil (abnt2)
88 br_ac\ brac us-acentos pt_BR America/Sao_Paulo Brasil (us-acentos)
89 cz cz-lat2 cs_CZ Europe/Prague Cesky
90 dk dk-latin1 da_DK Europe/Copenhagen Dansk
91 de de-latin1 de_DE Europe/Berlin Deutsch
92 de_CH\ deCH de_CH-latin1 de_CH Europe/Zurich Deutsch Schweiz
93 gr gr el_GR Europe/Helsinki Ellinika
94 en uk en_GB Europe/London English UK
95 us us en_US America/New_York English US
96 us_ac\ usac us-acentos en_US America/New_York English US (acentos)
97 us_dv\ usdv dvorak en_US America/New_York English US (dvorak)
98 us_dl\ usdl dvorak-l en_US America/New_York English US (dvorak-l)
99 us_dr\ usdr dvorak-r en_US America/New_York English US (dvorak-r)
100 es es es_ES Europe/Madrid Espanol
101 fr fr-latin1 fr_FR Europe/Paris Francais
102 be be-latin1 fr_BE Europe/Brussels Francais Belgique
103 ca cf fr_CA America/Montreal Francais Canada
104 fr_CH\ frCH fr_CH-latin1 fr_CH Europe/Zurich Francais Suisse
105 cr hr,croat hr_HR Europe/Zagreb Hrvatski
106 is is-latin1 is_IS Atlantic/Reykjavik Islenska
107 it it it_IT Europe/Rome Italiano
108 hu hu hu_HU Europe/Budapest Magyar
109 nl nl2 nl_NL Europe/Amsterdam Nederlands
110 no\ nb no-latin1 nb_NO Europe/Oslo Norsk (Bokmal)
111 nn no-latin1 nn_NO Europe/Oslo Norsk (Nynorsk)
112 po pl2 pl_PL Europe/Warsaw Polski
113 pt pt-latin1 pt_PT Europe/Lisbon Portugues
114 ru ru ru_RU Europe/Moscow Russian
115 ru_uk\ uk ru ru_UA Europe/Kiev Russian Ukraine
116 sl slovene sl_SI Europe/Ljubljana Slovenski
117 fi fi fi_FI Europe/Helsinki Suomi
118 se se-lat6 sv_SE Europe/Stockholm Svenska
119 tr trq tr_TR Asia/Istanbul Turkce
120 EOT
121 #grpc gr-pc el_GR Europe/Helsinki Ellinika
122 #jp jp106 ja_JP Asia/Tokyo Japanese
123 #sg sg-latin1 de_CH Europe/Zurich Deutsch Schweiz (sg)
124 #tr5 tr_q-latin5 tr_TR Asia/Istanbul Turkce (latin5)
126 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
127 LABEL exit
128 MENU LABEL Back to main menu
130 MENU EXIT
131 MENU END
132 EOT
133 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
134 chown root.root $src/kbd/*
135 touch -t 197001010100.00 $src/kbd/*
136 for kbd in $(cd $src/kbd; ls | tee ../kbd.l); do
137 msg="Invalid file kbd/$kbd"
138 [ -s $src/kbd/$kbd ] && msg="Unused: file kbd/$kbd" &&
139 grep -q "[= ]$kbd " $fs/boot/isolinux/i18n.cfg && continue
140 sed -i "/^$kbd\$/d" $src/kbd.l
141 echo "$msg"
142 done
143 ( cd $src/kbd; cpio -o -H newc < ../kbd.l ) > $fs/boot/isolinux/kbd
144 lzma e $fs/boot/isolinux/kbd $fs/boot/isolinux/kbd.lzma # Add size field
145 mv -f $fs/boot/isolinux/kbd.lzma $fs/boot/isolinux/kbd
146 chown root.root $fs/boot/isolinux/*
147 }
149 # Pre and post install commands for Tazpkg.
150 post_install()
151 {
152 sed -i "/MENU TITLE SliTaz GNU\/Linux/ s| [0-9X]*$| $(date +%Y%m%d)|" \
153 "$1/boot/isolinux/isolinux.cfg"
154 sed '/MENU TITLE/!d;s/MENU TITLE //' > $1/etc/slitaz-version \
155 < "$1/boot/isolinux/isolinux.cfg"
156 for i in $(grep -ls boot/isolinux/isolinux.cfg \
157 $1/var/lib/tazpkg/installed/*/receipt); do
158 pkg=$(basename ${i%/*})
159 [ "$pkg" != "$PACKAGE" ] &&
160 echo "Reconfigue $pkg ..." &&
161 root=/ chroot "$1/" tazpkg reconfigure $pkg
162 done
163 }