commit:     e50ac466402806e78c10a98b626bd737e0edbe49
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 31 06:56:09 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 31 07:10:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e50ac466

net-dns/bind: restore some old files to /var/bind

We need to keep named.cache, root.cache, and localhost.zone because
we installed these for years *and* configs referencing them.

Dropping them suddenly means they disappear yet the configs
still refer to them. It's unnecessary disruption which we should
handle at another time. (No CONFIG_PROTECT applies there.)

Bug: https://bugs.gentoo.org/832218
Bug: https://bugs.gentoo.org/930348
Bug: https://bugs.gentoo.org/936568
Bug: https://bugs.gentoo.org/937907
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/bind/bind-9.18.29.ebuild | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/net-dns/bind/bind-9.18.29.ebuild b/net-dns/bind/bind-9.18.29.ebuild
index 18f4f0168c82..f2f369fcaef3 100644
--- a/net-dns/bind/bind-9.18.29.ebuild
+++ b/net-dns/bind/bind-9.18.29.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -124,6 +124,22 @@ src_install() {
                find "${ED}"/usr/lib* -name '*.la' -delete || die
        fi
 
+       #
+       # /var/bind
+       #
+       # These need to remain for now because CONFIG_PROTECT won't
+       # save them and we shipped configs for years containing references
+       # to them.
+       #
+       # ftp://ftp.rs.internic.net/domain/named.cache:
+       insinto /var/bind
+       newins "${FILESDIR}"/named.cache-r4 named.cache
+       # bug #450406
+       dosym named.cache /var/bind/root.cache
+       #
+       insinto /var/bind/pri
+       newins "${FILESDIR}"/localhost.zone-r3 localhost.zone
+
        dosym -r /var/bind/pri /etc/bind/pri
        dosym -r /var/bind/sec /etc/bind/sec
        dosym -r /var/bind/dyn /etc/bind/dyn

Reply via email to