[56403] trunk/dports/lang/php5

ryandesign at macports.org ryandesign at macports.org
Wed Aug 26 22:00:01 PDT 2009


Revision: 56403
          http://trac.macports.org/changeset/56403
Author:   ryandesign at macports.org
Date:     2009-08-26 22:00:00 -0700 (Wed, 26 Aug 2009)
Log Message:
-----------
php5: add variant for suhosin patch; see #20681

Modified Paths:
--------------
    trunk/dports/lang/php5/Portfile
    trunk/dports/lang/php5/files/patch-bind.diff
    trunk/dports/lang/php5/files/patch-ext-mysqlnd-mysqlnd_portability.h.diff

Modified: trunk/dports/lang/php5/Portfile
===================================================================
--- trunk/dports/lang/php5/Portfile	2009-08-27 04:13:24 UTC (rev 56402)
+++ trunk/dports/lang/php5/Portfile	2009-08-27 05:00:00 UTC (rev 56403)
@@ -27,9 +27,10 @@
     be used for command-line scripting.
 
 checksums \
-    md5     846760cd655c98dfd86d6d97c3d964b0 \
-    sha1    934700941d216c453376e3bf24347041cf12c6dc \
-    rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
+    [suffix ${distname}] \
+        md5     846760cd655c98dfd86d6d97c3d964b0 \
+        sha1    934700941d216c453376e3bf24347041cf12c6dc \
+        rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
 
 depends_build \
     port:pkgconfig \
@@ -45,6 +46,8 @@
     port:readline \
     port:zlib
 
+# Use -p1 to accommodate the Suhosin patch
+patch.pre_args          -p1
 patchfiles \
     patch-ext-mysqlnd-mysqlnd_portability.h.diff \
     patch-bind.diff
@@ -235,6 +238,24 @@
     }
 }
 
+variant suhosin description {Add Suhosin patch} {
+    pre-fetch {
+        if {"darwin" == ${os.platform} && ${os.major} < 9} {
+            ui_error "The suhosin variant requires Mac OS X 10.5 or greater."
+            return -code error "incompatible Mac OS X version"
+        }
+    }
+    set suhosin_patch_version   ${version}-0.9.8-BETA-1
+    set suhosin_patch           suhosin-patch-${suhosin_patch_version}.patch.gz
+    patch_sites-append          http://download.suhosin.org/
+    patchfiles-append           ${suhosin_patch}
+    checksums-append \
+        ${suhosin_patch} \
+            md5     62dc36545b86bf86e44ada1fccc17d0a \
+            sha1    8bad461c7b16febc1d2f6bcbf4c8e10428569591 \
+            rmd160  d89fd850dbba853aa881454be7995e2d6dff2490
+}
+
 destroot.args \
     INSTALL_ROOT=${destroot}
 

Modified: trunk/dports/lang/php5/files/patch-bind.diff
===================================================================
--- trunk/dports/lang/php5/files/patch-bind.diff	2009-08-27 04:13:24 UTC (rev 56402)
+++ trunk/dports/lang/php5/files/patch-bind.diff	2009-08-27 05:00:00 UTC (rev 56403)
@@ -1,5 +1,5 @@
---- ext/standard/config.m4.orig	2009-01-31 18:05:14.000000000 +0200
-+++ ext/standard/config.m4	2009-01-31 18:06:03.000000000 +0200
+--- a/ext/standard/config.m4.orig	2009-01-31 18:05:14.000000000 +0200
++++ b/ext/standard/config.m4	2009-01-31 18:06:03.000000000 +0200
 @@ -249,10 +249,10 @@
  dnl Detect library functions needed by php dns_xxx functions
  dnl ext/standard/dns.h will collect these in a single define: HAVE_DNS_FUNCS

Modified: trunk/dports/lang/php5/files/patch-ext-mysqlnd-mysqlnd_portability.h.diff
===================================================================
--- trunk/dports/lang/php5/files/patch-ext-mysqlnd-mysqlnd_portability.h.diff	2009-08-27 04:13:24 UTC (rev 56402)
+++ trunk/dports/lang/php5/files/patch-ext-mysqlnd-mysqlnd_portability.h.diff	2009-08-27 05:00:00 UTC (rev 56403)
@@ -1,6 +1,6 @@
 http://trac.macports.org/ticket/20833
---- ext/mysqlnd/mysqlnd_portability.h	2009/08/25 14:14:23	287694
-+++ ext/mysqlnd/mysqlnd_portability.h	2009/08/25 14:25:01	287695
+--- a/ext/mysqlnd/mysqlnd_portability.h	2009/08/25 14:14:23	287694
++++ b/ext/mysqlnd/mysqlnd_portability.h	2009/08/25 14:25:01	287695
 @@ -174,11 +174,16 @@
  #define MYSQLND_LLU_SPEC "%lu"
  #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090826/9a714870/attachment.html>


More information about the macports-changes mailing list