Skip to contentSkip to conversation

Custom handling of ipk upgrade conflicts..

DISCUSSION Rob Kramer 2 participants 3 messages Nov 24, 2009 – Nov 25, 2009

lore
Share & tools
lore

Rob Kramer

author
#0 lore raw

Hi all,

I'm wondering how I could deal with conditionally installing some files in a ipk package, such as configuration files. For example, to not install some file if it already exists, or to merge it in some customized way. The CONFFILES directive is too interactive for my use, and doesn't allow custom handling of conflicts.

Does someone know of an example of a recipe that does a similar thing, perhaps using ipkg preinstall scripts etc?

Cheers!

Rob

#1 lore raw

It sounds like something that a preinst script would be suited to.

Could you elaborate on the custom merging that you wish to do?

-Graham

author
#2 lore raw
Quoted 3 lines · Graham Gower

It sounds like something that a preinst script would be suited to.

Could you elaborate on the custom merging that you wish to do?

For example, it could merge setting entries in a config file with a new file from the ipk package. Or decide not to install the file at all, if there already is a file that is 'good enough' (i.e. passes some custom testing).

Cheers,

Rob