User Tools

Site Tools


phpdebian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
phpdebian [2006/11/14 15:21] – old revision restored zyberdogphpdebian [2007/07/18 09:28] (current) – spelling error corrected 87.78.98.213
Line 1: Line 1:
 +====== Creating PEAR and PECL Debian packages ======
  
 +If you use Debian's PHP packages it makes sense to install additional packages from [[http://pecl.php.net|PECL]] and [[http://pear.php.net|PEAR]] as Debian packages as well.
 +
 +Here is how to create such a package. We will install the [[http://www.php.net/runkit|runkit]] extension which is needed for some of [[wiki:DokuWiki]]'s [[wiki:unittesting|Unit Tests]].
 +
 +
 +  #> apt-get install dh-make-php php4-pear php4-dev php5-dev fakeroot
 +
 +First get the sources with ''pear download'':
 +
 +  $> pear download runkit
 +  File runkit-0.7.tgz downloaded (41683 bytes)
 +
 +Now use ''dh-make-pecl'' to unpack and create the directory structure needed for the Debian build tools. The options defines the maintainer set in the package description.
 +
 +  $> dh-make-pecl --maintainer 'Andreas Gohr <andi@splitbrain.org>' runkit-0.7.tgz
 +
 +If you want you can modify the package description in ''php-runkit-0.7/debian/control'' befor building the package.
 +
 +  $> cd php-runkit-0.7
 +  $> dpkg-buildpackage -rfakeroot
 +  $> cd ..
 +
 +You now have a Debian Package for your extension.
 +
 +For the lazy people the packages of runkit 0.7 are available [[http://dev.splitbrain.org/browse/stuff|here]].