Bug 253799

Summary: dns/bind916: master/slave -> primary/secondary
Product: Ports & Packages Reporter: Rob LA LAU <freebsd>
Component: Individual Port(s)Assignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (mat)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Rob LA LAU 2021-02-23 16:05:12 UTC
Bind has switched terminology from master/slave to primary/secondary.
https://bind9.readthedocs.io/en/v9_16_12/introduction.html?highlight=primary#the-primary-server

When using this more modern terminology it makes sense to also change the names of the directories 'master' and 'slave' to 'primary' and 'secondary', which I did.
I would appreciate it if the make options for the port could include options like

(*) Use primary/secondary terminology
( ) User master/slave terminology

This would avoid the creation of new directories named 'master' and 'slave' when updating, as well as the installation of new 'empty.db' and 'localhost-*.db' files in unused directories. On the other hand, it would still allow existing installations to continue using the old terminology, if desired.

Since Bind now prefers the use of primary/secondary, it would probably also make sense to use these terms as the default for new installs.

Thanks,
  Rob
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2021-03-08 12:47:48 UTC
BIND9 already has way too many options, adding a new option for this seems like a bad idea.

I am going to have a look on how to make the change transparent for the users, it will probably only happen in bind9-devel for now, and it will probably only happen in the new versions of BIND9 ports, starting with the next 9.18 version.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2021-03-15 14:49:24 UTC
Migrated to primary/secondary in the latest bind9-devel port.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-03-15 16:09:21 UTC
A commit references this bug:

Author: mat
Date: Mon Mar 15 16:09:08 UTC 2021
New revision: 568467
URL: https://svnweb.freebsd.org/changeset/ports/568467

Log:
  Update to latest commit.

  While there, transition from master/slave to primary/secondary in the
  default configuration files.

  PR:		253799

Changes:
  head/dns/bind9-devel/Makefile
  head/dns/bind9-devel/distinfo
  head/dns/bind9-devel/files/BIND.chroot.local.dist
  head/dns/bind9-devel/files/named.conf.in
  head/dns/bind9-devel/files/pkg-message.in
  head/dns/bind9-devel/pkg-plist