1 Summary: The PHP HTML-embedded scripting language for use with Apache.
2 Summary(fr): Le langage de script embarque-HTML PHP pour Apache.
3 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
10 License: The PHP license (see "LICENSE" file included in distribution)
11 Source0: http://www.php.net/version4/downloads/%{name}-%{version}.tar.gz
15 Source4: http://www.php.net/distributions/manual.tar.gz
16 Source5: http://www.php.net/extra/number4.tar.gz
17 Patch0: php-imap.patch
18 Patch1: php-mysql-socket.patch
19 Patch2: php-mail.patch
20 Patch3: php-ldap.patch
21 Patch4: php-bcmath.patch
23 URL: http://www.php.net/
24 BuildRequires: apache(EAPI)-devel
28 BuildRequires: db-devel >= 3.0.55
29 BuildRequires: freetype-devel
30 BuildRequires: gd-devel
31 BuildRequires: gdbm-devel
32 BuildRequires: imap-devel >= 4.7b-1
33 # I think jdk is better for java
35 BuildRequires: kaffe-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libpng-devel
38 BuildRequires: libtiff-devel
39 BuildRequires: mm-devel
40 BuildRequires: openldap-devel
41 BuildRequires: pam-devel
42 BuildRequires: pdflib-devel >= 3.0
43 #BuildRequires: libxml-devel >= 2.0.0
44 BuildRequires: postgresql-devel
45 BuildRequires: recode-devel >= 3.5
46 BuildRequires: t1lib-devel
47 # BuildRequires: unixODBC-devel
48 BuildRequires: zlib-devel >= 1.0.9
49 #BuildRequires: libmcrypt-devel
50 Requires: apache(EAPI) >= 1.3.9
51 Prereq: /usr/sbin/apxs
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define _pkglibdir %{_libdir}/apache
57 PHP is an HTML-embedded scripting language. PHP attempts to make it
58 easy for developers to write dynamically generated web pages. PHP also
59 offers built-in database integration for several commercial and
60 non-commercial database management systems, so writing a
61 database-enabled web page with PHP is fairly simple. The most common
62 use of PHP coding is probably as a replacement for CGI scripts. The
63 mod_php module enables the Apache web server to understand and process
64 the embedded PHP language in web pages. This package contains PHP
65 version %{version}. If you use applications which specifically rely on
66 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
67 module contained in the phpfi package. If you're just starting with
68 PHP, you should install this package. You'll also need to install the
72 PHP est un langage de script embarque dans le HTM. PHP essaye de
73 rendre simple aux developpeurs d'ecrire des pages web generees
74 dynamiquement. PHP incorpore egalement une integration avec plusieurs
75 systemes de gestion de bases de donnees commerciaux et
76 non-connerciaux, qui rent facile la creation de pages web liees avec
77 des bases de donnees. L'utilisation la plus commune de PHP est
78 probablement en remplacement de scripts CGI. Le module mod_php permet
79 au serveur web apache de comprendre et de traiter le langage PHP
80 integre dans des pages web. Ce package contient PHP version
81 %{version}. Si vous utilisez des applications qui utilisent
82 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
83 dans le package mod_php. Si vous debutez avec PHP, vous devriez
84 installer ce package. Vous aurez egalement besoin d'installer le
88 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
89 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
90 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
91 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
92 zosta³a z jêzyków: C, Java i Perl.
95 Summary: MySQL database module for PHP4
96 Summary(pl): Modu³ bazy danych MySQL dla PHP4
100 Requires: %{name} = %{version}
103 This is a dynamic shared object (DSO) for Apache that will add MySQL
104 database support to PHP4. If you need back-end support for MySQL, you
105 should install this package in addition to the main %{name} package.
107 %description mysql -l pl
108 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
112 Summary: PostgreSQL database module for PHP4
113 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP4
115 Group(fr): Librairies
116 Group(pl): Biblioteki
117 Requires: %{name} = %{version}
120 This is a dynamic shared object (DSO) for Apache that will add
121 PostgreSQL database support to PHP4. If you need back-end support for
122 PostgreSQL, you should install this package in addition to the main
125 %description pgsql -l pl
126 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
129 Summary: GD extension module for PHP4
130 Summary: Modu³ GD dla PHP4
132 Group(fr): Librairies
133 Group(pl): Biblioteki
134 Requires: %{name} = %{version}
137 This is a dynamic shared object (DSO) for Apache that will add GD
138 support to PHP4. You should install this package in addition to the
139 main %{name} package if you want to create and manipulate images with
142 %description gd -l pl
145 Summary: Java extension module for PHP4
146 Summary(pl): Modu³ Javy dla PHP4
148 Group(fr): Librairies
149 Group(pl): Biblioteki
150 Requires: %{name} = %{version}
153 This is a dynamic shared object (DSO) for Apache that will add JAVA
154 support to PHP4. This extension provides a simple and effective means
155 for creating and invoking methods on Java objects from PHP.
157 %description java -l pl
160 Summary: XML extension module for PHP4
161 Summary(pl): Modu³ XML dla PHP4
163 Group(fr): Librairies
164 Group(pl): Biblioteki
165 Requires: %{name} = %{version}
168 This is a dynamic shared object (DSO) for Apache that will add XML
169 support to PHP4. This extension lets you create XML parsers and then
170 define handlers for different XML events. If you want to be able to
171 parse XML documents you should install this package in addition to the
172 main %{name} package.
174 #%description xml -l pl
177 Summary: DBA extension module for PHP4
178 Summary(pl): Modu³ DBA dla PHP4
180 Group(fr): Librairies
181 Group(pl): Biblioteki
182 Requires: %{name} = %{version}
185 This is a dynamic shared object (DSO) for Apache that will add
186 flat-file databases (DBA) support to PHP4.
188 #%description dba -l pl
191 Summary: Calendar extension module for PHP4
192 Summary(pl): Modu³ funkcji kalendarza dla PHP4
194 Group(fr): Librairies
195 Group(pl): Biblioteki
196 Requires: %{name} = %{version}
198 %description calendar
199 This is a dynamic shared object (DSO) for Apache that will add
200 calendar support to PHP4.
202 #%description calendar -l pl
205 Summary: DBase extension module for PHP4
206 Summary(pl): Modu³ DBase dla PHP4
208 Group(fr): Librairies
209 Group(pl): Biblioteki
210 Requires: %{name} = %{version}
213 This is a dynamic shared object (DSO) for Apache that will add DBase
216 #%description dbase -l pl
219 Summary: FilePro extension module for PHP4
220 Summary(pl): Modu³ FilePro dla PHP4
222 Group(fr): Librairies
223 Group(pl): Biblioteki
224 Requires: %{name} = %{version}
227 This is a dynamic shared object (DSO) for Apache that will add FilePro
230 #%description filepro -l pl
233 Summary: POSIX extension module for PHP4
234 Summary(pl): Modu³ POSIX dla PHP4
236 Group(fr): Librairies
237 Group(pl): Biblioteki
238 Requires: %{name} = %{version}
241 This is a dynamic shared object (DSO) for Apache that will add POSIX
242 functions support to PHP4.
244 #%description posix -l pl
247 Summary: PCRE extension module for PHP4
248 Summary(pl): Modu³ PCRE dla PHP4
250 Group(fr): Librairies
251 Group(pl): Biblioteki
252 Requires: %{name} = %{version}
255 This is a dynamic shared object (DSO) for Apache that will add Perl
256 Compatible Regular Expression support to PHP4.
258 #%description pcre -l pl
261 Summary: SysV sem extension module for PHP4
262 Summary(pl): Modu³ SysV sem dla PHP4
264 Group(fr): Librairies
265 Group(pl): Biblioteki
266 Requires: %{name} = %{version}
269 This is a dynamic shared object (DSO) for Apache that will add SysV
270 semafores support to PHP4.
272 #%description sysvsem -l pl
275 Summary: SysV shm extension module for PHP4
276 Summary(pl): Modu³ SysV shm dla PHP4
278 Group(fr): Librairies
279 Group(pl): Biblioteki
280 Requires: %{name} = %{version}
283 This is a dynamic shared object (DSO) for Apache that will add SysV
284 Shared Memory support to PHP4.
286 #%description sysvshm -l pl
289 Summary: NIS (yp) extension module for PHP4
290 Summary(pl): Modu³ NIS (yp) dla PHP4
292 Group(fr): Librairies
293 Group(pl): Biblioteki
294 Requires: %{name} = %{version}
297 This is a dynamic shared object (DSO) for Apache that will add NIS
298 (Yellow Pages) support to PHP4.
300 #%description yp -l pl
303 Summary: bcmath extension module for PHP4
304 Summary(pl): Modu³ bcmath dla PHP4
306 Group(fr): Librairies
307 Group(pl): Biblioteki
308 Requires: %{name} = %{version}
311 This is a dynamic shared object (DSO) for Apache that will add bc
312 style precision math functions support to PHP4.
314 #%description bcmath -l pl
317 Summary: FTP extension module for PHP4
318 Summary(pl): Modu³ FTP dla PHP4
320 Group(fr): Librairies
321 Group(pl): Biblioteki
322 Requires: %{name} = %{version}
325 This is a dynamic shared object (DSO) for Apache that will add FTP
328 #%description ftp -l pl
331 Summary: Zlib extension module for PHP4
332 Summary(pl): Modu³ zlib dla PHP4
334 Group(fr): Librairies
335 Group(pl): Biblioteki
336 Requires: %{name} = %{version}
339 This is a dynamic shared object (DSO) for Apache that will add
340 commpresion (zlib) support to PHP4.
342 #%description zlib -l pl
347 Summary: Online manual for PHP4
348 Summary(pl): Dokumentacja dla PHP4
349 Group: Networking/Daemons
352 Comprehensive documentation for PHP4, viewable through your web
355 %description doc -l pl
356 Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
368 LDFLAGS="-s"; export LDFLAGS
369 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
372 --with-apxs=%{_sbindir}/apxs \
373 --with-config-file-path=%{_sysconfdir}/httpd \
374 --with-exec-dir=%{_bindir} \
376 --enable-magic-quotes \
378 --enable-track-vars \
381 --enable-sysvsem=shared \
382 --enable-sysvshm=shared \
383 --with-regex=system \
386 --with-mysql=shared \
387 --with-mysql-sock=/var/state/mysql/mysql.sock \
389 --with-dbase=shared \
390 --with-filepro=shared \
391 --enable-ftp=shared \
393 --with-pdflib=shared \
394 --with-cpdflib=shared \
396 --with-pgsql=shared,/usr \
398 --enable-bcmath=shared \
399 --enable-calendar=shared \
401 --with-pcre-regex=shared \
402 --enable-posix=shared \
407 --enable-ucd-snmp-hack \
408 --enable-dba=shared \
413 --enable-xml=shared \
420 # --with-snmp=shared \
423 #Syntax error on line 228 of %{_sysconfdir}/httpd/httpd.conf: Cannot load %{_libdir}/apache/libphp4.so into server: %{_libdir}/apache/libphp4.so: undefined symbol: phpi_get_le_gd
424 # Solution: make pdf and cpdf shared
429 # This option get trouble with imap
430 # --enable-versioning \
432 # To old/new libmcrypt ?
433 # --with-mcrypt=shared \
434 # --with-dom=%{_prefix}/X11R6 \
439 rm -rf $RPM_BUILD_ROOT
440 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
441 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc}
443 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
444 install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
446 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
447 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
449 cd $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
451 ln -s manual.html index.html
454 strip --strip-unneeded \
455 $RPM_BUILD_ROOT%{_pkglibdir}/*.so \
456 $RPM_BUILD_ROOT%{_pkglibdir}/php/*.so
459 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
460 MAINTAINERS MODULES_STATUS NEWS TODO* LICENSE Zend/LICENSE \
464 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
465 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
466 if [ -f /var/lock/subsys/httpd ]; then
467 /etc/rc.d/init.d/httpd restart 1>&2
471 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
472 if [ -f /var/lock/subsys/httpd ]; then
473 /etc/rc.d/init.d/httpd restart 1>&2
477 if [ "$1" = "0" ]; then
478 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
479 if [ -f /var/lock/subsys/httpd ]; then
480 /etc/rc.d/init.d/httpd restart 1>&2
485 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
486 echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
487 perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
488 %{_sysconfdir}/httpd/php.ini
490 if [ -f /var/lock/subsys/httpd ]; then
491 /etc/rc.d/init.d/httpd restart 1>&2
495 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
496 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
497 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
498 %{_sysconfdir}/httpd/php.ini
500 if [ -f /var/lock/subsys/httpd ]; then
501 /etc/rc.d/init.d/httpd restart 1>&2
505 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
506 echo "activating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
507 perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' \
508 %{_sysconfdir}/httpd/php.ini
510 if [ -f /var/lock/subsys/httpd ]; then
511 /etc/rc.d/init.d/httpd restart 1>&2
515 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
516 echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
517 perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
518 %{_sysconfdir}/httpd/php.ini
520 if [ -f /var/lock/subsys/httpd ]; then
521 /etc/rc.d/init.d/httpd restart 1>&2
525 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
526 echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
527 perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
528 %{_sysconfdir}/httpd/php.ini
530 if [ -f /var/lock/subsys/httpd ]; then
531 /etc/rc.d/init.d/httpd restart 1>&2
535 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
536 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
537 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
538 %{_sysconfdir}/httpd/php.ini
540 if [ -f /var/lock/subsys/httpd ]; then
541 /etc/rc.d/init.d/httpd restart 1>&2
545 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
546 echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
547 perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
548 %{_sysconfdir}/httpd/php.ini
550 if [ -f /var/lock/subsys/httpd ]; then
551 /etc/rc.d/init.d/httpd restart 1>&2
555 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
556 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
557 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
558 %{_sysconfdir}/httpd/php.ini
560 if [ -f /var/lock/subsys/httpd ]; then
561 /etc/rc.d/init.d/httpd restart 1>&2
565 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
566 echo "activating module 'dba.so' in /etc/httpd/php.ini" 1>&2
567 perl -pi -e 's|^;extension=dba.so|extension=dba.so|g' \
568 %{_sysconfdir}/httpd/php.ini
570 if [ -f /var/lock/subsys/httpd ]; then
571 /etc/rc.d/init.d/httpd restart 1>&2
575 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
576 echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
577 perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
578 %{_sysconfdir}/httpd/php.ini
580 if [ -f /var/lock/subsys/httpd ]; then
581 /etc/rc.d/init.d/httpd restart 1>&2
585 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
586 echo "activating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
587 perl -pi -e 's|^;extension=calendar.so|extension=calendar.so|g' \
588 %{_sysconfdir}/httpd/php.ini
590 if [ -f /var/lock/subsys/httpd ]; then
591 /etc/rc.d/init.d/httpd restart 1>&2
595 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
596 echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
597 perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
598 %{_sysconfdir}/httpd/php.ini
600 if [ -f /var/lock/subsys/httpd ]; then
601 /etc/rc.d/init.d/httpd restart 1>&2
605 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
606 echo "activating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
607 perl -pi -e 's|^;extension=dbase.so|extension=dbase.so|g' \
608 %{_sysconfdir}/httpd/php.ini
610 if [ -f /var/lock/subsys/httpd ]; then
611 /etc/rc.d/init.d/httpd restart 1>&2
615 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
616 echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
617 perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
618 %{_sysconfdir}/httpd/php.ini
620 if [ -f /var/lock/subsys/httpd ]; then
621 /etc/rc.d/init.d/httpd restart 1>&2
626 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
627 echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
628 perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
629 %{_sysconfdir}/httpd/php.ini
631 if [ -f /var/lock/subsys/httpd ]; then
632 /etc/rc.d/init.d/httpd restart 1>&2
636 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
637 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
638 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
639 %{_sysconfdir}/httpd/php.ini
641 if [ -f /var/lock/subsys/httpd ]; then
642 /etc/rc.d/init.d/httpd restart 1>&2
646 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
647 echo "activating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
648 perl -pi -e 's|^;extension=filepro.so|extension=filepro.so|g' \
649 %{_sysconfdir}/httpd/php.ini
651 if [ -f /var/lock/subsys/httpd ]; then
652 /etc/rc.d/init.d/httpd restart 1>&2
656 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
657 echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
658 perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
659 %{_sysconfdir}/httpd/php.ini
661 if [ -f /var/lock/subsys/httpd ]; then
662 /etc/rc.d/init.d/httpd restart 1>&2
666 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
667 echo "activating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
668 perl -pi -e 's|^;extension=pcre.so|extension=pcre.so|g' \
669 %{_sysconfdir}/httpd/php.ini
671 if [ -f /var/lock/subsys/httpd ]; then
672 /etc/rc.d/init.d/httpd restart 1>&2
676 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
677 echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
678 perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
679 %{_sysconfdir}/httpd/php.ini
681 if [ -f /var/lock/subsys/httpd ]; then
682 /etc/rc.d/init.d/httpd restart 1>&2
686 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
687 echo "activating module 'posix.so' in /etc/httpd/php.ini" 1>&2
688 perl -pi -e 's|^;extension=posix.so|extension=posix.so|g' \
689 %{_sysconfdir}/httpd/php.ini
691 if [ -f /var/lock/subsys/httpd ]; then
692 /etc/rc.d/init.d/httpd restart 1>&2
696 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
697 echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
698 perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
699 %{_sysconfdir}/httpd/php.ini
701 if [ -f /var/lock/subsys/httpd ]; then
702 /etc/rc.d/init.d/httpd restart 1>&2
706 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
707 echo "activating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
708 perl -pi -e 's|^;extension=sysvsem.so|extension=sysvsem.so|g' \
709 %{_sysconfdir}/httpd/php.ini
711 if [ -f /var/lock/subsys/httpd ]; then
712 /etc/rc.d/init.d/httpd restart 1>&2
716 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
717 echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
718 perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
719 %{_sysconfdir}/httpd/php.ini
721 if [ -f /var/lock/subsys/httpd ]; then
722 /etc/rc.d/init.d/httpd restart 1>&2
726 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
727 echo "activating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
728 perl -pi -e 's|^;extension=sysvshm.so|extension=sysvshm.so|g' \
729 %{_sysconfdir}/httpd/php.ini
731 if [ -f /var/lock/subsys/httpd ]; then
732 /etc/rc.d/init.d/httpd restart 1>&2
736 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
737 echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
738 perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
739 %{_sysconfdir}/httpd/php.ini
741 if [ -f /var/lock/subsys/httpd ]; then
742 /etc/rc.d/init.d/httpd restart 1>&2
746 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
747 echo "activating module 'yp.so' in /etc/httpd/php.ini" 1>&2
748 perl -pi -e 's|^;extension=yp.so|extension=yp.so|g' \
749 %{_sysconfdir}/httpd/php.ini
751 if [ -f /var/lock/subsys/httpd ]; then
752 /etc/rc.d/init.d/httpd restart 1>&2
756 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
757 echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
758 perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
759 %{_sysconfdir}/httpd/php.ini
761 if [ -f /var/lock/subsys/httpd ]; then
762 /etc/rc.d/init.d/httpd restart 1>&2
766 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
767 echo "activating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
768 perl -pi -e 's|^;extension=ftp.so|extension=ftp.so|g' \
769 %{_sysconfdir}/httpd/php.ini
771 if [ -f /var/lock/subsys/httpd ]; then
772 /etc/rc.d/init.d/httpd restart 1>&2
776 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
777 echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
778 perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
779 %{_sysconfdir}/httpd/php.ini
781 if [ -f /var/lock/subsys/httpd ]; then
782 /etc/rc.d/init.d/httpd restart 1>&2
786 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
787 echo "activating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
788 perl -pi -e 's|^;extension=zlib.so|extension=zlib.so|g' \
789 %{_sysconfdir}/httpd/php.ini
791 if [ -f /var/lock/subsys/httpd ]; then
792 /etc/rc.d/init.d/httpd restart 1>&2
796 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
797 echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
798 perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
799 %{_sysconfdir}/httpd/php.ini
801 if [ -f /var/lock/subsys/httpd ]; then
802 /etc/rc.d/init.d/httpd restart 1>&2
806 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
807 echo "activating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
808 perl -pi -e 's|^;extension=bcmath.so|extension=bcmath.so|g' \
809 %{_sysconfdir}/httpd/php.ini
811 if [ -f /var/lock/subsys/httpd ]; then
812 /etc/rc.d/init.d/httpd restart 1>&2
816 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
817 echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
818 perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
819 %{_sysconfdir}/httpd/php.ini
821 if [ -f /var/lock/subsys/httpd ]; then
822 /etc/rc.d/init.d/httpd restart 1>&2
828 rm -rf $RPM_BUILD_ROOT
831 %defattr(644,root,root,755)
832 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
833 %doc {LICENSE,Zend/LICENSE,MAINTAINERS,MODULES_STATUS,NEWS,TODO*}.gz
835 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
836 %dir %{_pkglibdir}/php
838 #%attr(755,root,root) %{_libdir}/apache/php/*.so
840 /home/httpd/html/icons/*
842 %attr(755,root,root) %{_pkglibdir}/libphp4.so
845 %defattr(644,root,root,755)
846 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
849 %defattr(644,root,root,755)
850 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
853 %defattr(644,root,root,755)
854 %attr(755,root,root) %{_pkglibdir}/php/gd.so
857 %defattr(644,root,root,755)
858 %attr(755,root,root) %{_pkglibdir}/php/xml.so
861 %defattr(644,root,root,755)
862 %attr(755,root,root) %{_pkglibdir}/php/dba.so
865 %defattr(644,root,root,755)
866 %attr(755,root,root) %{_pkglibdir}/php/dbase.so
869 %defattr(644,root,root,755)
870 %attr(755,root,root) %{_pkglibdir}/php/filepro.so
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{_pkglibdir}/php/pcre.so
877 %defattr(644,root,root,755)
878 %attr(755,root,root) %{_pkglibdir}/php/posix.so
881 %defattr(644,root,root,755)
882 %attr(755,root,root) %{_pkglibdir}/php/sysvsem.so
885 %defattr(644,root,root,755)
886 %attr(755,root,root) %{_pkglibdir}/php/sysvshm.so
889 %defattr(644,root,root,755)
890 %attr(755,root,root) %{_pkglibdir}/php/yp.so
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_pkglibdir}/php/calendar.so
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_pkglibdir}/php/bcmath.so
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{_pkglibdir}/php/ftp.so
905 %defattr(644,root,root,755)
906 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
913 %defattr(644,root,root,755)
914 /home/httpd/html/docs/php4-doc