I have a maintenance-oriented package that (among other tasks) used to install a specific file, and sometimes overwrite that file with an updated version.
I'm trying to find a way to hang on to that file, but not have the package claim "ownership" of it as seen in
If I simply remove it from the package, then upon the next
It occurs to me that perhaps, if one were even shifting "responsibility" for a file from package A to package B, a similar situation might arise, so I'm hoping there's a better solution out there.
Any pointers?
I'm trying to find a way to hang on to that file, but not have the package claim "ownership" of it as seen in
pkg list
or pkg which /path/myfile
.If I simply remove it from the package, then upon the next
pkg upgrade
, the file is deleted. This could be prevented with hackery in +PRE_INSTALL (take a backup) and +POST_INSTALL (re-install that backup), but I was hoping to find a more elegant way.It occurs to me that perhaps, if one were even shifting "responsibility" for a file from package A to package B, a similar situation might arise, so I'm hoping there's a better solution out there.
Any pointers?