deb7: massive overhaul to setup script.