I use these instructions for creating a new .deb based on the old deb and the new source: http://ubuntuforums.org/showthread.php?t=1105902 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5177,5203#msg-5203