Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455354 - sys-boot/shim - UEFI shim loader
Summary: sys-boot/shim - UEFI shim loader
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/mjg59/shim
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-02-03 21:57 UTC by Martin Pluskal
Modified: 2018-09-27 12:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
shim-0.2.ebuild (shim-0.2.ebuild,701 bytes, text/plain)
2013-02-03 21:58 UTC, Martin Pluskal
Details
shim-0.2.ebuild (shim-0.2.ebuild,600 bytes, text/plain)
2013-02-04 21:49 UTC, Martin Pluskal
Details
updated ebuild (shim-0.2.ebuild,691 bytes, text/plain)
2014-02-14 03:37 UTC, Fernando (likewhoa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pluskal 2013-02-03 21:57:58 UTC
shim is a trivial EFI application that, when run, attempts to open and execute another application.

Reproducible: Always
Comment 1 Martin Pluskal 2013-02-03 21:58:24 UTC
Created attachment 337860 [details]
shim-0.2.ebuild
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-04 20:11:33 UTC
>cp -R "${S}/shim.efi" "${D}/usr/lib64/efi/shim.efi" || die
>cp -R "${S}/MokManager.efi.signed" "${D}/usr/lib64/efi/MokManager.efi.signed" || die

You can replace these two by install functions (see http://devmanual.gentoo.org/function-reference/install-functions) which die on their own and include other safeties, those install functions also take two parameters. You can most likely use a combination of insinto and doins; that way, you probably don't need the dodir call. You can also set EAPI=5.

Other than that it looks very good!
Comment 3 Martin Pluskal 2013-02-04 21:49:21 UTC
Created attachment 337948 [details]
shim-0.2.ebuild

Updated (thx TomWij)
Comment 4 Fernando (likewhoa) 2014-02-14 03:37:24 UTC
Created attachment 370380 [details]
updated ebuild

The previous ebuild had a rdepend on sys-boot/pesign but portage has it as app-crypt/pesign so i am guessing it was a typo on the ebuild writer.

Anyways, I took this new ebuild through repoman and also removed netboot support since it's currently not working. see TODO in source.
Comment 5 Pacho Ramos gentoo-dev 2018-09-27 12:43:41 UTC
it was added