bareos: master 287600c4

Author Committer Branch Timestamp Parent
joergs joergs master 2025-10-01 19:14 master f3c48e83 Pending
Changeset freebsd: re-add config files after upgrade from < 24

Config files in Bareos <= 24 are marked as @sample files.
With Bareos 25 we use "bareos-config deploy_config --init" instead
to initially populate the config directory.
Unfortenatly, unmodified @sample files get removed during the upgrade
process.
FreeBSD first fully removes the old package and than install
the new new.
The order is (at least on FreeBSD 14):
* pkg-pre-deinstall — from old package
* Remove files from old package
* pkg-post-deinstall — from old package
* pkg-pre-install — from new package
* Install files of the new package
* pkg-post-install — from new package

As workaround, when upgrading from Bareos < 24,
the redeploy missing files from the new package.
To keep track of this, a marker file is created:
"${BAREOS_CONFIG_DIR}/.${COMPONENT}.deploy_config.version"
deploy_config --add-missing is only called (in pkg-post-install)
when either this file does not exist
or the version number in there is < 25.
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/Makefile Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-message.director Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-message.storage Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.common Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.director Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-ldap-python-plugin Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-python3-plugin Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.storage-tape Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-post-deinstall Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-post-install Diff File
rm - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-pre-deinstall Diff File
add - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-pre-deinstall.example Diff File
rm - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-pre-install Diff File
add - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-pre-install.example Diff File