diff --git a/srcpkgs/efibootmgr/patches/efibootmgr_default_to_grub2.patch b/srcpkgs/efibootmgr/patches/efibootmgr_default_to_grub2.patch index c9212a3a563..c143293545f 100644 --- a/srcpkgs/efibootmgr/patches/efibootmgr_default_to_grub2.patch +++ b/srcpkgs/efibootmgr/patches/efibootmgr_default_to_grub2.patch @@ -1,6 +1,6 @@ ---- src/efibootmgr/efibootmgr.c -+++ src/efibootmgr/efibootmgr.c -@@ -985,8 +985,8 @@ usage() +--- src/efibootmgr.c 2016-09-27 23:00:36.000000000 +0200 ++++ src/efibootmgr.c 2017-02-18 03:38:27.121886861 +0100 +@@ -1199,8 +1199,8 @@ printf("\t --ip-port , set local and remote IP ports\n"); printf("\t --ip-origin { {dhcp|static} | { static|stateless|stateful} }\n"); #endif @@ -8,10 +8,10 @@ - printf("\t-L | --label label Boot manager display label (defaults to \"Linux\")\n"); + printf("\t-l | --loader name (defaults to \\EFI\\void\\grubx64.efi)\n"); + printf("\t-L | --label label Boot manager display label (defaults to \"Void Linux (GRUB2)\")\n"); + printf("\t-m | --mirror-below-4G t|f mirror memory below 4GB\n"); + printf("\t-M | --mirror-above-4G X percentage memory to mirror above 4GB\n"); printf("\t-n | --bootnext XXXX set BootNext to XXXX (hex)\n"); - printf("\t-N | --delete-bootnext delete BootNext\n"); - printf("\t-o | --bootorder XXXX,YYYY,ZZZZ,... explicitly set BootOrder (hex)\n"); -@@ -1012,8 +1012,8 @@ set_default_opts() +@@ -1229,8 +1229,8 @@ opts.active = -1; /* Don't set it */ opts.timeout = -1; /* Don't set it */ opts.edd10_devicenum = 0x80; diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template index 7a58baa6b51..843045b994d 100644 --- a/srcpkgs/efibootmgr/template +++ b/srcpkgs/efibootmgr/template @@ -1,24 +1,28 @@ # Template file for 'efibootmgr' pkgname=efibootmgr -version=0.12 -revision=3 +version=14 +revision=1 hostmakedepends="pkg-config" makedepends="libefivar-devel zlib-devel pciutils-devel" short_desc="Tool to modify UEFI Firmware Boot Manager Variables" maintainer="Juan RP " license="GPL-2" homepage="https://github.com/rhinstaller/efibootmgr" -distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/efibootmgr-${version}/efibootmgr-${version}.tar.bz2" -checksum=a66f5850677e86255d93cb1cead04c3c48a823a2b864c579321f2a07f00256e6 +distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/${version}/${pkgname}-${version}.tar.bz2" +checksum=377ec16484414b80afd1b8a586153d7ef55ccf048638080101d49b7c77f37ad8 only_for_archs="i686 i686-musl x86_64 x86_64-musl" conf_files="/etc/default/efibootmgr-kernel-hook" +CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/efivar" + do_build() { make EXTRA_CFLAGS="$CFLAGS" ${makejobs} } do_install() { - vbin src/efibootmgr/efibootmgr - vman src/man/man8/efibootmgr.8 + vbin src/efibootdump + vman src/efibootdump.8 + vbin src/efibootmgr + vman src/efibootmgr.8 } post_install() { vlicense COPYING