Created attachment 189109 [details]
Config file /usr/local/share/vmware-tools/tools.conf replaced after port update.
"/usr/local/bin/vmtoolsd -c /usr/local/share/vmware-tools/tools.conf -p /usr/local/lib/open-vm-tools/plugins/vmsvc"
Patch for add custom config in /usr/local/etc dir.
After apply patch in /etc/rc.conf set:
Josh, please take a look. It seems this port violates directions of the Porter's Handbook on configuration file handling: https://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html
I think a better solution is to use the sample mechanism.
Or not. This port doesn't actually install a tools.conf or provide a sample config file. However if you create a tools.conf it will happily use it.
The downside of just removing tools.conf from the pkg-plist is that it will block directory removal if you delete the port but I guess that's a small price to pay.
(In reply to Josh Paetzel from comment #3)
If the port does not install a file, it must not remove it.
A commit references this bug:
Date: Thu Dec 28 22:45:58 UTC 2017
New revision: 457485
Don't remove a config file the port doesn't install.
Reported by: Mikhail Golub <email@example.com>
Reviewed by: John Wolfe <firstname.lastname@example.org>