Templated debian preferences

If the repo location is an URL, the debian preference file need to refer
to the hostname.