wok-current annotate syslinux/receipt @ rev 18640
Up tazpkg(876), cookutils(779); change post_install() in pango, slitaz-boot-scripts, syslinux, tazwikiss
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 30 01:53:13 2015 +0200 (2015-11-30) |
parents | 181af255e428 |
children | c059fdadabdc |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@13546 | 4 VERSION="4.06" |
pankso@4 | 5 CATEGORY="base-system" |
pankso@4 | 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)" |
pankso@4 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14658 | 8 LICENSE="GPL2" |
pascal@11579 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@4 | 10 WEB_SITE="http://syslinux.zytor.com/" |
pascal@17923 | 11 WGET_URL="https://www.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL" |
pascal@17157 | 12 CONFIG_FILES="/boot/isolinux" |
al@18471 | 13 TAGS="boot" |
pascal@17157 | 14 |
pascal@15369 | 15 DEPENDS="ipxe memtest" |
pascal@17923 | 16 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \ |
mojo@18027 | 17 util-linux-uuid-dev advancecomp libidn" |
pascal@786 | 18 |
pascal@786 | 19 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 20 compile_rules() |
pascal@786 | 21 { |
al@18471 | 22 rm -f $src/core/isolinux.bin |
al@18471 | 23 patch -p 0 < $stuff/extra/iso9660.u |
al@18471 | 24 patch -p 0 < $stuff/extra/readconfig.u |
al@18471 | 25 #patch -p 0 < $stuff/extra/fs.u |
al@18471 | 26 cp $stuff/tools/isohybrid.sh . |
al@18471 | 27 cp $stuff/extra/md5sum.c com32/modules |
al@18471 | 28 grep -q md5sum.c32 com32/modules/Makefile || |
al@18471 | 29 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile |
al@18471 | 30 export LDFLAGS='' |
al@18471 | 31 make clean |
al@18471 | 32 echo "make all: LDFLAGS=$LDFLAGS" |
al@18471 | 33 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d' |
al@18471 | 34 echo "make core: LDFLAGS=$LDFLAGS" |
al@18471 | 35 make -C core |
al@18471 | 36 make -C com32 |
al@18471 | 37 ./isohybrid.sh --build |
al@18471 | 38 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd |
al@18471 | 39 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
al@18471 | 40 [ "$(basename $(dirname $i))" == 'include' ] && continue |
al@18471 | 41 j=$(basename $i) |
al@18471 | 42 j=${j%.map.gz}.kbd |
al@18471 | 43 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
al@18471 | 44 done |
al@18471 | 45 cp -a $stuff/iso2exe . |
al@18471 | 46 make -C iso2exe |
pascal@786 | 47 } |
pankso@4 | 48 |
pankso@4 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 50 genpkg_rules() |
pankso@4 | 51 { |
al@18471 | 52 mkdir -p $fs/boot/isolinux |
al@18471 | 53 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
al@18471 | 54 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32 |
al@18471 | 55 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux |
al@18471 | 56 # $stuff/isolinux.msg is the old way the have a splash image. |
al@18471 | 57 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux |
al@18471 | 58 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg |
al@18471 | 59 rm -f $fs/boot/isolinux/display.txt |
al@18471 | 60 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd |
al@18471 | 61 while read label kbd loc menu; do |
al@18471 | 62 for i in ${kbd/,/ }; do |
al@18471 | 63 [ -e $src/$i.kbd ] || continue |
al@18471 | 64 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 65 |
pascal@13287 | 66 # ${kbd/,/.kbd or }.kbd keyboard |
pascal@12287 | 67 LABEL $label |
pascal@12287 | 68 MENU LABEL $menu |
pascal@12287 | 69 com32 c32box.c32 |
pascal@13750 | 70 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,} |
pascal@1721 | 71 EOT |
al@18471 | 72 break |
al@18471 | 73 done |
al@18471 | 74 done <<EOT |
pascal@17909 | 75 br br-abnt2 pt_BR Brasil (abnt2) |
pascal@17909 | 76 br_ac\ brac us-acentos pt_BR Brasil (us-acentos) |
pascal@18089 | 77 cz cz-lat2 cs_CZ Cesky |
pascal@18089 | 78 dk dk-latin1 da_DK Dansk |
pascal@13749 | 79 de de-latin1 de_DE Deutsch |
al@18168 | 80 de_CH\ deCH de_CH-latin1 de_CH Deutsch Schweiz |
pascal@18089 | 81 gr gr el_GR Ellinika |
pascal@13749 | 82 en uk en_GB English UK |
pascal@13749 | 83 us us en_US English US |
pascal@13749 | 84 us_ac\ usac us-acentos en_US English US (acentos) |
pascal@13749 | 85 us_dv\ usdv dvorak en_US English US (dvorak) |
pascal@13749 | 86 us_dl\ usdl dvorak-l en_US English US (dvorak-l) |
pascal@13749 | 87 us_dr\ usdr dvorak-r en_US English US (dvorak-r) |
pascal@13749 | 88 es es es_ES Espanol |
pascal@13749 | 89 fr fr-latin1 fr_FR Francais |
al@18168 | 90 be be-latin1 fr_BE Francais Belgique |
al@18168 | 91 ca cf fr_CA Francais Canada |
al@18168 | 92 fr_CH\ frCH fr_CH-latin1 fr_CH Francais Suisse |
pascal@18089 | 93 cr hr,croat hr_HR Hrvatski |
pascal@18089 | 94 is is-latin1 is_IS Islenska |
pascal@13749 | 95 it it it_IT Italiano |
pascal@18089 | 96 hu hu hu_HU Magyar |
pascal@18089 | 97 nl nl2 nl_NL Nederlands |
pascal@18090 | 98 no\ nb no-latin1 nb_NO Norsk (Bokmal) |
pascal@18090 | 99 nn no-latin1 nn_NO Norsk (Nynorsk) |
pascal@18089 | 100 po pl2 pl_PL Polski |
pascal@13749 | 101 pt pt-latin1 pt_PT Portugues |
pascal@13749 | 102 ru ru ru_RU Russian |
al@18168 | 103 sl slovene sl_SI Slovenski |
pascal@18089 | 104 fi fi fi_FI Suomi |
pascal@18089 | 105 se se-lat6 sv_SE Svenska |
pascal@18089 | 106 tr trq tr_TR Turkce |
pascal@12287 | 107 EOT |
al@18471 | 108 |
al@18471 | 109 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 110 |
pascal@12287 | 111 LABEL exit |
pascal@12287 | 112 MENU LABEL Back to main menu |
pascal@12287 | 113 MENU EXIT |
pascal@12287 | 114 MENU END |
pascal@1721 | 115 EOT |
al@18471 | 116 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg |
al@18471 | 117 for kbd in $(cd $src ; ls *.kbd); do |
al@18471 | 118 [ -s $src/$kbd ] || echo "Invalid file $kbd" |
al@18471 | 119 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue |
al@18471 | 120 echo "Missing: file $kbd" |
al@18471 | 121 done |
al@18471 | 122 chown root.root $fs/boot/isolinux/* |
pankso@4 | 123 } |
pascal@786 | 124 |
pascal@1687 | 125 # Pre and post install commands for Tazpkg. |
pascal@1687 | 126 post_install() |
pascal@1687 | 127 { |
al@18640 | 128 sed -i "/MENU TITLE SliTaz GNU\/Linux/ s| [0-9X]*$| $(date +%Y%m%d)|" \ |
al@18480 | 129 "$1/boot/isolinux/isolinux.cfg" |
pascal@1687 | 130 } |