Ticket #20681: php5-suhosin-ryandesign.diff

File php5-suhosin-ryandesign.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • files/patch-bind.diff

     
    1 --- ext/standard/config.m4.orig 2009-01-31 18:05:14.000000000 +0200
    2 +++ ext/standard/config.m4      2009-01-31 18:06:03.000000000 +0200
     1--- a/ext/standard/config.m4.orig       2009-01-31 18:05:14.000000000 +0200
     2+++ b/ext/standard/config.m4    2009-01-31 18:06:03.000000000 +0200
    33@@ -249,10 +249,10 @@
    44 dnl Detect library functions needed by php dns_xxx functions
    55 dnl ext/standard/dns.h will collect these in a single define: HAVE_DNS_FUNCS
  • Portfile

     
    2727    be used for command-line scripting.
    2828
    2929checksums \
    30     md5     846760cd655c98dfd86d6d97c3d964b0 \
    31     sha1    934700941d216c453376e3bf24347041cf12c6dc \
    32     rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
     30    [suffix ${distname}] \
     31        md5     846760cd655c98dfd86d6d97c3d964b0 \
     32        sha1    934700941d216c453376e3bf24347041cf12c6dc \
     33        rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
    3334
    3435depends_build \
    3536    port:pkgconfig \
     
    4546    port:readline \
    4647    port:zlib
    4748
     49# Use -p1 to accommodate the Suhosin patch
     50patch.pre_args          -p1
    4851patchfiles \
    4952    patch-bind.diff
    5053
     
    234237    }
    235238}
    236239
     240variant suhosin description {Add Suhosin patch} {
     241    set suhosin_patch_version   ${version}-0.9.8-BETA-1
     242    set suhosin_patch           suhosin-patch-${suhosin_patch_version}.patch.gz
     243    patch_sites-append          http://download.suhosin.org/
     244    patchfiles-append           ${suhosin_patch}
     245    checksums-append \
     246        ${suhosin_patch} \
     247            md5     62dc36545b86bf86e44ada1fccc17d0a \
     248            sha1    8bad461c7b16febc1d2f6bcbf4c8e10428569591 \
     249            rmd160  d89fd850dbba853aa881454be7995e2d6dff2490
     250}
     251
    237252destroot.args \
    238253    INSTALL_ROOT=${destroot}
    239254