commit:     a42654c6b34e8bc03879db24228c8e8ca65ae41c
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 08:13:24 2019 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 08:13:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a42654c6

net-dns/pdns: Also add security notice to 4.2.0_rc2

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>

 net-dns/pdns/pdns-4.2.0_rc2.ebuild | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/net-dns/pdns/pdns-4.2.0_rc2.ebuild 
b/net-dns/pdns/pdns-4.2.0_rc2.ebuild
index 839351637f0..d811e77d5c5 100644
--- a/net-dns/pdns/pdns-4.2.0_rc2.ebuild
+++ b/net-dns/pdns/pdns-4.2.0_rc2.ebuild
@@ -155,4 +155,19 @@ pkg_postinst() {
 
                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
+       fi
 }

Reply via email to