pkg question: how to patch a startup file, but make it so that an upgrade to the package still overwrites it

From: Dan Mahoney <freebsd_at_gushi.org>
Date: Tue, 27 Sep 2022 01:44:51 UTC
All,

At the day job we've found a bug in an rcfile (for open-vm-tools), that conflicts with our puppet install.  We've already told the pkg maintainer, pointed out the problem, might also go ahead and file a pr so there's an available patch.

In the mean time, all our puppet runs are reporting failures because of this.

Is there a "correct" way to change the main rc.d file, but still have it such that a new version of the pkg will overwrite this with a fixed version?  I know that pkg normally will refuse to delete a file in /usr/local/etc that has local changes.

-Dan