Pancrazio 'Ezio' de Mauro (p@demauro.net)'s CheckInstall utility (http://checkinstall.izto.org/) claims to be able to construct deb, RPM, or Slackware packages immediately following the build-from-source process. There are native tools for various distributions, such as Debian's debhelper, that can also assist.