diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-libs/libsodium | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-libs/libsodium')
-rw-r--r-- | dev-libs/libsodium/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/libsodium/files/libsodium-1.0.10-cpuflags.patch | 4 | ||||
-rw-r--r-- | dev-libs/libsodium/libsodium-1.0.18.ebuild | 12 | ||||
-rw-r--r-- | dev-libs/libsodium/libsodium-1.0.18_p20210421.ebuild | 98 |
4 files changed, 114 insertions, 8 deletions
diff --git a/dev-libs/libsodium/Manifest b/dev-libs/libsodium/Manifest index a61acb4955cb..1d13ef40d1af 100644 --- a/dev-libs/libsodium/Manifest +++ b/dev-libs/libsodium/Manifest @@ -1,4 +1,8 @@ -AUX libsodium-1.0.10-cpuflags.patch 1262 BLAKE2B 64c222e8b67fa85968151238bdd397d8babfcacdb857c54c8fe54b148787a111d9246583c312593b8e803c7fb4a21143ef7351ece2d4d2d5d0518f32e05de46a SHA512 eab27424dd5c506b1f371c156f656f4d95189329053c5814d5212f3503f39a02c1583fe8c6ba9bf0f7e6240f8a94ffe448656857e0be174b354f67bae3e1e2fc +AUX libsodium-1.0.10-cpuflags.patch 1232 BLAKE2B 07d8d993af926db81135b6366fc2219b52c82d3e04abe7208bddcc62b4ec9db5dc9480f7c3c40b6d750a4d5465942b49e4d3840189bf92586a93d99f7510e254 SHA512 0559e5073c3238d887fc34a9f9cd78bde6d628e36c8741ff8bdd0e7db5bca4f510e3b0e2b858c0ecb83433b3cb74ad1c957c61d68ae406843f42139af8b382fd DIST libsodium-1.0.18.tar.gz 1919817 BLAKE2B a42d898fe77f232dcbb75728e776b88f006e89f734c4d335e75e01d37b1034cc024df2e89d4350ecbe713d3e4b32c08bec537922c81cc63b0e87ee7fd89b2940 SHA512 17e8638e46d8f6f7d024fe5559eccf2b8baf23e143fadd472a7d29d228b186d86686a5e6920385fe2020729119a5f12f989c3a782afbd05a8db4819bb18666ef -EBUILD libsodium-1.0.18.ebuild 1345 BLAKE2B 20eacf865ae5a6179a986da2a38f5a7bdea2caa28157c5a6968965766e40b8e46c53bf02072c75d33beeb9c4e38d6282714e4e7d8f81c51d49c35b0578250769 SHA512 30e01ab0c8f062506f9e6c241220578804f72fd0039f8fab74bf852b9cde74db24fe7053e53da92d48fc3a1d4a2ae80451c3c347977a3ec59aa0849c072f814a +DIST libsodium-1.0.18.tar.gz.sig 566 BLAKE2B bb892901e2228c93018d79a5c8e70e0ea458513b0fdf99e8f6c015132b618fd0fefbe6a18ed514c20fbe1e56719dd6dd3762bc4bb6348a439146fdaa951090c0 SHA512 ba69d372263e63126d6ce24f67fe85d83f74e558db81391ddcd7eacb6787dcdd5209a149eebca897e9806f295e78f5a8ababa0ab884b85d9a8dd1a54507a8b0c +DIST libsodium-1.0.18_p20210421.tar.gz 1855069 BLAKE2B f9b5843998b0045f97a303589de42b38a7586b4a35571eec9a0b0afd1df101467cb8f82e9a32dbdb9a25058d827a5565ad8d49ad2216d2b6af5b101612a94080 SHA512 ddb77c0608a7e6cacf1923a3d0f5950975511c46d53f6f9c23f80dd99eab84dde2a1292c1e35555f7f1659f25a1b80668516558b83c42effb921fff06c0fb559 +DIST libsodium-1.0.18_p20210421.tar.gz.minisig 311 BLAKE2B 12d00384a2acd9c9ac5cfc2ce984c2254a69be93f9cb891513c2f575fbc0cd2c03c2f323aa4b363f54fd7e1bf6b73887c0919e919142f759f0f7baa8680cdba5 SHA512 80fe3a5d41a5550b310e1fce86eed142288c70bab46c761a21206cd0c441b9355d455df49916b3eca134af60444307baa8c5566f1ea369e79f7326a6fac822bf +EBUILD libsodium-1.0.18.ebuild 1556 BLAKE2B f2f3c2e042a14f76b944219175597afb36440eb93ae5e0ddf155cc219ea7fc554ce97b7c727ba147c9532d6999fca04eb8c68cfa446bf709be4f3966ef724d48 SHA512 7a036b36d982e96af60b5635629ae4bec2dea216e30b69d792e1bbbaabd77177d5d5e51a9eb5ecf5730948006f1ed23bc3be253662f7678a9d77af59c4308d8a +EBUILD libsodium-1.0.18_p20210421.ebuild 2601 BLAKE2B 30bd99e992c1b54bbccf7aca1a1aa8de0b0b40cb6aeb7f4459400a71e2b44c261583a78da90a30d2181a29e18a19d1c85d5d6007092d8c1fddf3a6077ff45f5a SHA512 943eea50ed848239893ad87190067ab75f2a63928feef0872da28b0583cfd50094e6bbab8982dd466860c574498c775c6fc73f274f17c7d3980334261624f120 MISC metadata.xml 864 BLAKE2B 5776de362d73fafaf378d83f7c050cefced1e3659f95c87cd31ab4791d24a416004d806e14abff108a7c235b750c854d20342560372a6125564655303e098cc6 SHA512 e5ec535a7fe1a299357b7886d197bcfb7fe358cc010c89d8d030cf9a8250b3e5108e945aff5fda56014648969af33d32216c22b864ee68e1632cf08006ca95d0 diff --git a/dev-libs/libsodium/files/libsodium-1.0.10-cpuflags.patch b/dev-libs/libsodium/files/libsodium-1.0.10-cpuflags.patch index 544c283d8509..e03a703d7fae 100644 --- a/dev-libs/libsodium/files/libsodium-1.0.10-cpuflags.patch +++ b/dev-libs/libsodium/files/libsodium-1.0.10-cpuflags.patch @@ -1,5 +1,5 @@ ---- libsodium-1.0.10/configure.ac -+++ libsodium-1.0.10/configure.ac +--- a/configure.ac ++++ b/configure.ac @@ -344,6 +344,10 @@ [AC_MSG_RESULT(no)]) CFLAGS="$oldcflags" diff --git a/dev-libs/libsodium/libsodium-1.0.18.ebuild b/dev-libs/libsodium/libsodium-1.0.18.ebuild index 220e1a8d1c63..238c5c7e06f7 100644 --- a/dev-libs/libsodium/libsodium-1.0.18.ebuild +++ b/dev-libs/libsodium/libsodium-1.0.18.ebuild @@ -3,17 +3,21 @@ EAPI=7 -inherit autotools multilib-minimal +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jedisct1.asc +inherit autotools multilib-minimal verify-sig DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library" -HOMEPAGE="https://github.com/jedisct1/libsodium" -SRC_URI="http://download.libsodium.org/${PN}/releases/${P}.tar.gz" +HOMEPAGE="https://libsodium.org" +SRC_URI="https://download.libsodium.org/${PN}/releases/${P}.tar.gz" +SRC_URI+=" verify-sig? ( https://download.libsodium.org/${PN}/releases/${P}.tar.gz.sig )" LICENSE="ISC" SLOT="0/23" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" IUSE="+asm minimal static-libs +urandom cpu_flags_x86_sse4_1 cpu_flags_x86_aes" +BDEPEND="verify-sig? ( app-crypt/openpgp-keys-jedisct1 )" + PATCHES=( "${FILESDIR}"/${PN}-1.0.10-cpuflags.patch ) diff --git a/dev-libs/libsodium/libsodium-1.0.18_p20210421.ebuild b/dev-libs/libsodium/libsodium-1.0.18_p20210421.ebuild new file mode 100644 index 000000000000..3afca22ee5ed --- /dev/null +++ b/dev-libs/libsodium/libsodium-1.0.18_p20210421.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal + +DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library" +HOMEPAGE="https://libsodium.org" + +if [[ ${PV} == *_p* ]] ; then + MY_P=${PN}-$(ver_cut 1-3)-stable-$(ver_cut 5-) + MINISIGN_KEY="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3" + + # We use _pN to represent 'stable releases' + # These are backports from upstream to the last release branch + # See https://download.libsodium.org/libsodium/releases/README.html + SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_P}.tar.gz -> ${P}.tar.gz" + + # TODO: Could verify-sig.eclass support minisig? bug #783066 + SRC_URI+=" verify-sig? ( https://dev.gentoo.org/~sam/distfiles/dev-libs/libsodium/${MY_P}.tar.gz.minisig -> ${P}.tar.gz.minisig )" + + S="${WORKDIR}/${PN}-stable" +else + VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jedisct1.asc + inherit verify-sig + + SRC_URI="https://download.libsodium.org/${PN}/releases/${P}.tar.gz" + SRC_URI+=" verify-sig? ( https://download.libsodium.org/${PN}/releases/${P}.tar.gz.sig )" +fi + +LICENSE="ISC" +SLOT="0/23" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc" +IUSE="+asm minimal static-libs +urandom" + +CPU_USE=( cpu_flags_x86_{aes,sse4_1} ) +IUSE+=" ${CPU_USE[@]}" + +if [[ ${PV} == *_p* ]] ; then + IUSE+=" verify-sig" + + BDEPEND+=" verify-sig? ( app-crypt/minisign )" +fi + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.10-cpuflags.patch +) + +src_unpack() { + if [[ ${PV} == *_p* ]] ; then + if use verify-sig ; then + elog "Verifying signature using app-crypt/minisign" + minisign -V \ + -P ${MINISIGN_KEY} \ + -x "${DISTDIR}"/${P}.tar.gz.minisig \ + -m "${DISTDIR}"/${P}.tar.gz || die "Failed to verify distfile using minisign!" + fi + + default + else + verify-sig_src_unpack + fi +} + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + $(use_enable asm) + $(use_enable cpu_flags_x86_aes aesni) + $(use_enable cpu_flags_x86_sse4_1 sse4_1) + $(use_enable minimal) + $(use_enable static-libs static) + $(use_enable !urandom blocking-random) + ) + + # --disable-pie is needed on x86, see bug #512734 + if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]] ; then + myeconfargs+=( --disable-pie ) + + # --disable-ssp is needed on musl x86 + # TODO: Check if still needed? bug #747346 + if use elibc_musl ; then + myeconfargs+=( --disable-ssp ) + fi + fi + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + default + find "${ED}" -type f -name "*.la" -delete || die +} |