summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-31 07:56:09 +0100
committerSam James <sam@gentoo.org>2024-08-31 08:10:16 +0100
commite50ac466402806e78c10a98b626bd737e0edbe49 (patch)
treec4ae92dac35670ddbf3da53f731901d04dcef85f /net-dns
parentnet-dns/bind: add 9.18.29, drop 9.18.0 (diff)
downloadgentoo-e50ac466402806e78c10a98b626bd737e0edbe49.tar.gz
gentoo-e50ac466402806e78c10a98b626bd737e0edbe49.tar.bz2
gentoo-e50ac466402806e78c10a98b626bd737e0edbe49.zip
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@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/bind/bind-9.18.29.ebuild18
1 files changed, 17 insertions, 1 deletions
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