Converting TIVSM RPMs to deb

We received a preinstalled customer server the other day, for which we had declared “as-is” support only, since it is running Lucid Lynx. Now today, I started getting the TSM client to work. Was kinda weird, since at first dsmc was reporting something like this:

# ./dsmc: no such file or directory

After fiddling with it a bit more, here are the control files, as well as the prerm and postinst-scripts for TIVSM-API, TIVSM-API64 and TIVSM-BA:

tivsm-api/debian/control:

tivsm-api/debian/tivsm-api.postinst:

tivsm-api/debian/tivsm-api.prerm:

tivsm-api64/debian/control:

tivsm-api64/debian/postinst:

tivsm-api64/debian/prerm:

tivsm-ba/debian/control:

tivsm-ba/debian/tivsm-ba.postinst:

tivsm-ba/debian/tivsm-ba.prerm:

All that was left to do, was simply adding a -n to the dh_makeshlibs call in each packages debian/rules file, otherwise dh_makeshlibs would overwrite my shiny postinst/prerm actions!