net/samba424: restore missing FreeBSD mDNS/dns_sd support (MDNSRESPONDER)
Three FreeBSD-local patches providing dns_sd/mDNSResponder support
(present identically in net/samba419, 420, 422, and 423) were silently
dropped when net/samba424 was created, all gated behind the
non-default MDNSRESPONDER port option (default is AVAHI):
- source3/wscript/wscript_build: the --enable-dnssd waf option (dns_sd.h/DNSServiceRegister detection, WITH_DNSSD_SUPPORT define, dns_sd library linkage into smbd_base and smbclient) never existed in samba424 at all.
- source3/smbd/dnsregister.c: the FreeNAS-authored mDNS advertise-per-interface fixes. Only the companion source3/client/dnsbrowse.c half of this combined patch survived into samba424; the dnsregister.c half was lost.
- Makefile: MDNSRESPONDER_CONFIGURE_ENABLE=dnssd, so selecting the MDNSRESPONDER option actually passes --enable-dnssd to waf.
Without all three, selecting MDNSRESPONDER builds without functional
dns_sd/mDNS support. Verified by diffing the patch sets of
samba419/420/422/423 against samba424, and confirmed the restored
patches apply cleanly (offset-only, no fuzz) against the real
samba-4.24.7 upstream source.
PR: 299196 (comment 11 on net/samba425 reported the same gap)
PR: 299346
Approved by: kiwi (samba team)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>