Only an idea how this could be approached: Remove the file as conffile
and let the file be generated by postinst (and make the substitutions).

 1/ remove the file as conffile

 2/ In case the file does not yet exist generate the file as shiped
    in the package.

 3/ If and only if dbc_install is set to true, then do the substitutions
    on the configuration file as previously done.

 4/ If the update is from version <= 3.3.7-7.1 then it also needs to
     substitute smarty_dir variable setting with

     smarty_dir              = "/usr/share/php/smarty3/"

But this needs also to handle the case then when the package is
purged.

Regards,
Salvatore

Attachment: signature.asc
Description: Digital signature

Reply via email to