I am trying to build a debian package which automatically configures all my machines to use the same configuration files and settings.
For example I am trying to set things like alter /etc/default/hostapd. I am currently doing this by using dh_install to copy a file to /etc/default/hostapd with the configuration I want it to have.
This results in the error:
trying to overwrite '/etc/default/hostapd', which is also in package hostapd What is the correct way to create a debian package which overwrites the settings such as /etc/default/hostapd ?