PHP5 PECL Filter on Debian
note: this applies to the dotdeb version of PHP5, not the default package
Install prerequisite packages:
apt-get install <packagename>
dh-make
deb-helper
php5-dev
build-essential
Create a temporary working folder
mkdir workfolder
Download the Debianize script
http://packages.dotdeb.org/debianize
save the text to a file in the workfolder
download the pecl package
wget http://pecl.php.net/get/filter
tar -xzf filter
./debianize filter-0.9.4/
When the script completes it creates a .deb package file.
Install the Package
dpkg –install php5-filter_5.1.2-1.dotdeb.2_i386.deb
Known Issues:
I had to set my working folder permissions to 777.
I had the following error:
dh_installdocs
dh_installdocs: Compatibility levels before 4 are deprecated.
cp -a README debian/php5-filter/usr/share/doc/php5-filter
cp: cannot stat `README’: No such file or directory
dh_installdocs: command returned error code 256
make: *** [binary-arch] Error 1
The fix: comment out this line near the bottom of the debianize script:
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
# dh_installdocs