Можно восстановить пакет Debian PHP5 для распределения:
aptitude install devscripts build-essential
# You'll probably need to adjust the path to the .dsc file
dget -u -x http://ftp.de.debian.org/debian/pool/main/p/php5/php5_5.3.0-3.dsc
cd php5*
debuild -us -uc # It may ask for some dependency first
ls ../*.deb