Created attachment 226191 [details]
convert dns/mDNSResponder_nss as a slave port to net/mDNSResponder
For a few years, I have been maintaining dns/mDNSResponder_nss, which is enabling the nsswitch plugin of net/mDNSResponder which is not available for FreeBSD builds in upstream.
This has been fine and working well, but it means tracking versions when this could be made a slave port. Until now, it was not, to avoid disruption in the net/mDNSResponder port, but I think I managed to do it and would like to submit it if it seems reasonable.
Modify only dns/mDNSResponder_nss (the one I am maintaining). Rewrite it as a slave port as porter handbook present.
Both port only collide on the post-install target, and the master port install a rc script. Both post-install and install-rc-script targets are disabled through TARGET_ORDER_OVERRIDE.
# portlint .
FATAL: Makefile: extra item "MASTERDIR" placed in the PORTNAME section.
FATAL: Makefile: extra item "LIB_DEPENDS" placed in the LICENSE section.
2 fatal errors and 0 warnings found.
I am not sure portlint has a place for MASTERDIR? I did try a few slave ports, all with this issue. Should I also add a LICENSE section, even if it is the same as the master port?
# make check-plist
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
# make package
===> Building package for mDNSResponder_nss-1310.100.10
Any feedback is welcome, thanks