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

Last change on this file since 30254 was 30254, checked in by jmpp@…, 12 years ago

nomaintainer address abstraction in sysutils category.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: Portfile 30254 2007-10-23 02:22:51Z jmpp@macports.org $
2
3PortSystem          1.0
4name                john-devel
5version             1.7.2
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 dc6a6c2a885110ccb5da4c1e2010cb07 \
33                    sha1 7cc994f9cbd1582b46cbdeb1d5f318891ea8b411 \
34                    rmd160 3754da88a98f1c120e28de1eb10b214bf7dd3baf
35distname            john-${version}
36worksrcdir          ${distname}/src
37
38post-patch {
39    if {[variant_isset powerpc]} {
40    reinplace "s,CFLAGS =,CFLAGS = -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\",g" ${worksrcpath}/Makefile
41    reinplace "s,CFLAGS=\",CFLAGS=\"-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" ,g" ${worksrcpath}/Makefile
42    } else {
43        reinplace "s,CFLAGS =,CFLAGS = -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\"${prefix}/share/john\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\"${prefix}/share/john\\\\\\\",g" ${worksrcpath}/Makefile
44        reinplace "s,CFLAGS=\",CFLAGS=\"-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\"${prefix}/share/john\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\"${prefix}/share/john\\\\\\\" ,g" ${worksrcpath}/Makefile
45    }
46}
47use_configure       no
48
49platform powerpc {
50    build.target    "clean macosx-ppc32"
51}
52platform i386 {
53    build.target    "clean macosx-x86-mmx"
54}
55variant altivec conflicts i386 {
56    build.target    "clean macosx-ppc32-altivec"
57}
58
59destroot {
60    xinstall -d ${destroot}${prefix}/bin
61    file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
62    system "chmod -R a+rx ${destroot}${prefix}/share/john"
63    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
64    xinstall -d ${destroot}${prefix}/share/doc
65    file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
66    system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
67}
68
69post-install {
70    ui_msg  ""
71    ui_msg  "You'll find the john files under ${prefix}/share/john/"
72    ui_msg  ""
73}
Note: See TracBrowser for help on using the repository browser.