From acaba20aff46235ac12670409a6f3d59ae41e117 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Mon, 13 Jul 2020 18:46:21 +0000 Subject: [PATCH] app-crypt/argon2: Add new package Signed-off-by: Sayan Chowdhury --- .../portage-stable/app-crypt/argon2/Manifest | 1 + .../app-crypt/argon2/argon2-20190702.ebuild | 59 +++++++++++++++++++ .../app-crypt/argon2/metadata.xml | 23 ++++++++ 3 files changed, 83 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/app-crypt/argon2/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/app-crypt/argon2/argon2-20190702.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/app-crypt/argon2/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/argon2/Manifest b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/Manifest new file mode 100644 index 0000000000..cc1597d7b3 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/Manifest @@ -0,0 +1 @@ +DIST argon2-20190702.tar.gz 1505307 BLAKE2B fa9c3dde7b39c8d797a3d6b52992ebfe35f5eba1c7d7b3aa02c440edc36a3f5186cacee2e39e27ed7c6356dc1970dac0e8198d6f2065eb63ff77f9dfb2937cf8 SHA512 0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/argon2/argon2-20190702.ebuild b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/argon2-20190702.ebuild new file mode 100644 index 0000000000..335c2b5023 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/argon2-20190702.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Password hashing software that won the Password Hashing Competition (PHC)" +HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2" +SRC_URI="https://github.com/P-H-C/phc-winner-argon2/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 CC0-1.0 )" +SLOT="0/1" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86" +IUSE="static-libs" + +S="${WORKDIR}/phc-winner-${P}" + +DOCS=( argon2-specs.pdf CHANGELOG.md README.md ) + +src_prepare() { + default + if ! use static-libs; then + sed -i -e '/LIBRARIES =/s/\$(LIB_ST)//' Makefile || die + fi + sed -i \ + -e 's/-O3//' \ + -e 's/-g//' \ + -e 's/-march=\$(OPTTARGET)//' \ + Makefile || die + + tc-export CC + + OPTTEST=1 + if use amd64 || use x86; then + $(tc-getCPP) ${CFLAGS} ${CPPFLAGS} -P - <<-EOF &>/dev/null && OPTTEST=0 + #if defined(__SSE2__) + true + #else + #error false + #endif + EOF + fi +} + +src_compile() { + emake OPTTEST="${OPTTEST}" LIBRARY_REL="$(get_libdir)" \ + ARGON2_VERSION="0~${PV}" +} + +src_test() { + emake OPTTEST="${OPTTEST}" test +} + +src_install() { + emake OPTTEST="${OPTTEST}" DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install + einstalldocs + doman man/argon2.1 +} diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/argon2/metadata.xml b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/metadata.xml new file mode 100644 index 0000000000..c70ce0ef68 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/argon2/metadata.xml @@ -0,0 +1,23 @@ + + + + + simon-bgo@slevermann.de + Simon Levermann + + + proxy-maint@gentoo.org + Proxy Maintainers + + + mgorny@gentoo.org + Michał Górny + + Argon2 is a password hashing tool and library that won the Password Hashing Competition (PHC) + + Reflect ABI of libargon2.so. + + + P-H-C/phc-winner-argon2 + +