← Back to team overview

ius-coredev team mailing list archive

[Bug 992065] Re: litespeed support for php54

 

** Changed in: ius
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/992065

Title:
  litespeed support for php54

Status in IUS Community Project:
  Fix Released

Bug description:
  Litespeed support was added in php53u in bug #898674 . It would be
  great to see it in PHP 5.4 too.

  
  $ diff -u php54-ius.spec php54-litespeed-for-ius.spec 
  --- php54-ius.spec	2012-04-30 12:42:22.799526852 -0400
  +++ php54-litespeed-for-ius.spec	2012-04-26 14:28:16.483641639 -0400
  @@ -29,10 +29,12 @@
   %global with_zip     1
   %global with_libzip  1
   %global zipmod       zip
  +%global with_litespeed	1
   %else
   %global with_zip     0
   %global with_libzip  0
   %global zipmod       %nil
  +%global with_litespeed	1
   %endif
   
   %global real_name php
  @@ -42,7 +44,7 @@
   Summary: PHP scripting language for creating dynamic web sites
   Name: %{name}
   Version: 5.4.0
  -Release: 6.ius%{?dist}
  +Release: 7.ius%{?dist}
   License: PHP
   Group: Development/Languages
   URL: http://www.php.net/
  @@ -584,6 +586,18 @@
   The php-dba package contains a dynamic shared object that will add
   support for using the DBA database abstraction layer to PHP.
   
  +%if 0%{?with_litespeed}
  +%package litespeed
  +Summary: API for the Litespeed web server
  +Group: Development/Languages
  +Requires: %{name}-common = %{version}-%{release}
  +Provides: %{real_name}-litespeed = %{version}-%{release}
  +Provides: %{name}-litespeed = %{version}-%{release}
  +
  +%description litespeed
  +The php-litespeed package contains the binary used by the Litespeed web server.
  +%endif
  +
   %package mcrypt
   Summary: Standard PHP module provides mcrypt library support
   Group: Development/Languages
  @@ -709,7 +723,7 @@
   cp ext/gd/libgd/README gd_README
   
   # Multiple builds for multiple SAPIs
  -mkdir build-cgi build-apache build-embedded build-zts build-ztscli \
  +mkdir build-cgi build-apache build-embedded build-zts build-ztscli build-litespeed \
   %if %{with_fpm}
       build-fpm
   %endif
  @@ -955,6 +969,20 @@
         ${without_shared}
   popd
   
  +%if 0%{?with_litespeed}
  +# Build litespeed module
  +pushd build-litespeed
  +build --libdir=%{_libdir}/php \
  +      --with-litespeed \
  +      --enable-pdo=shared \
  +      --with-mysql=shared,%{_prefix} \
  +      --with-mysqli=shared,%{mysql_config} \
  +      --with-pdo-mysql=shared,%{mysql_config} \
  +      --with-pdo-sqlite=shared,%{_prefix} \
  +      ${without_shared}
  +popd
  +%endif
  +
   %if %{with_fpm}
   # Build php-fpm
   pushd build-fpm
  @@ -1145,6 +1173,11 @@
   # install the ZTS DSO
   install -m 755 build-zts/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/libphp5-zts.so
   
  +%if 0%{?with_litespeed}
  +# install the php litespeed binary
  +install -m 755 build-litespeed/sapi/litespeed/php %{buildroot}%{_bindir}/php-ls
  +%endif
  +
   # Apache config fragment
   install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
   install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
  @@ -1352,6 +1385,12 @@
   %{_libdir}/libphp5.so
   %{_libdir}/libphp5-%{version}%{?rcver}.so
   
  +%if 0%{?with_litespeed}
  +%files litespeed
  +%defattr(-,root,root)
  +%{_bindir}/php-ls
  +%endif
  +
   %files pgsql -f files.pgsql
   %files mysql -f files.mysql
   %files odbc -f files.odbc
  @@ -1381,6 +1420,9 @@
   
   
   %changelog
  +* Thu Apr 26 2012 Mark McKinstry <mmckinst@xxxxxxxxxxx> - 5.4.0-7.ius
  +- add litespeed support
  +
   * Mon Apr 23 2012 Jeffrey Ness <jeffrey.ness@xxxxxxxxxxxxx> 5.4.0-6
   - Removing %%{isasuffix}
   
  $

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/992065/+subscriptions


References