ius-coredev team mailing list archive
-
ius-coredev team
-
Mailing list archive
-
Message #01198
[Merge] lp:~mmckinst/ius/php52 into lp:~ius-coredev/ius/php52
Mark McKinstry has proposed merging lp:~mmckinst/ius/php52 into lp:~ius-coredev/ius/php52.
Requested reviews:
IUS Core Development (ius-coredev)
For more details, see:
https://code.launchpad.net/~mmckinst/ius/php52/+merge/84152
add litespeed support
--
https://code.launchpad.net/~mmckinst/ius/php52/+merge/84152
Your team IUS Core Development is requested to review the proposed merge of lp:~mmckinst/ius/php52 into lp:~ius-coredev/ius/php52.
=== added file 'SOURCES/php-litespeed-5.5.tgz'
Binary files SOURCES/php-litespeed-5.5.tgz 1970-01-01 00:00:00 +0000 and SOURCES/php-litespeed-5.5.tgz 2011-12-01 18:21:04 +0000 differ
=== modified file 'SPECS/php52.spec'
--- SPECS/php52.spec 2011-05-05 18:01:41 +0000
+++ SPECS/php52.spec 2011-12-01 18:21:04 +0000
@@ -55,6 +55,7 @@
Source3: macros.php
Source4: macros.pear
Source5: README.psa-compat
+Source6: php-litespeed-5.5.tgz
Patch1: php-5.2.4-gnusrc.patch
Patch2: php-4.3.3-install.patch
@@ -436,6 +437,16 @@
The php-dba package contains a dynamic shared object that will add
support for using the DBA database abstraction layer to PHP.
+%package litespeed
+Summary: API for the Litespeed web server
+Group: Development/Languages
+Requires: %{name}-common = %{version}-%{release}
+Provides: %{real_name}-litespeed = %{version}-%{release}
+Conflicts: %{real_name}-litespeed < %{base_ver}
+
+%description litespeed
+The php-litespeed package contains the binary used by the Litespeed web server.
+
%package tidy
Summary: Utility to clean up and pretty print HTML/XHTML/XML
Group: Development/Languages
@@ -556,7 +567,7 @@
cp ext/gd/libgd/README gd_README
# Source is built twice: once for /usr/bin/php, once for the Apache DSO.
-mkdir build-cgi build-apache
+mkdir build-cgi build-apache build-litespeed
# Remove bogus test; position of read position after fopen(, "a+")
# is not defined by C standard, so don't presume anything.
@@ -591,6 +602,10 @@
%build
+pushd sapi
+tar xzf %{SOURCE6}
+popd
+
# Force use of system libtool:
libtoolize --force --copy
cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4
@@ -724,6 +739,16 @@
--disable-json
popd
+# build Litespeed module
+pushd build-litespeed
+build --with-litespeed \
+ --without-mysql --without-gd \
+ --without-odbc --disable-dom \
+ --disable-dba --without-unixODBC \
+ --disable-pdo --disable-xmlreader --disable-xmlwriter \
+ --disable-json
+popd
+
%check
cd build-apache
# Run tests, using the CLI SAPI
@@ -761,6 +786,9 @@
make install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
popd
+# Install the Litespede module
+install -m 755 build-litespeed/sapi/litespeed/php %{buildroot}%{_bindir}/php-ls
+
# Install the default configuration file and icons
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
@@ -918,6 +946,10 @@
%{_bindir}/phpize
%{_mandir}/man1/phpize.1*
+%files litespeed
+%defattr(-,root,root)
+%{_bindir}/php-ls
+
%files devel
%defattr(-,root,root)
%{_bindir}/php-config
@@ -1697,3 +1729,4 @@
* Tue May 6 2003 Joe Orton <jorton@xxxxxxxxxx> 4.3.1-1
- update to 4.3.1; run test suite
- open extension modules with RTLD_NOW rather than _LAZY
+