RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/sysutils/john/Portfile,v
retrieving revision 1.14
diff -u -r1.14 Portfile
|
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | name john |
5 | 5 | version 1.6 |
6 | | revision 2 |
| 6 | revision 3 |
7 | 7 | categories sysutils security |
8 | 8 | maintainers yeled@opendarwin.org |
9 | 9 | description Featureful Unix password cracker |
… |
… |
|
22 | 22 | ftp://ftp.pl.openwall.com/pub/projects/john/ \ |
23 | 23 | ftp://ftp.ua.openwall.com/pub/projects/john/ \ |
24 | 24 | ftp://ftp.cz.openwall.com/pub/projects/john/ |
25 | | checksums md5 aae782f160041b2bdc624b0a84054e32 |
| 25 | checksums ${distname}.tar.gz md5 aae782f160041b2bdc624b0a84054e32 |
26 | 26 | patchfiles patch-Makefile |
27 | 27 | worksrcdir ${distname}/src |
28 | 28 | configure {} |
… |
… |
|
45 | 45 | |
46 | 46 | variant unstable { |
47 | 47 | version 1.6.37 |
48 | | checksums md5 9403233b640927295c05b0564ff1f678 |
| 48 | checksums ${distname}.tar.gz md5 9403233b640927295c05b0564ff1f678 |
49 | 49 | patchfiles-delete patch-Makefile |
50 | 50 | worksrcdir ${distname}/src |
51 | 51 | } |
| 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". |
| 57 | set altivec_diff ${name}-1.6.37-macosx-ppc-altivec-1.diff |
| 58 | variant 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 | |