Allow leaving /etc as untouched as possible
commit6eb624f2ea2133cfb5d8f9a6e8633c386a75a8f9
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 12 Jan 2012 18:36:25 +0000 (12 19:36 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Sun, 15 Jan 2012 10:03:39 +0000 (15 11:03 +0100)
tree007eda4c1803042ceff04eed912107b7ead61480
parent361b9c3c78c1b51c2fc0c496b99ce99d7be423f2
Allow leaving /etc as untouched as possible

For customized setups, it's hard to control what files get installed
into /etc since in addition to the base-files package, any other package
may install a sample config. When two packages provide the same file,
which one of them makes it into the image depends on the order of them
being installed.

Solving this problem is not as trivial, as there are packages which must
be allowed to install stuff into /etc. Best examples are base-files and
ca-certificates.

This patch solves the problem by adding another PKG_template flag
"force_etc", which one can define in order to override the as well new
Config.in symbol "ADK_LEAVE_ETC_ALONE".
Config.in
mk/package.mk
package/base-files/Makefile
package/ca-certificates/Makefile
package/ppp/Makefile