commit:     b945ef6bbacf5403455f611df378038a3aa05aa8
Author:     Mike Lothian <mike <AT> fireburn <DOT> co <DOT> uk>
AuthorDate: Mon Dec 20 11:57:25 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 08:06:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b945ef6b

net-fs/samba: Add AES acceleration is cpu_flags_x86_aes set

This will enable AES acceleration if the cpu_flags_x86_aes USE flag is
set, otherwise "none" is passed

Closes: https://bugs.gentoo.org/821349
Closes: https://github.com/gentoo/gentoo/pull/23431
Signed-off-by: Mike Lothian <mike <AT> fireburn.co.uk>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 net-fs/samba/samba-4.15.3-r1.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net-fs/samba/samba-4.15.3-r1.ebuild 
b/net-fs/samba/samba-4.15.3-r1.ebuild
index 6efaacf348ca..189af1340a9c 100644
--- a/net-fs/samba/samba-4.15.3-r1.ebuild
+++ b/net-fs/samba/samba-4.15.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,8 +22,8 @@ S="${WORKDIR}/${MY_P}"
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="acl addc ads ceph client cluster cups debug dmapi fam glusterfs
-gpg iprint json ldap pam profiling-data python quota +regedit selinux
+IUSE="acl addc ads ceph client cluster cpu_flags_x86_aes cups debug dmapi fam
+glusterfs gpg iprint json ldap pam profiling-data python quota +regedit selinux
 snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test winbind
 zeroconf"
 
@@ -210,6 +210,7 @@ multilib_src_configure() {
                --nopyc
                --nopyo
                --without-winexe
+               --accel-aes=$(usex cpu_flags_x86_aes intelaesni none)
                $(multilib_native_use_with acl acl-support)
                $(multilib_native_usex addc '' '--without-ad-dc')
                $(multilib_native_use_with ads)

Reply via email to