install debian package with change configuration

I need to install php5 source debian package with zend thread safety enable (ZTS=1) but in default this config is disable. how can rebuild package with my configuration ?

Download and extract package sources with apt-get source php5

Edit debian/rules file and add –enable-roxen-zts or –enable-maintainer-zts to COMMON_CONFIG (confirm which one you need with ./configure –help).

sudo apt-get build-dep php5 to install build dependencies.

From directory where package source were extracted run dpkg-buildpackage -uc -b.

Optionally if you have devscripts package installed you may run debuild -uc -b instead of dpkg-buildpackage -uc -b.

你可能感兴趣的:(install debian package with change configuration)