wok-6.x annotate efivar/receipt @ rev 23929
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:25:24 2020 +0000 (2020-09-01) |
parents | abf3670a5a52 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
Hans-G?nter@23928 | 1 # SliTaz package receipt. |
Hans-G?nter@23928 | 2 |
Hans-G?nter@23928 | 3 PACKAGE="efivar" |
Hans-G?nter@23928 | 4 VERSION="37" |
Hans-G?nter@23928 | 5 CATEGORY="system-tools" |
Hans-G?nter@23928 | 6 SHORT_DESC="Manage UEFI variables." |
Hans-G?nter@23928 | 7 MAINTAINER="developer@slitaz.org" |
Hans-G?nter@23928 | 8 LICENSE="LGPLv2.1" |
Hans-G?nter@23928 | 9 WEB_SITE="https://github.com/rhboot/efivar" |
Hans-G?nter@23928 | 10 |
Hans-G?nter@23928 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23928 | 12 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL" |
Hans-G?nter@23928 | 13 |
Hans-G?nter@23928 | 14 DEPENDS="gcc83-lib-base" |
Hans-G?nter@23928 | 15 BUILD_DEPENDS="gcc83 icu-dev" |
Hans-G?nter@23928 | 16 |
Hans-G?nter@23928 | 17 # Rules to configure and make the package. |
Hans-G?nter@23928 | 18 compile_rules() |
Hans-G?nter@23928 | 19 { |
Hans-G?nter@23928 | 20 export CC_FOR_BUILD=gcc-83 |
Hans-G?nter@23928 | 21 export COMPILER=gcc-83 |
Hans-G?nter@23928 | 22 export CFLAGS="$CFLAGS -I/usr/include/unicode" |
Hans-G?nter@23928 | 23 |
Hans-G?nter@23928 | 24 # replace char16_t by wchar_t: |
Hans-G?nter@23928 | 25 sed -i 's|char16_t|wchar_t|g' src/export.c |
Hans-G?nter@23928 | 26 |
Hans-G?nter@23928 | 27 make libdir=/usr/lib && |
Hans-G?nter@23928 | 28 make libdir=/usr/lib DESTDIR=$DESTDIR install |
Hans-G?nter@23928 | 29 } |
Hans-G?nter@23928 | 30 |
Hans-G?nter@23928 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@23928 | 32 genpkg_rules() |
Hans-G?nter@23928 | 33 { |
Hans-G?nter@23928 | 34 mkdir -p $fs/usr/lib |
Hans-G?nter@23928 | 35 |
Hans-G?nter@23928 | 36 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23928 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@23928 | 38 } |
Hans-G?nter@23928 | 39 |
Hans-G?nter@23928 | 40 post_install() |
Hans-G?nter@23928 | 41 { |
Hans-G?nter@23928 | 42 # if SliTaz was booted by EFI, mount evivarfs now |
Hans-G?nter@23928 | 43 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars |
Hans-G?nter@23928 | 44 # and after reboot: |
Hans-G?nter@23928 | 45 # insert mount into /etc/init.d/local.sh |
pascal@23929 | 46 grep -qs efivarfs $1/etc/init.d/local.sh || |
Hans-G?nter@23928 | 47 echo -e "#inserted by post_install of evifar up to END-efivar: |
Hans-G?nter@23928 | 48 [ -d /sys/firmware/efi/efivars ] && mount -t efivarfs none /sys/firmware/efi/efivars |
Hans-G?nter@23928 | 49 #END-efivar" >>$1/etc/init.d/local.sh |
Hans-G?nter@23928 | 50 } |