Ticket #2573: john.altivec.diff

File john.altivec.diff, 1.8 KB (added by opendarwin.org@…, 19 years ago)

add altivec patch for john

  • john/Portfile

    RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/sysutils/john/Portfile,v
    retrieving revision 1.14
    diff -u -r1.14 Portfile
     
    33PortSystem 1.0
    44name            john
    55version         1.6
    6 revision        2
     6revision        3
    77categories      sysutils security
    88maintainers     yeled@opendarwin.org
    99description     Featureful Unix password cracker
     
    2222        ftp://ftp.pl.openwall.com/pub/projects/john/ \
    2323        ftp://ftp.ua.openwall.com/pub/projects/john/ \
    2424        ftp://ftp.cz.openwall.com/pub/projects/john/
    25 checksums       md5 aae782f160041b2bdc624b0a84054e32
     25checksums       ${distname}.tar.gz md5 aae782f160041b2bdc624b0a84054e32
    2626patchfiles      patch-Makefile
    2727worksrcdir      ${distname}/src
    2828configure       {}
     
    4545
    4646variant unstable {
    4747        version         1.6.37
    48         checksums       md5 9403233b640927295c05b0564ff1f678
     48        checksums       ${distname}.tar.gz md5 9403233b640927295c05b0564ff1f678
    4949        patchfiles-delete       patch-Makefile
    5050        worksrcdir      ${distname}/src
    5151}       
     52
     53## setting this to ${name}-${version} picks up the main version, not the
     54## unstable version, which is needed for this patch.
     55## Setting the var inside the variant results in proc-post-com.apple.patch-patch-0
     56## not working 'cause it doesn't know the variable "altivec_diff".
     57set altivec_diff ${name}-1.6.37-macosx-ppc-altivec-1.diff
     58variant altivec requires unstable {
     59        master_sites-append     http://www.openwall.com/john/contrib:altivec
     60        distfiles-append ${altivec_diff}.gz:altivec
     61        checksums-append ${altivec_diff}.gz md5 7d82d087e89909706e3863cd014a430c
     62        extract.only    ${distname}.tar.gz
     63        post-patch {
     64                ui_info "$UI_PREFIX Applying altivec patch"
     65                system "cd ${workdir} && gzcat ${distpath}/${altivec_diff}.gz | patch -p0"
     66        }
     67}
     68