Ticket #11297: john-1.7.0.2.diff

File john-1.7.0.2.diff, 5.0 KB (added by pipping@…, 18 years ago)

converted to patch

  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
    4 name        john
    5 version     1.6
    6 revision    2
    7 categories  sysutils security
    8 maintainers yeled@macports.org
    9 description Featureful Unix password cracker
    10 long_description    \
    11     John the Ripper is a UNIX password cracker, currently available for \
    12     UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
    13     Alpha), DOS, WinNT/Win95.
    14 homepage    http://www.openwall.com/john/
    15 platforms   darwin
    16 master_sites    \
    17     http://www.openwall.com/john/ \
    18     ftp://ftp.ca.openwall.com/pub/projects/john/ \
    19     ftp://ftp.openwall.com/pub/projects/john/ \
    20     ftp://ftp1.ru.openwall.com/pub/projects/john/ \
    21     ftp://ftp2.ru.openwall.com/pub/projects/john/ \
    22     ftp://ftp.pl.openwall.com/pub/projects/john/ \
    23     ftp://ftp.ua.openwall.com/pub/projects/john/ \
    24     ftp://ftp.cz.openwall.com/pub/projects/john/
    25 checksums   md5 aae782f160041b2bdc624b0a84054e32
    26 patchfiles  patch-Makefile
    27 worksrcdir ${distname}/src
    28 configure   {}
    29 build.args  macosx-ppc-cc
    30 build.target
     3PortSystem          1.0
     4name                john
     5version             1.7.0.2
     6categories          sysutils security
     7maintainers         yeled@macports.org
     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 0a87dca1f149493fc087ea8a8b6ae5d5 \
     33                    sha1 bc6895c986d65f502366cf93c91f88ba865572b6 \
     34                    rmd160 9e75f5fd5561595ec2f3a1a290e85605234b8c41
     35worksrcdir          ${distname}/src
     36
     37post-patch  {
     38    reinplace "s,CFLAGS =,CFLAGS = -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\",g" ${worksrcpath}/Makefile
     39    reinplace "s,CFLAGS=\",CFLAGS=\"-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" ,g" ${worksrcpath}/Makefile
     40}
     41use_configure       no
     42
     43platform powerpc {
     44    build.target    "clean macosx-ppc32"
     45}
     46platform i386 {
     47    build.target    "clean macosx-x86-mmx"
     48}
     49variant altivec conflicts i386 {
     50    build.target    "clean macosx-ppc32-altivec"
     51}
     52
    3153destroot {
    32     file mkdir ${destroot}${prefix}/bin
     54    xinstall -d ${destroot}${prefix}/bin
    3355    file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
    34     system "chmod -R ugo+rx ${destroot}${prefix}/share/john"
     56    system "chmod -R a+rx ${destroot}${prefix}/share/john"
    3557    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
    36     file mkdir ${destroot}${prefix}/share/doc
     58    xinstall -d ${destroot}${prefix}/share/doc
    3759    file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
    38     system "chmod -R ugo+rx ${destroot}${prefix}/share/doc/john"
     60    system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
    3961}
    4062
    4163post-install {
    42         ui_msg  ""
    43         ui_msg  "You'll find the john files under ${prefix}/share/john/"
    44         ui_msg  ""
     64    ui_msg  ""
     65    ui_msg  "You'll find the john files under ${prefix}/share/john/"
     66    ui_msg  ""
    4567}
    46