From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1586407-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id AB80D15803E
	for <garchives@archives.gentoo.org>; Tue,  2 Jan 2024 18:40:40 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CB0812BC01F;
	Tue,  2 Jan 2024 18:40:39 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A53B42BC01F
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Jan 2024 18:40:39 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9C122342FF8
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Jan 2024 18:40:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E481CDB1
	for <gentoo-commits@lists.gentoo.org>; Tue,  2 Jan 2024 18:40:36 +0000 (UTC)
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" <conikost@gentoo.org>
Message-ID: <1704220783.0c1b1c9db0083b352b86255e9a90acda44cdd8a1.conikost@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/inadyn/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-dns/inadyn/inadyn-2.12.0.ebuild
X-VCS-Directories: net-dns/inadyn/
X-VCS-Committer: conikost
X-VCS-Committer-Name: Conrad Kostecki
X-VCS-Revision: 0c1b1c9db0083b352b86255e9a90acda44cdd8a1
X-VCS-Branch: master
Date: Tue,  2 Jan 2024 18:40:36 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 59a85339-0957-4c74-be4d-c3fea0c21016
X-Archives-Hash: a1af183a7d085f2eaa61bd8702797542

commit:     0c1b1c9db0083b352b86255e9a90acda44cdd8a1
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  2 18:39:43 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 18:39:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c1b1c9d

net-dns/inadyn: fix mbedtls support

Closes: https://bugs.gentoo.org/910687
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-dns/inadyn/inadyn-2.12.0.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/net-dns/inadyn/inadyn-2.12.0.ebuild b/net-dns/inadyn/inadyn-2.12.0.ebuild
index 87a2471dbf87..14ccc44e5337 100644
--- a/net-dns/inadyn/inadyn-2.12.0.ebuild
+++ b/net-dns/inadyn/inadyn-2.12.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,7 +35,13 @@ src_configure() {
 		local myeconfargs=( "--enable-ssl" )
 	fi
 
-	use mbedtls && myeconfargs+=( "--enable-mbedtls" )
+	if use mbedtls; then
+		myeconfargs+=( "--enable-mbedtls" )
+
+		# MbedTLS has no support for pkg-config
+		myeconfargs+=( MbedTLS_CFLAGS="-I/usr/include/mbedtls" )
+		myeconfargs+=( MbedTLS_LIBS="-lmbedtls" )
+	fi
 	use openssl && myeconfargs+=( "--enable-openssl" )
 
 	myeconfargs+=( --with-systemd="$(systemd_get_systemunitdir)" )