Hello,
I’d like to change this spec file to install php5 in an other location than /usr (the value of my _prefix variable) and /etc (the syscoonfdir variable)
In fact, as you did the Spec file could you please tell me what could be the best way :
- 1 -
Create a specific ~/.rpmmacros files and change all needs rep to what I want (for example prefix /usr/local/php5, sysconfdir /etc/php5, …)
then simply recreate the RPM and isntall it
So in this case php5 will be installed in a specific dir
- 2 -
Find a way to change the bin php in php5 (to have /usr/bin/php5). and every others files that could corrupt our existing php4 installation, like /etc/php5.ini rather php.ini, etc…
Which solution should be the easiest one from your SPEC file ?
(I personnaly thing create a tmp ~/.rpmmacros to change the variables prefix, sysconfdir, bindir, etc… or maybe just change these kinds of things in the SPEC file directly fdor the ./configure)
I also see that you’ve done a double Make Install one for the CGI and one for the DSO
Could I also add one for CLI (by creating a 3rd dir in buildroot and perform the same pushd than you do and perform a make install-cli)
Any directions/advises you could give me of how I could change your sprm to have PHP5 installed on a box with an existing PHP4
If it is not a good solution I’ll just install php5 manually but I’d really prefer RPMs
Thanks for your directions or advises
Pascal