PHP packaging question: pear or not pear ?

Remi Collet Fedora at FamilleCollet.com
Wed Feb 2 18:20:23 UTC 2011


Le 02/02/2011 14:09, Patrick MONNERAT a écrit :
> 
> There is a project I would like to package: this is
> http://php-yubico.googlecode.com/. This project is using PEAR support
> and assumes a PEAR installation (in the Auth subdirectory), but it is
> NOT available from the PEAR repository at http://pear.php.net/.
> 
> Should I package it as pear package (i.e.: php-pear-Auth-Yubico) and
> keep the intended installation location, or should I call it php-yubico
> and relocate the modules under /usr/share/php with a php-pear
> requirement ? The PHP packaging guidelines are not very clear for this
> particular case.

I think you can package this package as php-pear-Auth-Yubico.
It provides a package.xml so you can install it as any other pear
extension, and register/unregister it during post/postun scriplet.

You just need to use the special default __uri channel.

You can look at php-pear-CAS which an example of such a package.
http://pkgs.fedoraproject.org/gitweb/?p=php-pear-CAS.git;a=blob_plain;f=php-pear-CAS.spec;hb=HEAD

Remi.


> 
> Thanks for your advices.
> 

P.S. you can put me in CC of the review.


More information about the devel mailing list