mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36:59 +02:00
dev-libs/libsodium: import new ebuilds
Import new ebuilds for dev-libs/libsodium, which is needed by app-editors/vim[crypt], only in SDK.
This commit is contained in:
parent
e95e69ed34
commit
7923e4bdf8
6
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/Manifest
vendored
Normal file
6
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/Manifest
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DIST libsodium-1.0.18.tar.gz 1919817 BLAKE2B a42d898fe77f232dcbb75728e776b88f006e89f734c4d335e75e01d37b1034cc024df2e89d4350ecbe713d3e4b32c08bec537922c81cc63b0e87ee7fd89b2940 SHA512 17e8638e46d8f6f7d024fe5559eccf2b8baf23e143fadd472a7d29d228b186d86686a5e6920385fe2020729119a5f12f989c3a782afbd05a8db4819bb18666ef
|
||||||
|
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
|
||||||
|
DIST libsodium-1.0.18_p20210617.tar.gz 1854880 BLAKE2B 5b421c7efacca5b2a2b5a99a04719d708c217bc6f0b344f08d566bde85c4f758862c0ad61924346eac508542c2d9c6313cb1e3e421743e424f396dd1972e8195 SHA512 d7cd64101fed11ce33c4865dec253f1058acab376c3a6097422508087f4449b2f7fd1b38835915843106f620bf86694d846695e0c8a35f921e4f190dea3164bc
|
||||||
|
DIST libsodium-1.0.18_p20210617.tar.gz.minisig 311 BLAKE2B c54b76a9e29f49bccca80466a5aaa77fb8341e8164041331003710de8f9b173fd25de4812157377645d97ba8a97470076a7f5e037501ba8376b285a06461efa9 SHA512 2180beb872716ad6b728a455981b548003b18594c3f28435c5ddc9803ab2a0f8f1945b6c77de5928b948bbb803b4fa7527cc2e72059931364343a2fdf51ca1be
|
@ -0,0 +1,40 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -344,6 +344,10 @@
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
|
+AC_ARG_ENABLE(sse4_1, [AS_HELP_STRING(--disable-sse4_1,Do not use sse4.1 code)],
|
||||||
|
+ AS_IF([test "x$enableval" = "xyes"], check_sse4_1="yes", check_sse4_1="no"),
|
||||||
|
+ check_sse4_1="yes")
|
||||||
|
+AS_IF([test "$check_sse4_1" = "yes"],[
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-msse4.1], [CFLAGS="$CFLAGS -msse4.1"])
|
||||||
|
AC_MSG_CHECKING(for SSE4.1 instructions set)
|
||||||
|
@@ -356,6 +360,7 @@
|
||||||
|
AX_CHECK_COMPILE_FLAG([-msse4.1], [CFLAGS_SSE41="-msse4.1"])],
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
+ ])
|
||||||
|
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-mavx], [CFLAGS="$CFLAGS -mavx"])
|
||||||
|
@@ -393,6 +398,10 @@
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
|
+AC_ARG_ENABLE(aesni, [AS_HELP_STRING(--disable-aesni,Do not use aesni code)],
|
||||||
|
+ AS_IF([test "x$enableval" = "xyes"], check_aesni="yes", check_aesni="no"),
|
||||||
|
+ check_aesni="yes")
|
||||||
|
+AS_IF([test "$check_aesni" = "yes"],[
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-maes], [CFLAGS="$CFLAGS -maes"])
|
||||||
|
AX_CHECK_COMPILE_FLAG([-mpclmul], [CFLAGS="$CFLAGS -mpclmul"])
|
||||||
|
@@ -410,6 +419,7 @@
|
||||||
|
],
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
+ ])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
57
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/libsodium-1.0.18.ebuild
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/libsodium-1.0.18.ebuild
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/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://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"
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable asm)
|
||||||
|
$(use_enable minimal)
|
||||||
|
$(use_enable !urandom blocking-random)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable cpu_flags_x86_sse4_1 sse4_1)
|
||||||
|
$(use_enable cpu_flags_x86_aes aesni)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --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() {
|
||||||
|
einstalldocs
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
@ -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=${BROOT}/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 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
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
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
# 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=${BROOT}/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="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||||
|
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
|
||||||
|
# TODO: Check if still needed?
|
||||||
|
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]] ; then
|
||||||
|
myeconfargs+=( --disable-pie )
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
default
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
23
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/metadata.xml
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/metadata.xml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>sam@gentoo.org</email>
|
||||||
|
<name>Sam James</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription>
|
||||||
|
NaCl (pronounced "salt") is a new easy-to-use high-speed software
|
||||||
|
library for network communication, encryption, decryption,
|
||||||
|
signatures, etc. NaCl's goal is to provide all of the core
|
||||||
|
operations needed to build higher-level cryptographic tools.
|
||||||
|
Sodium is a portable, cross-compilable, installable,
|
||||||
|
packageable fork of NaCl, with a compatible API.
|
||||||
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="asm">Enables assembly implementations</flag>
|
||||||
|
<flag name="urandom">Use /dev/urandom instead of /dev/random</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">jedisct1/libsodium</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user