The configuration setting "password_eval" requires to call an external program like the "events_command" setting. So enable proc and exec when pledging if that setting is available too. Tested with gpg as a password provider.
Index: Makefile =================================================================== RCS file: /cvs/ports/net/mcabber/Makefile,v retrieving revision 1.35 diff -u -p -r1.35 Makefile --- Makefile 27 Jun 2018 21:04:00 -0000 1.35 +++ Makefile 5 Mar 2019 16:27:51 -0000 @@ -3,7 +3,7 @@ COMMENT= console jabber client DISTNAME= mcabber-1.1.0 CATEGORIES= net -REVISION= 2 +REVISION= 3 HOMEPAGE= https://mcabber.com/ Index: patches/patch-mcabber_main_c =================================================================== RCS file: /cvs/ports/net/mcabber/patches/patch-mcabber_main_c,v retrieving revision 1.2 diff -u -p -r1.2 patch-mcabber_main_c --- patches/patch-mcabber_main_c 26 May 2017 10:34:53 -0000 1.2 +++ patches/patch-mcabber_main_c 5 Mar 2019 16:27:51 -0000 @@ -6,7 +6,7 @@ Index: mcabber/main.c if (ret == -2) exit(EXIT_FAILURE); -+ if (settings_opt_get("events_command")) { ++ if (settings_opt_get("events_command") || settings_opt_get("password_eval")) { + if (pledge("stdio rpath wpath cpath fattr inet dns tty proc exec", NULL) == + -1) { + fprintf(stderr, "Cannot pledge: %s\n", strerror(errno));
