move basic packaging generator into separate file

can be used to be more DRY with other packaging generators
update deb-pkg generator

port to shared base class and adjust templates to changes done in
packaging
provide dependencies as separate tar.gz files

debian needs each directory in a separate tarball, so this format is
used for rpm, too. Less work for package maintainers