go-pear and installation paths
| From: | Pascal Terjan | Date: | Sun, 21 Dec 2003 15:36:40 +0000 |
| Subject: | go-pear and installation paths | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9764@lists.php.net to get a copy of this message | ||
Hi,
To build the Mandrake php-pear rpm, go-pear is used to install into /var/tmp/php-pear-4.3.4-1mdk-buildroot :
1. Installation prefix : /var/tmp/php-pear-4.3.4-1mdk-buildroot/usr 2. Binaries directory : $prefix/bin3. PHP code directory ($php_dir) : $prefix/share/pear 4. Documentation base directory : $php_dir/docs
5. Data base directory : $php_dir/data 6. Tests base directory : $php_dir/testsThen the prefix is removed find /var/tmp/php-pear-4.3.4-1mdk-buildroot -type f | xargs perl -pi -e 's|/var/tmp/php-pear-4.3.4-1mdk-buildroot||g;' and files are put into the rpm. The problem is that the install path is stored into ~/.pearrc of the people building. Is there somewhere to put this file so that it becomes the system config ? Else, the config gets wrong : $ pear config-show CONFIGURATION: ==============
PEAR executables directory bin_dir /usr/bin PEAR documentation directory doc_dir /usr/lib/pear/docs PHP extension directory ext_dir /usr/lib/php/extensions PEAR directory php_dir /usr/lib/pear PEAR Installer cache directory cache_dir /tmp/pear/cache PEAR data directory data_dir /usr/lib/pear/data PHP CLI/CGI binary php_bin /usr/bin/php PEAR test directory test_dir /usr/lib/pear/tests