Created attachment 155347 [details] 2.8.0 Attached patch updates security/keychain to 2.8.0. The files/patch-keychain.sh file can be removed.
A commit references this bug: Author: garga Date: Fri Apr 24 20:09:58 UTC 2015 New revision: 384682 URL: https://svnweb.freebsd.org/changeset/ports/384682 Log: Update to 2.8.0 PR: 199300 (based on) Submitted by: adamw@ Changes: head/security/keychain/Makefile head/security/keychain/distinfo head/security/keychain/files/
As ehaupt noted, I botched the patch. It wants to use bash's extglob option. And in that case, it makes sense to just bring in bash as a dependency and use it. Additionally, now that NO_BUILD is enabled and there is no Makefile supplied, USES=gmake and USES=perl5 and USE_PERL5=build are no longer needed. I'm attaching a patch that removes those now unnecessary pieces, adds a bash dependency, and switches the shebang to bash.
Created attachment 155977 [details] shebang fix