From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 CFAB4158041 for ; Mon, 8 Apr 2024 07:04:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0BEBE2A7F; Mon, 8 Apr 2024 07:04:48 +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 D327AE2A76 for ; Mon, 8 Apr 2024 07:04:48 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6A1E3430C0 for ; Mon, 8 Apr 2024 07:04:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E47715DA for ; Mon, 8 Apr 2024 07:04:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1712559203.e5becc374c63c2128232d0e675568c358ea9a1dd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/inadyn/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/inadyn/Manifest net-dns/inadyn/inadyn-2.12.0-r1.ebuild X-VCS-Directories: net-dns/inadyn/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e5becc374c63c2128232d0e675568c358ea9a1dd X-VCS-Branch: master Date: Mon, 8 Apr 2024 07:04:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bbb8539e-d1c8-4f2d-97ac-da819e2ab7a9 X-Archives-Hash: 8975b770ca99861e34c11e1825fd0568 commit: e5becc374c63c2128232d0e675568c358ea9a1dd Author: Sam James gentoo org> AuthorDate: Mon Apr 8 06:52:20 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Apr 8 06:53:23 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5becc37 net-dns/inadyn: cleanup ebuild a bit, smaller distfile, add note on tests The .gz and .xz dists are identical in content but the .xz is smaller. Cleanup config args while here. Noticed this when reviewing toralf's `sam.txt` for ebuilds w/ possible unwired-up tests. Signed-off-by: Sam James gentoo.org> net-dns/inadyn/Manifest | 1 + net-dns/inadyn/inadyn-2.12.0-r1.ebuild | 72 ++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/net-dns/inadyn/Manifest b/net-dns/inadyn/Manifest index 8727cef7dcdf..4ae2f68a5003 100644 --- a/net-dns/inadyn/Manifest +++ b/net-dns/inadyn/Manifest @@ -1 +1,2 @@ DIST inadyn-2.12.0.tar.gz 506723 BLAKE2B 35fc5f8f9298cfb5ff7bf4c569fbd0495c2591a1fd630919bae8dabff03a0e41c512d304d2519be688bff3c41427f13b0a66738b785e1d28e0ec4d3901f05488 SHA512 940e49cd2c434f57a56494e1946939f0d773deeb489939c957c0e1eac135177ab3c446e967daa01a56fde5490568761c1492646bae1bb2f63688e0e9121ef8fe +DIST inadyn-2.12.0.tar.xz 341904 BLAKE2B 2bb1e8f16784c41cb2810c3ed2a52ef12823277082b33a9436a330caad4b4f76034ab3e7f9fefb4dffc0fbf5968f4fb60967f784ce3682f165666c8c0744fcc9 SHA512 309ad6deca4831cbbfb4f4c0b4fcc1ba69fd46a47dc329b20b5e74acdcaf32e7bef435abdc89d2924b576d166095b61bdb7a74cc698a805659c47e7d6a4fe907 diff --git a/net-dns/inadyn/inadyn-2.12.0-r1.ebuild b/net-dns/inadyn/inadyn-2.12.0-r1.ebuild new file mode 100644 index 000000000000..d95e11c356fd --- /dev/null +++ b/net-dns/inadyn/inadyn-2.12.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="Dynamic DNS client with multiple SSL/TLS library support" +HOMEPAGE="https://github.com/troglobit/inadyn" +SRC_URI="https://github.com/troglobit/inadyn/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="gnutls mbedtls openssl" +REQUIRED_USE="?? ( gnutls mbedtls openssl )" + +DEPEND=" + acct-group/inadyn + acct-user/inadyn + dev-libs/confuse:= + gnutls? ( + dev-libs/nettle:= + net-libs/gnutls:= + ) + mbedtls? ( net-libs/mbedtls:= ) + openssl? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + # Tests would need a custom config file in homedir per configure help? + local myeconfargs=( + --disable-ssl + --with-systemd="$(systemd_get_systemunitdir)" + ) + + if use gnutls || use mbedtls || use openssl; then + myeconfargs=( --enable-ssl ) + fi + + if use mbedtls; then + myeconfargs+=( --enable-mbedtls ) + + # MbedTLS has no support for pkg-config + # TODO: Revisit a while after bug #922123 is fixed + myeconfargs+=( MbedTLS_CFLAGS="-I${ESYSROOT}/usr/include/mbedtls" ) + myeconfargs+=( MbedTLS_LIBS="-lmbedtls" ) + fi + + use openssl && myeconfargs+=( --enable-openssl ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + insinto /etc + insopts -m 0600 -o inadyn -g inadyn + doins examples/inadyn.conf + + newinitd "${FILESDIR}"/inadyn.initd inadyn + newconfd "${FILESDIR}"/inadyn.confd inadyn + + newtmpfiles "${FILESDIR}"/inadyn.tmpfilesd inadyn.conf +} + +pkg_postinst() { + tmpfiles_process inadyn.conf +}