commit:     49f33ad56886ad76c89e079ba9931732adf6f989
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 25 21:31:01 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 25 21:31:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49f33ad5

net-dns/bind-tools: add ewarn explaining the package is obsolete

Closes: https://bugs.gentoo.org/942104
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/bind-tools/bind-tools-9.18.0.ebuild | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/net-dns/bind-tools/bind-tools-9.18.0.ebuild 
b/net-dns/bind-tools/bind-tools-9.18.0.ebuild
index ddb9c952d6b3..ac583a3ecafb 100644
--- a/net-dns/bind-tools/bind-tools-9.18.0.ebuild
+++ b/net-dns/bind-tools/bind-tools-9.18.0.ebuild
@@ -12,3 +12,15 @@ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips 
ppc ppc64 ~riscv ~s3
 IUSE="+caps doc gssapi idn libedit readline xml"
 
 RDEPEND=">=net-dns/bind-9.18.0[caps?,doc?,gssapi?,idn?,xml?]"
+
+pkg_postinst() {
+       ewarn "net-dns/bind-tools is now merged into net-dns/bind and"
+       ewarn "net-dns/bind-tools serves as a dummy package until it is"
+       ewarn "eventually removed. The split was already a maintenance burden"
+       ewarn "because of lack of build system support for it, but this became"
+       ewarn "more severe with >=9.18.0."
+       ewarn ""
+       ewarn "Please run the following commands:"
+       ewarn "* emerge --deselect net-dns/bind-tools"
+       ewarn "* emerge --noreplace net-dns/bind instead"
+}

Reply via email to