As stated here: https://www.debian.org/doc/manuals/distribute-deb/distribute-deb.html#packaging-thirdparty
I am looking for help packaging up my PAM module. I am prepared to add my package to Debian. The PAM module depends on a shared library that in turn, depends on two other shared libraries (libxml2 and libssl). Both the PAM module and the shared library are open source on GitHub and are written in C. I have read over the packaging documentation but I can't get my head around two things 1) how to actually package the binaries up with the proper dependencies and 2) how things are supposed to work with multiple versions of the OS. For example, I would expect apt-get install mypam to install properly on 11.04, 12.04, 13.10, 14.04, etc. If anyone could provide guidance or expertise it would be greatly appreciated. k