diff options
author | 2019-05-09 12:10:30 -0500 | |
---|---|---|
committer | 2019-05-09 12:11:03 -0500 | |
commit | 4da74a6e48c28eb482c792143e39d50cc933fd9a (patch) | |
tree | fad9ce9cee098413c0e1e7735302dd371b086e1f /app-crypt/efitools/efitools-1.9.2.ebuild | |
parent | app-emulation/buildah: version bump to 1.8.2 (diff) | |
download | gentoo-4da74a6e48c28eb482c792143e39d50cc933fd9a.tar.gz gentoo-4da74a6e48c28eb482c792143e39d50cc933fd9a.tar.bz2 gentoo-4da74a6e48c28eb482c792143e39d50cc933fd9a.zip |
app-crypt/efitools: 1.9.2 bump
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'app-crypt/efitools/efitools-1.9.2.ebuild')
-rw-r--r-- | app-crypt/efitools/efitools-1.9.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-crypt/efitools/efitools-1.9.2.ebuild b/app-crypt/efitools/efitools-1.9.2.ebuild new file mode 100644 index 000000000000..d7fc14afab88 --- /dev/null +++ b/app-crypt/efitools/efitools-1.9.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Tools for manipulating UEFI secure boot platforms" +HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git" +SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="libressl static" + +LIB_DEPEND="!libressl? ( dev-libs/openssl:0=[static-libs(+)] ) + libressl? ( dev-libs/libressl:0=[static-libs(+)] )" + +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) + sys-apps/util-linux" + +DEPEND="${RDEPEND} + app-crypt/sbsigntools + dev-perl/File-Slurp + static? ( ${LIB_DEPEND} ) + sys-apps/help2man + sys-boot/gnu-efi + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/1.7.0-Make.rules.patch" + "${FILESDIR}/${P}-libressl-compatibility.patch" +) + +src_prepare() { + if use static; then + append-ldflags -static + sed -i "s/-lcrypto\b/$($(tc-getPKG_CONFIG) --static --libs libcrypto)/g" \ + Makefile || die + fi + + # Respect users CFLAGS + sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die + + # Respect users LDFLAGS + sed -i -e 's/LDFLAGS/LIBS/g' Make.rules || die + sed -i -e 's/\$(CC)/& $(LDFLAGS)/g' Makefile || die + + # Run 'default', to apply user patches + default +} |