This of course doesn't concern /etc/fc, because this directory is treated differently than the rest of a package. All other files in /etc are replaced, though. This is acceptable when the configuration is going to be regenerated from /etc/fc.d. However, not all configuration files are generated from there.
In more detail, it is annoying for me to reconstruct /etc/pkg/repos.conf everytime I upgrade pkg (normal user won't abuse pkg upgrade the way I do it, but if an upgrade happens, he would be upset too).
I suggest that we should either:
- make /etc/* files special when it comes to an upgrade and pay attention not to erase user's settings, or
- make /etc/pkg/repos.conf file a part of flatconf hierarchy the way /etc/rc.d/rc.local has been done, or
- make pretty flatconf structure (e.g. sys/pkg/+repos) and /etc/fc.d/fc.pkg or
- make pretty flatconf structure and make pkg read settings directly from there
We should also pay attention to all other packages that have some config outside flatconf (are there any?) and solve those problems as well.