Bug 256955 - dns/mDNSResponder_nss: convert port as a slave to net/mDNSResponder
Summary: dns/mDNSResponder_nss: convert port as a slave to net/mDNSResponder
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-03 12:37 UTC by Matthieu Volat
Modified: 2021-07-03 12:37 UTC (History)
1 user (show)

See Also:


Attachments
convert dns/mDNSResponder_nss as a slave port to net/mDNSResponder (2.00 KB, patch)
2021-07-03 12:37 UTC, Matthieu Volat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Volat 2021-07-03 12:37:56 UTC
Created attachment 226191 [details]
convert dns/mDNSResponder_nss as a slave port to net/mDNSResponder

Hi,

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.

--------
Overview
--------
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.


--
QA
--

# 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

-- Mazhe