Reply to RichardNeill:
Not tested, but basic idea is to see how the existing module packages, such as curl, are built and add our own.
mkdir php cd php apt-get source php5 cd php5-5.2.1 $EDITOR debian/rules -> find "--with-curl" line and add configure option $EDITOR debian/modulelist -> add module dpkg-buildpackage -rfakeroot cd ..
You should have your fresh .deb files ready for install.
Reply to RichardNeill:
Not tested, but basic idea is to see how the existing module packages, such as curl, are built and add our own.
mkdir php
cd php
apt-get source php5
cd php5-5.2.1
$EDITOR debian/rules -> find "--with-curl" line and add configure option
$EDITOR debian/modulelist -> add module
dpkg-buildpackage -rfakeroot
cd ..
You should have your fresh .deb files ready for install.