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

Last change on this file was 83385, checked in by dports@…, 6 years ago

standardize some license formatting issues:

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