apk-tools should have "protected" files to be configurable
It would be nice to configure what paths are protected, for example it might be needed to save some changes in roundcubemail skin, which is part of original package. It might be configuration parameter PROTECTED_PATH in apk.conf
(from redmine: issue id 607, created on 2011-04-28, closed on 2012-04-26)
- Changesets:
- Revision ba3ee3f8 by Timo Teräs on 2012-02-23T13:05:06Z:
audit, db: add etc/apk/protected_files.d and new audit features
fixes #607.
audit is now mostly rewritten for the new functionality. And
has new features like --check-permissions, --recursive and
--packages.
$ROOT/etc/apk/protected_files.d/*.list can now contain additional
protected paths, one path per line:
+etc
@etc/init.d
-tmp
+ will include the directory as protected configuration directory.
@ considers the directory protected, but will backup only symlinks.
- removes any protection
lbu should be modified to put include and exclude paths in
etc/apk/protected_files.d/lbu.list. Additionally, some packages
might provide their own listings.
E.g. ssh might want to provide ssh.list with something like:
+root/.ssh
+home/*/.ssh