Created attachment 148756 [details] Patch to fix this During building the policyd port (at least 2.0.12_2), the shebang of /usr/local/bin/cbpolicyd is rewritten to the found perl-binary (in my and probably many cases /usr/local/bin/perl). The rc-script however is statically set to /usr/bin/perl. While this is a symlink to a copy of the same version of the perl binary as, rc.subr's _find_processes throws a warning when found interpreter doesn't match the given $command_interpreter: /usr/local/etc/rc.d/policyd2: WARNING: $command_interpreter /usr/bin/perl != /usr/local/bin/perl Attached is a proposed fix.
This port is unmaintained, so I'm moving this to patch ready. the PORTREVISION needs to be bumped too.
A commit references this bug: Author: marino Date: Thu Nov 13 21:59:50 UTC 2014 New revision: 372542 URL: https://svnweb.freebsd.org/changeset/ports/372542 Log: mail/policyd2: fix $command_interpreter warning While here, clean up a bit. Use @sample keyword, wrap compound commands with parentheses, customize WWWDIR, specify PORTDOCS explicitly, and use MKDIR instead of INSTALL -d. PR: 194678 Submitted by: reiner (skoef.nl) Changes: head/mail/policyd2/Makefile head/mail/policyd2/files/policyd2.in head/mail/policyd2/pkg-plist
thanks!