Generalized debian code somewhat.