This commit extends and reorganizes the Debian packaging script according to suggestions made by Ruben Undheim <ruben.undheim@gmail.com>.