| 442 | variant suhosin description {Add suhosin patch} { |
| 443 | ##The following doesn't work, because I'm unable to come up with a definition which ensures that |
| 444 | ##patch is called with '-p1' for the suhosin patch only and with (the default) '-p0' for all other patches |
| 445 | # patch.args-append \ |
| 446 | # -p1 |
| 447 | # patch_sites-append \ |
| 448 | # http://download.suhosin.org/ |
| 449 | # checksums-append \ |
| 450 | # suhosin-patch-${suhosin_patch_ver}.patch.gz sha1 8bad461c7b16febc1d2f6bcbf4c8e10428569591 \ |
| 451 | # suhosin-patch-${suhosin_patch_ver}.patch.gz md5 62dc36545b86bf86e44ada1fccc17d0a |
| 452 | # patchfiles-append \ |
| 453 | # suhosin-patch-${suhosin_patch_ver}.patch.gz |
| 454 | |
| 455 | ##This leaves us with only two alternatives: either treat the patchfile as 'normal' file to be retrieved and |
| 456 | ##invoke patch 'manually' as follows, or maintain a modified local copy of the suhosin patch in our repository |
| 457 | ##(the chosen solution still has the disadvantage that suhosin.org is polled for the main php5 tarball) |
| 458 | master_sites-append \ |
| 459 | http://download.suhosin.org/ |
| 460 | checksums-append \ |
| 461 | suhosin-patch-${suhosin_patch_ver}.patch.gz sha1 8bad461c7b16febc1d2f6bcbf4c8e10428569591 \ |
| 462 | suhosin-patch-${suhosin_patch_ver}.patch.gz md5 62dc36545b86bf86e44ada1fccc17d0a |
| 463 | distfiles-append \ |
| 464 | suhosin-patch-${suhosin_patch_ver}.patch.gz |
| 465 | ##'post-fetch' would be too early here: |
| 466 | pre-configure { |
| 467 | exec gzcat "${distpath}/suhosin-patch-${suhosin_patch_ver}.patch.gz" | patch -d "${worksrcpath}" -p1 |
| 468 | } |
| 469 | } |
| 470 | |