logo

overlay

Personnal gentoo overlay
commit: d098443852ff34fc433772265ac79179dcecf180
parent: a0b121c8fad98446cc931f15f7254bde6e59644f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 26 Nov 2017 18:00:50 +0100

dev-libs/libgcrypt: Cryptonerd mode activated!

Diffstat:

dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild | 10++++++++--
dev-libs/libgcrypt/metadata.xml | 3+++
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" LICENSE="LGPL-2.1 MIT" SLOT="0/20" # subslot = soname major version KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc static-libs" +IUSE="doc static-libs cryptonerd" RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}] abi_x86_32? ( @@ -58,7 +58,13 @@ multilib_src_configure() { $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm") $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm") ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + if use cryptonerd; then + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \ + --enable-ciphers='AES CAMELLIA salsa20 chacha20 cast5' \ + --enable-digests='crc sha256 sha512 sha3 whirlpool blake2 rmd160' + else + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + fi } multilib_src_compile() { diff --git a/dev-libs/libgcrypt/metadata.xml b/dev-libs/libgcrypt/metadata.xml @@ -5,4 +5,7 @@ <email>contact@hacktivis.me</email> <name>Haelwenn (lanodan) Monnier</name> </maintainer> + <use> + <flag name="cryptonerd">Remove/disable broken/weak code/crypto</flag> + </use> </pkgmetadata>