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 874791581E7 for ; Sun, 21 Apr 2024 21:03:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A71DE29E0; Sun, 21 Apr 2024 21:03:43 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34D97E29E0 for ; Sun, 21 Apr 2024 21:03:43 +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 44C32343561 for ; Sun, 21 Apr 2024 21:03:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D3BEC1753 for ; Sun, 21 Apr 2024 21:03:40 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1713732734.e65f4f75e4b07cfd4c7182d71c9c5e37503db2b0.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-libs/nss-tls/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-libs/nss-tls/nss-tls-1.1-r1.ebuild sys-libs/nss-tls/nss-tls-1.1.ebuild X-VCS-Directories: sys-libs/nss-tls/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: e65f4f75e4b07cfd4c7182d71c9c5e37503db2b0 X-VCS-Branch: master Date: Sun, 21 Apr 2024 21:03:40 +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: 5d2ae246-0e96-42cd-b4f3-c95b19e08299 X-Archives-Hash: e8565662501a559e50f41b4a4cccb9d3 Message-ID: <20240421210340.KGft5oY719KFRUVzxqAndwMSCZLv-ZXd-qgl9xj8V7A@z> commit: e65f4f75e4b07cfd4c7182d71c9c5e37503db2b0 Author: Alfred Wingate protonmail com> AuthorDate: Sun Apr 21 20:49:46 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sun Apr 21 20:52:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e65f4f75 sys-libs/nss-tls: fix for bug 928369, general improvement Closes: https://bugs.gentoo.org/928369 Signed-off-by: Julien Roy jroy.ca> sys-libs/nss-tls/nss-tls-1.1-r1.ebuild | 46 +++++++++++++++++++++++++++ sys-libs/nss-tls/nss-tls-1.1.ebuild | 57 ---------------------------------- 2 files changed, 46 insertions(+), 57 deletions(-) diff --git a/sys-libs/nss-tls/nss-tls-1.1-r1.ebuild b/sys-libs/nss-tls/nss-tls-1.1-r1.ebuild new file mode 100644 index 0000000000..74f3c2550e --- /dev/null +++ b/sys-libs/nss-tls/nss-tls-1.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A DNS over HTTPS resolver for glibc" +HOMEPAGE="https://github.com/dimkr/nss-tls" +SRC_URI="https://github.com/dimkr/nss-tls/archive/${PV}.tar.gz -> ${P}.tar.gz" + +inherit meson systemd + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/glib + net-libs/libsoup:2.4 +" +DEPEND=" + ${RDEPEND} + sys-libs/glibc[nscd(+)]" + +src_prepare() { + default + sed -e "s/@0@\/run\/nss-tls/\/var\/run\/nss-tls/" -i "${S}"/meson.build || die + + if use systemd; then + sed -i -e "s/systemd = /systemd = dependency('systemd')" meson.build || die + else + sed -i -e "s/systemd = /systemd = disabler()" meson.build || die + fi +} + +src_install() { + meson_src_install + + systemd_newunit "${S}"/nss-tlsd.service.in nss-tlsd.service + doinitd "${FILESDIR}"/nss-tlsd +} + +post_install() { + ewarn "Do Not put ip address of the server in nss-tls.conf" + ewarn "use the dns name and add record of dns server in /etc/hosts" + ewarn "echo "8.8.8.8 dns.google" >> /etc/hosts" +} diff --git a/sys-libs/nss-tls/nss-tls-1.1.ebuild b/sys-libs/nss-tls/nss-tls-1.1.ebuild deleted file mode 100644 index 4a701a186a..0000000000 --- a/sys-libs/nss-tls/nss-tls-1.1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="A DNS over HTTPS resolver for glibc" -HOMEPAGE="https://github.com/dimkr/nss-tls" -SRC_URI="https://github.com/dimkr/nss-tls/archive/${PV}.tar.gz -> ${P}.tar.gz" - -inherit meson systemd - -LICENSE="LGPL-2.1" -KEYWORDS="~amd64 ~x86" -IUSE="systemd" -SLOT="0" - -RDEPEND="dev-libs/glib - net-libs/libsoup" -DEPEND="${RDEPEND} - sys-libs/glibc[nscd(+)]" -BDEPEND=" - ${DEPEND} - app-alternatives/ninja - dev-build/meson -" - -src_prepare() { - default - sed -e "s/@0@\/run\/nss-tls/\/var\/run\/nss-tls/" -i "${S}"/meson.build || die -} - -src_configure() { - local emesonargs=( - --buildtype=release - ) - meson_src_configure -} - -src_compile() { - meson_src_compile -} - -src_install() { - if use systemd ; then - systemd_newunit "${S}"/nss-tlsd.service.in nss-tlsd.service - else - doinitd "${FILESDIR}"/nss-tlsd - fi - meson_src_install -} - -post_install() { - ewarn "Do Not put ip address of the server in nss-tls.conf" - ewarn "use the dns name and add record of dns server in /etc/hosts" - ewarn "echo "8.8.8.8 dns.google" >> /etc/hosts" - -}