From d746ca67961a1171b7f90e3d598a18fa2d0e99f7 Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Wed, 27 Oct 2004 23:01:51 +0000
Subject: [PATCH] Explicitly install resolv.conf since dhclient appears to
 create the file with a timestamp in the future (maybe cause timezone not set
 when dhclient runs?).

---
 named/GNUmakefile.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/named/GNUmakefile.in b/named/GNUmakefile.in
index 345373efcf..6139f12eba 100644
--- a/named/GNUmakefile.in
+++ b/named/GNUmakefile.in
@@ -48,11 +48,12 @@ named.conf:	named.conf.template named_makeconf
 install:
 	echo "Are you sure you want to reinstall the namedb files!"
 
-install-real:	$(NAMEDB_DIR)/named.conf \
+install-real:	resolv.conf \
+		$(NAMEDB_DIR)/named.conf \
 		$(NAMEDB_DIR)/localhost.rev \
 		$(NAMEDB_DIR)/$(OURDOMAIN).db.head \
-		$(NAMEDB_DIR)/reverse/$(REVERSE_MAPNAME).db.head \
-		$(ETCDIR)/resolv.conf
+		$(NAMEDB_DIR)/reverse/$(REVERSE_MAPNAME).db.head
+	$(INSTALL_DATA) resolv.conf $(ETCDIR)/resolv.conf
 	-rm -rf $(NAMEDB_DIR)/$(OURDOMAIN).internal.db.head
 	ln -s $(OURDOMAIN).db.head $(NAMEDB_DIR)/$(OURDOMAIN).internal.db.head
 
-- 
GitLab