Ticket #1404: patch-portfile-php4

File patch-portfile-php4, 2.0 KB (added by julien.touche@…, 21 years ago)

patch php4

Line 
1--- Portfile.orig       Fri Jan  9 19:20:15 2004
2+++ Portfile    Fri Jan  9 19:22:09 2004
3@@ -173,12 +173,12 @@
4                        file mkdir ${destroot}${prefix}/libexec/apache
5                        system "install -m 755 ${worksrcpath}/libs/libphp4.so ${destroot}${prefix}/libexec/apache/"
6                        file mkdir ${destroot}${prefix}/etc/apache/extras-conf
7-                       system "install -o root -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}$prefix/etc/apache/extras-conf"
8+                       system "install -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}$prefix/etc/apache/extras-conf"
9                } else {
10                        file mkdir ${destroot}${prefix}/apache/libexec
11                        system "install -m 755 ${worksrcpath}/libs/libphp4.so ${destroot}${prefix}/apache/libexec/"
12                        file mkdir ${destroot}${prefix}/apache/conf/extras-conf
13-                       system "install -o root -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}${prefix}/apache/conf/extras-conf"
14+                       system "install -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}${prefix}/apache/conf/extras-conf"
15                }
16        }
17       
18@@ -186,7 +186,7 @@
19                file mkdir ${destroot}${apache2_path}/modules
20                system "install -m 755 ${worksrcpath}/libs/libphp4.so ${destroot}${apache_path}/modules/"
21                file mkdir ${destroot}${apache2_path}/conf/extras-conf
22-               system "install -o root -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}${apache2_path}/conf/extras-conf"
23+               system "install -m 755 -c  ${portpath}/files/mod_php.conf ${destroot}${apache2_path}/conf/extras-conf"
24        }
25 
26        if { [variant_isset cli] } {
27@@ -213,14 +213,14 @@
28                }
29               
30                ui_msg "apxs -a -e -n \"php4\" libphp4.so\n"
31-               ui_msg "* copy /etc/php.ini-dist to /etc/php.ini"
32+               ui_msg "* copy ${prefix}/etc/php.ini-dist to ${prefix}/etc/php.ini"
33        }
34       
35        if { [variant_isset apache2] } {
36                ui_msg "cd ${prefix}/apache2/libs"
37                ui_msg "apxs -a -e -n \"php4\" libphp4.so\n"
38-               ui_msg "* copy /etc/php.ini-dist to /etc/php.ini"
39+               ui_msg "* copy ${prefix}/etc/php.ini-dist to ${prefix}/etc/php.ini"
40        }
41       
42-       ui_msg "* copy /etc/pear.conf.sample to /etc/pear.conf"
43+       ui_msg "* copy ${prefix}/etc/pear.conf.sample to ${prefix}/etc/pear.conf"
44 }