diff --git a/AIX/php5/Build-notes b/AIX/php5/Build-notes new file mode 100644 index 0000000..e0e24a6 --- /dev/null +++ b/AIX/php5/Build-notes @@ -0,0 +1,11 @@ +Build notes + +1. download php-5.2.6.tar.gz (version 5.2.6) from http://www.php.net/releases/ and copy it to /opt/freeware/src/packages/SOURCES/ directory. +2. copy the php5.spec file to /opt/freeware/src/packages/SPECS/ directory. +3. cd to /opt/freeware/src/packages/SPECS/ directory; +4. run "rpm -bb php5.spec"; + +Then, you will get the php5 rpm package for the IBM HTTP Server in the directory /opt/freeware/src/packages/ppc/. + +!!! +NOTE: this php5 rpm package is only used for the IBM HTTP Server V6.1.0.0 or higher, it cannot be used for original apache2 and IBM HTTP Server v2.0.47.1 or others. diff --git a/AIX/php5/README b/AIX/php5/README new file mode 100644 index 0000000..bfdeaa5 --- /dev/null +++ b/AIX/php5/README @@ -0,0 +1,28 @@ +The following is the list of the required when using xCAT web GUI on AIX. +Please review this list to make sure there are no conflicts with any software currently installed on your system. + +Not available: +1. ihs.6100.aix.ppc32.tar.gz +2. php5 rpm package for IHS + +Available from xcat-web-dep: + +1. bzip2-1.0.5-1.aix5.2.ppc.rpm +2. freetype-1.3.1-9.aix5.1.ppc.rpm +3. freetype2-2.1.7-5.aix5.1.ppc.rpm +4. gd-1.8.4-3.aix5.1.ppc.rpm +5. gd-progs-1.8.4-3.aix5.1.ppc.rpm +6. gettext-0.10.40-8.aix5.2.ppc.rpm +7. libjpeg-6b-6.aix5.1.ppc.rpm +8. libpng-1.2.32-2.aix5.2.ppc.rpm +9. libxml2-2.6.21-3.aix5.2.ppc.rpm +10. zlib-1.2.3-4.aix5.2.ppc.rpm + +The bzip2, freetype, freetype2, gd, gd-progs, gettext, libjpeg, libpng, libxml2 and zlib packages come from the "AIX Toolbox for Linux Applications" web site. (http://www-03.ibm.com/system/p/os/aix/linux). The packages have been included here for your convenience. For details on the source and license etc. please refer to the Toolbox site. + +The IBM HTTP Server V6.1 (named "ihs.6100.aix.ppc32.tar.gz") was downloaded from the "IBM HTTP Server" web site. (http://www-01.ibm.com/software/webservers/httpservers/). IBM HTTP Server is based on the Apache HTTP Server (httpd.apache.org), developed by the Apache Software Foundation. There're many third-party modules written for Apache 2.0 that can be used for IBM HTTP Server. It is availabe for use free of charge but without IBM support. We don't pack the IBM HTTP Server into xcat-web-dep because of the underlying legal issues, you HAVE TO download the IBM HTTP Server V6.1 from http://www-01.ibm.com/software/webservers/httpservers/. + +The PHP v5.2.6 software was downloaded from http://www.php.net/releases/ and you can follow the file "Build-notes" to get the RPM package for IBM HTTP Server on AIX. This RPM package was built without MySQL support. + +!!! +NOTE: before installing the PHP5 RPM package, the IBM HTTP Server package ("ihs.6100.aix.ppc32.tar.gz") must be installed, or else the configuration file of PHP for IBM HTTP Server will missed. diff --git a/AIX/php5/bzip2-1.0.5-1.aix5.2.ppc.rpm b/AIX/php5/bzip2-1.0.5-1.aix5.2.ppc.rpm new file mode 100644 index 0000000..c1732eb Binary files /dev/null and b/AIX/php5/bzip2-1.0.5-1.aix5.2.ppc.rpm differ diff --git a/AIX/php5/freetype-1.3.1-9.aix5.1.ppc.rpm b/AIX/php5/freetype-1.3.1-9.aix5.1.ppc.rpm new file mode 100644 index 0000000..d89733e Binary files /dev/null and b/AIX/php5/freetype-1.3.1-9.aix5.1.ppc.rpm differ diff --git a/AIX/php5/freetype2-2.1.7-5.aix5.1.ppc.rpm b/AIX/php5/freetype2-2.1.7-5.aix5.1.ppc.rpm new file mode 100644 index 0000000..094f4cf Binary files /dev/null and b/AIX/php5/freetype2-2.1.7-5.aix5.1.ppc.rpm differ diff --git a/AIX/php5/gd-1.8.4-3.aix5.1.ppc.rpm b/AIX/php5/gd-1.8.4-3.aix5.1.ppc.rpm new file mode 100644 index 0000000..fbfba08 Binary files /dev/null and b/AIX/php5/gd-1.8.4-3.aix5.1.ppc.rpm differ diff --git a/AIX/php5/gd-progs-1.8.4-3.aix5.1.ppc.rpm b/AIX/php5/gd-progs-1.8.4-3.aix5.1.ppc.rpm new file mode 100644 index 0000000..700108b Binary files /dev/null and b/AIX/php5/gd-progs-1.8.4-3.aix5.1.ppc.rpm differ diff --git a/AIX/php5/gettext-0.10.40-8.aix5.2.ppc.rpm b/AIX/php5/gettext-0.10.40-8.aix5.2.ppc.rpm new file mode 100644 index 0000000..273be80 Binary files /dev/null and b/AIX/php5/gettext-0.10.40-8.aix5.2.ppc.rpm differ diff --git a/AIX/php5/libjpeg-6b-6.aix5.1.ppc.rpm b/AIX/php5/libjpeg-6b-6.aix5.1.ppc.rpm new file mode 100644 index 0000000..f765df1 Binary files /dev/null and b/AIX/php5/libjpeg-6b-6.aix5.1.ppc.rpm differ diff --git a/AIX/php5/libpng-1.2.32-2.aix5.2.ppc.rpm b/AIX/php5/libpng-1.2.32-2.aix5.2.ppc.rpm new file mode 100644 index 0000000..a466ac2 Binary files /dev/null and b/AIX/php5/libpng-1.2.32-2.aix5.2.ppc.rpm differ diff --git a/AIX/php5/libxml2-2.6.21-3.aix5.2.ppc.rpm b/AIX/php5/libxml2-2.6.21-3.aix5.2.ppc.rpm new file mode 100644 index 0000000..875cfdb Binary files /dev/null and b/AIX/php5/libxml2-2.6.21-3.aix5.2.ppc.rpm differ diff --git a/AIX/php5/php5.spec b/AIX/php5/php5.spec new file mode 100644 index 0000000..68b344d --- /dev/null +++ b/AIX/php5/php5.spec @@ -0,0 +1,116 @@ +%define version 5.2.6 +%define so_version 5 +%define release 0 + +Name: php +Summary: PHP: Hypertext Preprocessor +Group: Development/Languages +Version: %{version} +Release: %{release} +License: The PHP license (see "LICENSE" file included in distribution) +Source: php-%{version}.tar.gz +#Icon: php.gif +URL: http://www.php.net/ +Packager: PHP Group + +BuildRoot: /var/tmp/php-%{version} + +BuildRequires: make + +BuildRequires: gd-devel >= 1.8.4 +BuildRequires: bzip2, libpng-devel, libjpeg-devel, zlib-devel +BuildRequires: freetype2-devel >= 2.1.7, freetype-devel >= 1.3.1 +BuildRequires: libxml2-devel >= 2.6.21 + +Provides: mod_php = %{version}-%{release} + +Requires: gd >= 1.8.4, gd-progs >= 1.8.4 +Requires: bzip2, libjpeg, libpng, zlib +Requires: freetype2 >= 2.1.7, freetype >= 1.3.1 +Requires: gettext >= 0.10.40, libxml2 >= 2.6.21 + +%description +PHP is an HTML-embedded scripting language. Much of its syntax is +borrowed from C, Java and Perl with a couple of unique PHP-specific +features thrown in. The goal of the language is to allow web +developers to write dynamically generated pages quickly. + +%prep +export PATH=/opt/freeware/bin:/usr/IBM/HTTPServer/bin:$PATH +export LD_LIBRARY_PATH=/usr/IBM/HTTPServer/lib:$LD_LIBRARY_PATH +%{__rm} -rf %{buildroot} +%setup -q + +%build +set -x +%configure \ + --with-config-file-path=/usr/IBM/HTTPServer/conf/php.ini \ + --enable-shared \ + --disable-static \ + --enable-maintainer-zts \ + --enable-calendar \ + --enable-bcmath \ + --enable-sockets \ + --enable-zip \ + --with-gd \ + --with-zlib \ + --with-libxml-dir=/opt/freeware \ + --with-zlib-dir=/opt/freeware \ + --with-bz2 \ + --with-gettext=/opt/freeware \ + --with-jpeg-dir=/opt/freeware \ + --with-png-dir=/opt/freeware \ + --with-freetype-dir=/opt/freeware \ + --with-openssl +make + +%install +make INSTALL_ROOT=%{buildroot} install +cp php.ini-recommended %{buildroot}/%{_sysconfdir} + +%preun +rm /usr/IBM/HTTPServer/conf/php.ini +cp /usr/IBM/HTTPServer/conf/httpd.conf.bak /usr/IBM/HTTPServer/conf/http.conf +/usr/IBM/HTTPServer/bin/apachectl stop + +%postun +/usr/IBM/HTTPServer/bin/apachectl start + +%post +cp %{_sysconfdir}/php.ini-recommended /usr/IBM/HTTPServer/conf/php.ini + +cp /usr/IBM/HTTPServer/conf/httpd.conf /usr/IBM/HTTPServer/conf/httpd.conf.bak + +sed 's/^\(DirectoryIndex index\.html.*\)\s*$/\1 index.php/' /usr/IBM/HTTPServer/conf/httpd.conf > /usr/IBM/HTTPServer/conf/httpd.tmp +mv /usr/IBM/HTTPServer/conf/httpd.tmp /usr/IBM/HTTPServer/conf/httpd.conf + +cat <>/usr/IBM/HTTPServer/conf/httpd.conf +ScriptAlias /php5-cgi /opt/freeware/bin/php-cgi +Action php-cgi /php5-cgi +AddHandler php-cgi .php +END + +/usr/IBM/HTTPServer/bin/apachectl stop +/usr/IBM/HTTPServer/bin/apachectl start + +%files +%defattr (-,root,system) +%{_sysconfdir}/php.ini-recommended +%{_bindir}/pear +%{_bindir}/peardev +%{_bindir}/pecl +%{_bindir}/php +%{_bindir}/php-cgi +%{_bindir}/php-config +%{_bindir}/phpize + +%{_libdir}/php + +%{_includedir}/php + +%config(noreplace) %{_sysconfdir}/pear.conf + +%{_mandir}/man1/php.1 +%{_mandir}/man1/php-config.1 +%{_mandir}/man1/phpize.1 + diff --git a/AIX/php5/zlib-1.2.3-4.aix5.2.ppc.rpm b/AIX/php5/zlib-1.2.3-4.aix5.2.ppc.rpm new file mode 100644 index 0000000..28cff51 Binary files /dev/null and b/AIX/php5/zlib-1.2.3-4.aix5.2.ppc.rpm differ