The list of dependencies in RUN_DEPENDS is currently inconsistent: p5-Digest-HMAC is listed but is only required when using CRAM-MD5 auth scheme. p5-Authen-NTLM is required when using NTLM auth scheme, but is not listed. Adding all the possible dependencies does not seem like a good idea. For instance, my mail servers only allow secure connections so I will only ever need PLAIN authentication. No need for the whole SASL, NTLM, etc. stuff to be dragged in. The attached patch attempts to solve this by allowing to chose which optional dependencies to install.
Created attachment 181996 [details] allow to choose optional dependencies
Maintainer feedback?
A commit references this bug: Author: arrowd Date: Sat Apr 25 15:15:22 UTC 2020 New revision: 532956 URL: https://svnweb.freebsd.org/changeset/ports/532956 Log: mail/p5-Mail-IMAPClient: Add OPTIONS. PR: 218807 Submitted by: Martin Waschusch <martin@waschbuesch.de> Changes: head/mail/p5-Mail-IMAPClient/Makefile
Committed, thanks. I modified your patch a bit by enabling CRAMMD5 and DIGESTMD5 options by default, since these were enabled when the port did not support OPTIONS. This will prevent POLA violation for users.