Every update of backuppc package results in the config files (at the very least config.pl and hosts) being overwritten.
hmm, it seems like it's trying to do the right thing (pkg-plist): @unexec if cmp -s %D/%%ETCDIR%%/config.pl %D/%%ETCDIR%%/config.pl.sample; then rm -f %D/%%ETCDIR%%/config.pl; fi 3 @unexec if cmp -s %D/%%ETCDIR%%/hosts %D/%%ETCDIR%%/hosts.sample; then rm -f %D/%%ETCDIR%%/hosts; fi 4 @rmtry %%ETCDIR%%/config.pl.sample 5 @rmtry %%ETCDIR%%/hosts.sample Notifying maintainer in CC
Unfortunately it is by BackupPC's design. All-in-one configuration and installation script configure.pl should analyze the configuration files and change them as required for a new BackupPC version. You can find explanation here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189799#c3 Do you have any real problem with configuration files? Any feedback or suggestions is appreciated.
I did some testing, and upgrading/reinstalling via port overwrites config files but preserves old versions, while upgrading via package (which changes options, I enabled eg. RRD) just nukes the old config.
I have reproduced the issue with package. I'll have to check this out further.
Created attachment 145699 [details] set NO_PACKAGE, bump portrevision If the package built on another host, it overwrites configuration files with that host's configuration files (or with default configuration files if built on a clean system). I propose to block package building temporarily until good solution will be found.
maintainer provided patch, move to patch-ready
A commit references this bug: Author: marino Date: Wed Aug 13 09:46:01 UTC 2014 New revision: 364771 URL: http://svnweb.freebsd.org/changeset/ports/364771 Log: sysutils/backuppc: Don't build package until config file overwrite is solved This port will overwrite config files if the package is built on another host. Disable package building to avoid configuration file overwrites until a better solution can be found. PR: 192403 Submitted by: viq Band-aid by: maintainer (Alexander Moisseev) Changes: head/sysutils/backuppc/Makefile
As this was only a temporary measure and the issue still exists, move status back to "open"
Created attachment 146290 [details] patch: add update script, change port options The attached patch fixes the issue. Changes: - Remove config files manipulation stuff - Add configuration create/update script - Remove NO_PACKAGE - Remove unnecessary patch patch-configure.pl - Change port options - Bump port revision https://redports.org/buildarchive/20140821122613-28908/
moving back to patch-ready to complete the fix.
A commit references this bug: Author: wg Date: Tue Aug 26 14:11:31 UTC 2014 New revision: 366216 URL: http://svnweb.freebsd.org/changeset/ports/366216 Log: sysutils/backuppc: do not overwrite config files PR: 192403 Submitted by: maintainer Changes: head/sysutils/backuppc/Makefile head/sysutils/backuppc/files/patch-configure.pl head/sysutils/backuppc/files/pkg-message.in head/sysutils/backuppc/pkg-plist
A commit references this bug: Author: wg Date: Tue Aug 26 14:42:38 UTC 2014 New revision: 366218 URL: http://svnweb.freebsd.org/changeset/ports/366218 Log: sysutils/backuppc: add missing patches in last update PR: 192403 Changes: head/sysutils/backuppc/files/patch-update.pl head/sysutils/backuppc/files/update.sh.in