Custom Debian package, PEAR incorrect path in pear.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I am trying to create a custom Debian package of upstream PHP with
PEAR for our company servers. This package will have no patches and
doesn't resemble the php5 Debian source package at all, it is 100%
different.

We are wanting to install to /opt/php53 (with configuration files in
/etc/opt/php53 as per the FHS), however running into some issues with
PEAR. When creating the Debian package it will place all files under
the './debian/php53' directory (so for example
'./debian/php53/usr/bin/php') however PEAR is trying to copy its
'pear.conf' to /etc/opt/php53/pear.conf when we run 'fakeroot
debian/rules binary' (effectively 'make install').

We don't want it to go to '/etc/opt/php53/pear.comf' but in the
'./debian/php53/etc/opt/php53/pear.conf' so it can be part of the .deb
package. I've tried setting the PHP_PEAR_SYSCONF_DIR env var, however
this then results in incorrect paths within the generated 'pear.conf'
file.

I've been trying days to get this to work, and I would really, really
appreciate some help in finding out how to do this!

Regards


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux