From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id E89501582EF for ; Sat, 22 Feb 2025 09:39:11 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D55D6343244 for ; Sat, 22 Feb 2025 09:39:11 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 7455911047A; Sat, 22 Feb 2025 09:38:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 65CD311047A for ; Sat, 22 Feb 2025 09:38:50 +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 1EACB343206 for ; Sat, 22 Feb 2025 09:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B19582764 for ; Sat, 22 Feb 2025 09:38:47 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1740217095.1cb99cef76ad38593503c5df8b08a89981e148eb.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdns/pdns-4.9.4.ebuild X-VCS-Directories: net-dns/pdns/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1cb99cef76ad38593503c5df8b08a89981e148eb X-VCS-Branch: master Date: Sat, 22 Feb 2025 09:38:47 +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: be76bf0e-a68f-43b3-b58a-747154aeee5f X-Archives-Hash: f66bb97a88fe22f199d9d787cdd6117e commit: 1cb99cef76ad38593503c5df8b08a89981e148eb Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:11:31 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 22 09:38:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cb99cef net-dns/pdns: Port to ver_replacing Signed-off-by: Ulrich Müller gentoo.org> net-dns/pdns/pdns-4.9.4.ebuild | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/net-dns/pdns/pdns-4.9.4.ebuild b/net-dns/pdns/pdns-4.9.4.ebuild index f6df116ae075..aa6d7d980d2e 100644 --- a/net-dns/pdns/pdns-4.9.4.ebuild +++ b/net-dns/pdns/pdns-4.9.4.ebuild @@ -6,7 +6,7 @@ EAPI=8 LUA_COMPAT=( lua5-{1..4} luajit ) PYTHON_COMPAT=( python3_{10..13} ) -inherit flag-o-matic lua-single python-any-r1 +inherit eapi9-ver flag-o-matic lua-single python-any-r1 DESCRIPTION="The PowerDNS Daemon" HOMEPAGE="https://www.powerdns.com/" @@ -132,10 +132,7 @@ pkg_postinst() { elog "The name must be in the format pdns. and PowerDNS will use the" elog "/etc/powerdns/pdns-.conf configuration file instead of the default." - local old - for old in ${REPLACING_VERSIONS}; do - ver_test ${old} -lt 3.2 || continue - + if ver_replacing -lt 3.2; then echo ewarn "To fix a security bug (bug #458018) had the following" ewarn "files/directories the world-readable bit removed (if set):" @@ -144,22 +141,14 @@ pkg_postinst() { ewarn "Check if this is correct for your setup" ewarn "This is a one-time change and will not happen on subsequent updates." chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} + fi - break - done - - if use postgres; then - for old in ${REPLACING_VERSIONS}; do - ver_test ${old} -lt 4.1.11-r1 || continue - - echo - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." - ewarn "This security fix needs to be applied manually to the database schema." - ewarn "Please refer to the official security advisory for more information:" - ewarn - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" - - break - done + if use postgres && ver_replacing -lt 4.1.11-r1; then + echo + ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." + ewarn "This security fix needs to be applied manually to the database schema." + ewarn "Please refer to the official security advisory for more information:" + ewarn + ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" fi }