summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-10-22 23:08:55 +0000
committerStig Bakken <ssb@php.net>2002-10-22 23:08:55 +0000
commit886f0bcf7fe1b04d6b8c26ac24651a65211fcf0e (patch)
tree52fa827cfdd1a0dd8c96cc0aeb4b20729254cafe
parentb65e60b0936ea6420749d9fcd6efcf081570a117 (diff)
downloadphp-git-886f0bcf7fe1b04d6b8c26ac24651a65211fcf0e.tar.gz
* make *_dir config parameters available for substitution in the
rpm spec file template
-rw-r--r--pear/PEAR/Command/Package.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php
index 1ea1bf60e3..49b0d92328 100644
--- a/pear/PEAR/Command/Package.php
+++ b/pear/PEAR/Command/Package.php
@@ -474,6 +474,12 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
} else {
$arch = 'noarch';
}
+ $cfk = array('master_server', 'php_dir', 'ext_dir', 'doc_dir',
+ 'bin_dir', 'data_dir', 'test_dir');
+ foreach ($cfg as $k) {
+ $info[$k] = $this->config->get($k);
+ }
+ $info['arch'] = $arch;
$fp = @fopen($spec_template, "r");
if (!$fp) {
return $this->raiseError("could not open RPM spec file template $spec_template: $php_errormsg");