bind: rename named.conf.example
authorDavid Härdeman <[email protected]>
Sun, 27 Jul 2025 00:47:49 +0000 (02:47 +0200)
committerNoah Meyerhans <[email protected]>
Sat, 13 Sep 2025 20:36:41 +0000 (13:36 -0700)
The file actually gets installed as /etc/bind/named.conf, so rename the file to
clarify that.

Signed-off-by: David Härdeman <[email protected]>
net/bind/Makefile
net/bind/files/bind/named.conf [new file with mode: 0644]
net/bind/files/bind/named.conf.example [deleted file]

index a936c5f2538b991d52588ec12cbc934198f36fb0..f9d73b70244139eb9705bb8b0b3725286d1de965 100644 (file)
@@ -222,10 +222,8 @@ define Package/bind-server/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc/bind
-       $(CP) \
-               ./files/bind/db.root \
-               $(1)/etc/bind/
-       $(CP) ./files/bind/named.conf.example $(1)/etc/bind/named.conf
+       $(INSTALL_DATA) ./files/bind/db.root $(1)/etc/bind
+       $(INSTALL_DATA) ./files/bind/named.conf $(1)/etc/bind
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/named.init $(1)/etc/init.d/named
 endef
diff --git a/net/bind/files/bind/named.conf b/net/bind/files/bind/named.conf
new file mode 100644 (file)
index 0000000..ca1e02d
--- /dev/null
@@ -0,0 +1,15 @@
+// This is the primary configuration file for the BIND DNS server named.
+
+options {
+       directory "/var/cache/bind";
+};
+
+include "/etc/bind/named-rndc.conf";
+
+include "/tmp/bind/named.conf.local";
+
+// prime the server with knowledge of the root servers
+zone "." {
+       type hint;
+       file "/etc/bind/db.root";
+};
diff --git a/net/bind/files/bind/named.conf.example b/net/bind/files/bind/named.conf.example
deleted file mode 100644 (file)
index ca1e02d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// This is the primary configuration file for the BIND DNS server named.
-
-options {
-       directory "/var/cache/bind";
-};
-
-include "/etc/bind/named-rndc.conf";
-
-include "/tmp/bind/named.conf.local";
-
-// prime the server with knowledge of the root servers
-zone "." {
-       type hint;
-       file "/etc/bind/db.root";
-};