source: trunk/dports/sysutils/john/Portfile @ 97222

Last change on this file since 97222 was 97222, checked in by ryandesign@…, 7 years ago

john: license GPL-2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 97222 2012-08-30 22:14:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                john
7conflicts           john-devel
8version             1.7.9
9revision            0
10categories          sysutils security
11maintainers         nomaintainer
12license             GPL-2
13
14description         Featureful Unix password cracker
15long_description    John the Ripper is a UNIX password cracker, currently available for \
16                    UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
17                    Alpha), DOS, WinNT/Win95.
18homepage            http://www.openwall.com/john/
19platforms           darwin
20master_sites        http://download.openwall.net/pub/projects/john/${version}/ \
21                    ftp://ftp2.msk.ru.openwall.com/pub/projects/john/${version}/ \
22                    ftp://ftp.cert.dfn.de/pub/tools/net/Openwall/projects/john/${version}/ \
23                    http://distro.ibiblio.org/openwall/projects/john/${version}/ \
24                    ftp://ftp1.msk.ru.openwall.com/pub/projects/john/${version}/ \
25                    ftp://ftp.spb.ru.openwall.com/pub/projects/john/${version}/ \
26                    ftp://ftp.mathematik.uni-marburg.de/pub/mirror/openwall/projects/john/${version}/
27use_bzip2           yes
28
29checksums           rmd160  6b8bf7423d8e138c5bfa30bfd348363887e7a4c6 \
30                    sha256  1d40083e37a7bc1ba1177651cbb27898dcf2a812b8ccf1430db0c372ac6dc199
31
32patchfiles          patch-src-params.h.diff
33
34post-patch {
35    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/params.h
36}
37
38use_configure       no
39
40use_parallel_build  no
41
42build.dir           ${worksrcpath}/src
43build.args          CC=${configure.cc}
44build.target        clean
45switch ${configure.build_arch} {
46    i386 {
47        build.target-append macosx-x86-sse2
48    }
49    x86_64 {
50        # x86_64 is only supported on Leopard and up
51        if {${os.major} >= 9} {
52            build.target-append macosx-x86-64
53        } else {
54            configure.build_arch i386
55            build.target-append macosx-x86-sse2
56        }
57    }
58    ppc {
59        # Use altivec if available
60        if {[exec sysctl -n hw.vectorunit] == 1} {
61            build.target-append macosx-ppc32-altivec
62        } else {
63            build.target-append macosx-ppc32
64        }
65    }
66    ppc64 {
67        build.target-append macosx-ppc64
68    }
69}
70
71destroot {
72    file copy ${worksrcpath}/run ${destroot}${prefix}/share/john
73    system "chmod -R a+rX ${destroot}${prefix}/share/john"
74    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
75    xinstall -d ${destroot}${prefix}/share/doc
76    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/john
77    system "chmod -R a+rX ${destroot}${prefix}/share/doc/john"
78}
79
80notes "You'll find the john files under ${prefix}/share/john/"
81
82livecheck.type      regex
83livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.