Commits
Kurt Hindenburg authored 9054727cfc8
1 1 | PortSystem 1.0 |
2 2 | |
3 + | replaced_by john |
4 + | PortGroup obsolete 1.0 |
3 5 | name john-devel |
4 - | conflicts john |
5 6 | version 1.7.3.4 |
6 - | revision 1 |
7 + | revision 2 |
7 8 | categories sysutils security |
8 9 | maintainers nomaintainer |
9 - | license GPL-2 |
10 - | description Featureful Unix password cracker |
11 - | long_description John the Ripper is a UNIX password cracker, currently available for \ |
12 - | UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \ |
13 - | Alpha), DOS, WinNT/Win95. |
14 - | homepage http://www.openwall.com/john/ |
15 - | platforms darwin |
16 - | master_sites http://download.openwall.net/pub/projects/john/${version}/ \ |
17 - | ftp://ftp2.msk.ru.openwall.com/pub/projects/john/${version}/ \ |
18 - | ftp://ftp.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \ |
19 - | ftp://ftp.cert.dfn.de/pub/tools/net/Openwall/projects/john/${version}/ \ |
20 - | http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \ |
21 - | ftp://ftp.mirrorgeek.com/openwall/projects/john/${version}/ \ |
22 - | http://mirrorgeek.com/openwall/projects/john/${version}/ \ |
23 - | ftp://ftp1.msk.ru.openwall.com/pub/projects/john/${version}/ \ |
24 - | ftp://ftp.spb.ru.openwall.com/pub/projects/john/${version}/ \ |
25 - | ftp://ftp.man.szczecin.pl/pub/Linux/Owl/projects/john/${version}/ \ |
26 - | ftp://ftp.se.openwall.com/pub/projects/john/${version}/ \ |
27 - | http://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \ |
28 - | ftp://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \ |
29 - | ftp://ftp.mathematik.uni-marburg.de/pub/mirror/openwall/projects/john/${version}/ \ |
30 - | ftp://ftp.wiretapped.net/pub/openwall/projects/john/${version}/ \ |
31 - | ftp://ftp.ua.openwall.com/pub/projects/john/${version}/ \ |
32 - | ftp://ftp.cz.openwall.com/pub/projects/john/${version}/ |
33 - | use_bzip2 yes |
34 - | |
35 - | checksums md5 2f2310c49961c3edea6f92b8dcd45ff4 \ |
36 - | sha1 3919cac037360512e6d72d04d72d492ee9673ded \ |
37 - | rmd160 a3a27c24eb71af8797bc02621ed02a8c9edd6b1d |
38 - | |
39 - | distname john-${version} |
40 - | build.dir ${worksrcpath}/src |
41 - | |
42 - | patchfiles patch-params.h |
43 - | patch.dir ${build.dir} |
44 - | post-patch { |
45 - | reinplace "s|@@PREFIX@@|${prefix}|g" ${patch.dir}/params.h |
46 - | delete ${worksrcpath}/doc/INSTALL |
47 - | } |
48 - | |
49 - | use_configure no |
50 - | |
51 - | pre-build { |
52 - | system "cd ${build.dir} && make clean" |
53 - | } |
54 - | build.args CC=${configure.cc} |
55 - | build.target generic |
56 - | |
57 - | platform darwin { |
58 - | switch ${configure.build_arch} { |
59 - | ppc { build.target macosx-ppc32 } |
60 - | ppc64 { build.target macosx-ppc64 } |
61 - | i386 { build.target macosx-x86-sse2 } |
62 - | x86_64 { build.target macosx-x86-64 } |
63 - | } |
64 - | } |
65 - | |
66 - | variant altivec description {Enable AltiVec support} { |
67 - | pre-configure { |
68 - | switch ${configure.build_arch} { |
69 - | ppc - |
70 - | ppc64 {} |
71 - | default { |
72 - | ui_error "The +altivec variant can only be used when building for PowerPC." |
73 - | return -code error "incompatible architecture" |
74 - | } |
75 - | } |
76 - | } |
77 - | pre-build { |
78 - | append build.target -altivec |
79 - | } |
80 - | } |
81 - | |
82 - | destroot { |
83 - | file copy ${worksrcpath}/run ${destroot}${prefix}/share/john |
84 - | system "chmod -R a+rX ${destroot}${prefix}/share/john" |
85 - | ln -s ../share/john/john ${destroot}${prefix}/bin/john |
86 - | xinstall -d ${destroot}${prefix}/share/doc |
87 - | file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/john |
88 - | system "chmod -R a+rX ${destroot}${prefix}/share/doc/john" |
89 - | } |
90 - | |
91 - | notes "You'll find the john files under ${prefix}/share/john/" |
92 - | |