[MacPorts] #7549: UPDATE php5-1.20

MacPorts noreply at macports.org
Thu Mar 24 06:13:19 PDT 2016


#7549: UPDATE php5-1.20
--------------------------+--------------------------------
  Reporter:  cremes@…     |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  1.2
Resolution:  fixed        |   Keywords:
      Port:  php5         |
--------------------------+--------------------------------
Changes (by ryandesign@…):

 * type:  defect => enhancement
 * port:   => php5


Old description:

> php5-1.20
>
> Original portfile can be found at:
>
> This update adds a new variant called fastcgi. When chosen it installs
> the php-fcgi binary in the appropriate bin directory. It lives side-by-
> side with the CLI binary and does not overwrite it. This variant will
> likely be used by people looking to install lighttpd or other non-Apache
> webservers.
>
> Comment: the fastcgi variant turns off the apache variant behavior which
> is otherwise part of the default build. This shouldn't be a problem for
> people specifically building for non-Apache environments. Building with
> other variants leaves the Apache variant defaults intact.
>
> Patch:
>
> Index: Portfile
> ===================================================================
> RCS file:
> /Volumes/src/cvs/od/projects/darwinports/dports/www/php5/Portfile,v
> retrieving revision 1.20
> diff -u -d -b -w -u -r1.20 Portfile
> --- Portfile    26 Jan 2006 02:21:42 -0000      1.20
> +++ Portfile    1 Mar 2006 16:50:05 -0000
> @@ -128,6 +128,12 @@
>         configure.args-append   --with-apxs2=${prefix}/apache2/bin/apxs
>  }
>
> +variant fastcgi {
> +       configure.args-append --enable-fastcgi \
> +                                       --enable-force-cgi-redirect \
> +                                       --enable-memory-limit
> +}
> +
>  variant mysql3 {
>         depends_lib-append      port:mysql
>         configure.args-delete   --without-mysql
> @@ -156,8 +162,8 @@
>         configure.args-append   --with-pgsql=${prefix}/lib/pgsql8/bin/
>  }
>
> -# if no apache/apache2 variant is set, we set it (waiting a better
> default variant management)
> -if { ![variant_isset apache] && ![variant_isset apache2] } {
> +# if no apache/apache2/fastcgi variant is set, we set it (need better
> default variant management)
> +if { ![variant_isset apache] && ![variant_isset apache2] &&
> ![variant_isset fastcgi] } {
>         if { ! [variant_isset macosx] } {
>                 depends_lib-append      path:${prefix}/sbin/apxs:apache
>                 configure.args-append   --with-apxs=${prefix}/sbin/apxs
> @@ -171,6 +177,11 @@
>  destroot.target        install-cli install-pear install-build install-
> headers install-programs
>
>  post-destroot  {
> +       # copy fastcgi php binary to the bin dir under a new name so it
> doesn't overwrite cli version
> +       if { [variant_isset fastcgi] } {
> +               xinstall -m 755 ${worksrcpath}/sapi/cgi/php
> ${destroot}${prefix}/bin/php-fcgi
> +       }
> +
>         #copy module
>         if { [variant_isset apache] } {

New description:

 php5-1.20

 Original portfile can be found at:

 This update adds a new variant called fastcgi. When chosen it installs the
 php-fcgi binary in the appropriate bin directory. It lives side-by-side
 with the CLI binary and does not overwrite it. This variant will likely be
 used by people looking to install lighttpd or other non-Apache webservers.

 Comment: the fastcgi variant turns off the apache variant behavior which
 is otherwise part of the default build. This shouldn't be a problem for
 people specifically building for non-Apache environments. Building with
 other variants leaves the Apache variant defaults intact.

 Patch:

 {{{
 Index: Portfile
 ===================================================================
 RCS file:
 /Volumes/src/cvs/od/projects/darwinports/dports/www/php5/Portfile,v
 retrieving revision 1.20
 diff -u -d -b -w -u -r1.20 Portfile
 --- Portfile    26 Jan 2006 02:21:42 -0000      1.20
 +++ Portfile    1 Mar 2006 16:50:05 -0000
 @@ -128,6 +128,12 @@
         configure.args-append   --with-apxs2=${prefix}/apache2/bin/apxs
  }

 +variant fastcgi {
 +       configure.args-append --enable-fastcgi \
 +                                       --enable-force-cgi-redirect \
 +                                       --enable-memory-limit
 +}
 +
  variant mysql3 {
         depends_lib-append      port:mysql
         configure.args-delete   --without-mysql
 @@ -156,8 +162,8 @@
         configure.args-append   --with-pgsql=${prefix}/lib/pgsql8/bin/
  }

 -# if no apache/apache2 variant is set, we set it (waiting a better
 default variant management)
 -if { ![variant_isset apache] && ![variant_isset apache2] } {
 +# if no apache/apache2/fastcgi variant is set, we set it (need better
 default variant management)
 +if { ![variant_isset apache] && ![variant_isset apache2] &&
 ![variant_isset fastcgi] } {
         if { ! [variant_isset macosx] } {
                 depends_lib-append      path:${prefix}/sbin/apxs:apache
                 configure.args-append   --with-apxs=${prefix}/sbin/apxs
 @@ -171,6 +177,11 @@
  destroot.target        install-cli install-pear install-build install-
 headers install-programs

  post-destroot  {
 +       # copy fastcgi php binary to the bin dir under a new name so it
 doesn't overwrite cli version
 +       if { [variant_isset fastcgi] } {
 +               xinstall -m 755 ${worksrcpath}/sapi/cgi/php
 ${destroot}${prefix}/bin/php-fcgi
 +       }
 +
         #copy module
         if { [variant_isset apache] } {
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/7549#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list