Configs debian builds of php5 pecl modules to have useful postinst, prerm, etc. scripts.
dh-make-pecl
does not include sane postinst, prerm, etc. maintainer scripts. The dotdeb packages include scripts that enable/disable the module as it gets installed/removed. That's where this tool comes in, it puts those scripts into the package.
Replace [module]
with the module you want to build (e.g. redis).
dh-make-pecl --phpversion 5 --prefix php5- [module]
cd php5-[module]
/path/to/config.sh [module] ./debian
./debian/rules binary
Thanks to Guillaume Plessis for his awesome work with dotdeb and creating the scripts these are based off.