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

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

sysutils/john:

bump to 1.8.0
update master_sites (the mirrors didn't have john 1.8.0)
use .tar.gz
add john-jumbo subport to compile the jumbo version

  • 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 107714 2013-07-04 15:53:27Z g5pw@macports.org $
3
4PortSystem          1.0
5
6name                john
7conflicts           john-devel \
8                    john-jumbo
9version             1.8.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://www.openwall.com/${name}/j/
21
22checksums           rmd160  5c0f8b90a5567321d263c4fcbf24447142c7b89d \
23                    sha256  1222738c7829ce3014177ca9bd26c41573426f883c6b22527ee9bde363d84bda
24
25patchfiles          patch-src-params.h.diff
26
27post-patch {
28    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/params.h
29}
30
31use_configure       no
32
33use_parallel_build  no
34
35subport john-jumbo {
36    conflicts           john \
37                        john-devel
38    version             1.7.9
39    set jumbo_patchlvl  7
40    master_sites        http://www.openwall.com/john/g/
41
42    use_bzip2           yes
43    distname            ${name}-${version}-jumbo-${jumbo_patchlvl}
44   
45    checksums           rmd160  8452e34dc858aef209deaa14f12c79ce30854bc5 \
46                        sha256  fa7e5a1a31e61d516a97318fac27758ca40b1a626f4dbf353ecece8a41f54d32
47
48    build.dir           ${worksrcpath}/src
49}
50
51build.dir           ${worksrcpath}/src
52build.args          CC=${configure.cc}
53build.target        clean
54switch ${configure.build_arch} {
55    i386 {
56        build.target-append macosx-x86-sse2
57    }
58    x86_64 {
59        # x86_64 is only supported on Leopard and up
60        if {${os.major} >= 9} {
61            build.target-append macosx-x86-64
62        } else {
63            configure.build_arch i386
64            build.target-append macosx-x86-sse2
65        }
66    }
67    ppc {
68        # Use altivec if available
69        if {[exec sysctl -n hw.vectorunit] == 1} {
70            build.target-append macosx-ppc32-altivec
71        } else {
72            build.target-append macosx-ppc32
73        }
74    }
75    ppc64 {
76        build.target-append macosx-ppc64
77    }
78}
79
80destroot {
81    file copy ${worksrcpath}/run ${destroot}${prefix}/share/john
82    system "chmod -R a+rX ${destroot}${prefix}/share/john"
83    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
84    xinstall -d ${destroot}${prefix}/share/doc
85    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/john
86    system "chmod -R a+rX ${destroot}${prefix}/share/doc/john"
87}
88
89notes "You'll find the john files under ${prefix}/share/john/"
90
91livecheck.type      regex
92livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.