source: trunk/dports/sysutils/john-devel/Portfile @ 43262

Last change on this file since 43262 was 43262, checked in by blb@…, 11 years ago

sysutils/john-devel - version update to 1.7.3.1, clean how the paths are
set up (getting rid of the massive escaping), switch default x86 build to
the SSE2 one, and add a 64 bit variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 43262 2008-12-07 22:17:44Z blb@macports.org $
2
3PortSystem          1.0
4name                john-devel
5version             1.7.3.1
6categories          sysutils security
7maintainers         nomaintainer
8description         Featureful Unix password cracker
9long_description    John the Ripper is a UNIX password cracker, currently available for \
10                    UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
11                    Alpha), DOS, WinNT/Win95.
12homepage            http://www.openwall.com/john/
13platforms           darwin
14master_sites        http://www.openwall.com/john/f/ \
15                    ftp://ftp2.msk.ru.openwall.com/pub/projects/john/${version}/ \
16                    ftp://ftp.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \
17                    ftp://ftp.cert.dfn.de/pub/tools/net/Openwall/projects/john/${version}/ \
18                    http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \
19                    ftp://ftp.mirrorgeek.com/openwall/projects/john/${version}/ \
20                    http://mirrorgeek.com/openwall/projects/john/${version}/ \
21                    ftp://ftp1.msk.ru.openwall.com/pub/projects/john/${version}/ \
22                    ftp://ftp.spb.ru.openwall.com/pub/projects/john/${version}/ \
23                    ftp://ftp.man.szczecin.pl/pub/Linux/Owl/projects/john/${version}/ \
24                    ftp://ftp.se.openwall.com/pub/projects/john/${version}/ \
25                    http://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \
26                    ftp://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \
27                    ftp://ftp.mathematik.uni-marburg.de/pub/mirror/openwall/projects/john/${version}/ \
28                    ftp://ftp.wiretapped.net/pub/openwall/projects/john/${version}/ \
29                    ftp://ftp.ua.openwall.com/pub/projects/john/${version}/ \
30                    ftp://ftp.cz.openwall.com/pub/projects/john/${version}/
31use_bzip2           yes
32checksums           md5     4a8de450ff332bd0c7cbc573eb5032d9 \
33                    sha1    45f6ed73f7ea82460f3a33d6452bd8c17bdf863d \
34                    rmd160  f6e01c72c068904fe9e49a0669a9cdf0dc745be2
35distname            john-${version}
36worksrcdir          ${distname}/src
37
38# Patch params.h since that avoids lots of messy escaping and quoting
39# issues
40patchfiles          patch-params.h
41post-patch {
42    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/params.h
43}
44
45use_configure       no
46
47platform powerpc {
48    build.target    "clean macosx-ppc32"
49}
50
51platform i386 {
52    build.target    "clean macosx-x86-sse2"
53}
54
55variant altivec conflicts i386 description {Enable AltiVec support} {
56    build.target    "clean macosx-ppc32-altivec"
57}
58
59variant use_64_bit conflicts altivec description {Enable 64bit support} {
60    if {[variant_isset powerpc]} {
61        build.target    "clean macosx-ppc64"
62    } else {
63        build.target    "clean macosx-x86-64"
64    }
65}
66
67destroot {
68    xinstall -d ${destroot}${prefix}/bin
69    file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
70    system "chmod -R a+rx ${destroot}${prefix}/share/john"
71    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
72    xinstall -d ${destroot}${prefix}/share/doc
73    file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
74    system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
75}
76
77post-install {
78    ui_msg  ""
79    ui_msg  "You'll find the john files under ${prefix}/share/john/"
80    ui_msg  ""
81}
82
Note: See TracBrowser for help on using the repository browser.