I'm using checkinstall (1.6.2) to create a Debian package from compiled binaries. "make install" copies two files as follows:
install -m 0755 gmediarenderer /etc/init.d
install -m 0644 -T gmediarenderer.conf /etc/default/gmediarenderer
Both of these files are correctly incorporated into the .deb package created by checkinstall. The standard behaviour for files to be installed in /etc is for files installed here not to be overwritten when changed by the user. However, dpkg always overwrites them with the files from the package, and "dpkg -r" always removes the customised files.
Can anyone explain why this is happening, and how I might make it stop?
Edit: Changing the "install" commands to raw "cp" commands makes no difference (not that I really expected it to).
Checkinstall
isn't marking the package as a conffile during the build. See the conffile section of debian policy