summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Udvare <audvare@gmail.com>2021-12-27 14:32:52 -0500
committerAnthony G. Basile <blueness@gentoo.org>2021-12-28 10:02:46 -0500
commit6037c0a5fc5f9ffd5f07c3eacfc09d4b6c9a4aba (patch)
tree368c1b71fee67b0355a1f261caf6e9ca07dff743 /net-libs/mbedtls
parentdev-util/shunit2: keyword 2.1.8 for ~ppc64 (diff)
downloadgentoo-6037c0a5fc5f9ffd5f07c3eacfc09d4b6c9a4aba.tar.gz
gentoo-6037c0a5fc5f9ffd5f07c3eacfc09d4b6c9a4aba.tar.bz2
gentoo-6037c0a5fc5f9ffd5f07c3eacfc09d4b6c9a4aba.zip
net-libs/mbedtls: add cmac USE flag for 2.x
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Udvare <audvare@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'net-libs/mbedtls')
-rw-r--r--net-libs/mbedtls/mbedtls-2.16.11.ebuild3
-rw-r--r--net-libs/mbedtls/mbedtls-2.16.12.ebuild3
-rw-r--r--net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild3
-rw-r--r--net-libs/mbedtls/mbedtls-2.28.0-r1.ebuild3
-rw-r--r--net-libs/mbedtls/metadata.xml3
5 files changed, 11 insertions, 4 deletions
diff --git a/net-libs/mbedtls/mbedtls-2.16.11.ebuild b/net-libs/mbedtls/mbedtls-2.16.11.ebuild
index 8ddca1907c00..0ad3fec46cf1 100644
--- a/net-libs/mbedtls/mbedtls-2.16.11.ebuild
+++ b/net-libs/mbedtls/mbedtls-2.16.11.ebuild
@@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-${P}
LICENSE="Apache-2.0"
SLOT="0/3.12.0" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so}
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
-IUSE="cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
+IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -34,6 +34,7 @@ enable_mbedtls_option() {
}
src_prepare() {
+ use cmac && enable_mbedtls_option MBEDTLS_CMAC_C
use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
diff --git a/net-libs/mbedtls/mbedtls-2.16.12.ebuild b/net-libs/mbedtls/mbedtls-2.16.12.ebuild
index 8ddca1907c00..0ad3fec46cf1 100644
--- a/net-libs/mbedtls/mbedtls-2.16.12.ebuild
+++ b/net-libs/mbedtls/mbedtls-2.16.12.ebuild
@@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-${P}
LICENSE="Apache-2.0"
SLOT="0/3.12.0" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so}
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
-IUSE="cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
+IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -34,6 +34,7 @@ enable_mbedtls_option() {
}
src_prepare() {
+ use cmac && enable_mbedtls_option MBEDTLS_CMAC_C
use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
diff --git a/net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild b/net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild
index fc18e8b6b047..7436d6b627e9 100644
--- a/net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild
+++ b/net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild
@@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-${P}
LICENSE="Apache-2.0"
SLOT="0/7.13.1" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so}
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-IUSE="cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
+IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -34,6 +34,7 @@ enable_mbedtls_option() {
}
src_prepare() {
+ use cmac && enable_mbedtls_option MBEDTLS_CMAC_C
use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
diff --git a/net-libs/mbedtls/mbedtls-2.28.0-r1.ebuild b/net-libs/mbedtls/mbedtls-2.28.0-r1.ebuild
index ef9cb32d329a..545749431ca9 100644
--- a/net-libs/mbedtls/mbedtls-2.28.0-r1.ebuild
+++ b/net-libs/mbedtls/mbedtls-2.28.0-r1.ebuild
@@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-${P}
LICENSE="Apache-2.0"
SLOT="0/7.14.1" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so}
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-IUSE="cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
+IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -34,6 +34,7 @@ enable_mbedtls_option() {
}
src_prepare() {
+ use cmac && enable_mbedtls_option MBEDTLS_CMAC_C
use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
diff --git a/net-libs/mbedtls/metadata.xml b/net-libs/mbedtls/metadata.xml
index abf57a31dfbf..a39a95180bc6 100644
--- a/net-libs/mbedtls/metadata.xml
+++ b/net-libs/mbedtls/metadata.xml
@@ -10,6 +10,9 @@
cryptographic library written in C and targeted at embedded systems.
</longdescription>
<use>
+ <flag name="cmac">Enable block cipher-based message authentication
+ code algorithm
+ </flag>
<flag name="havege">Enable the HAVEGE random generator.
Warning: the HAVEGE random generator is not suitable for
virtualized environments