# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 DESCRIPTION="UEFI shim loader" HOMEPAGE="https://github.com/mjg59/shim" SRC_URI="http://www.codon.org.uk/~mjg59/${PN}/${PN}-${PV}.tar.bz2" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="dev-libs/nss[utils] >=dev-libs/openssl-0.9.8 sys-boot/pesign sys-boot/gnu-efi" DEPEND="${RDEPEND}" src_prepare(){ sed -i -e 's|/usr/lib64/gnuefi|/usr/lib64|' Makefile || die } src_install() { dodir /usr/lib64/efi/ 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 }