Ticket #11298: john-devel-1.7.2.diff

File john-devel-1.7.2.diff, 5.4 KB (added by pipping@…, 18 years ago)

converted to patch

  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
    4 name        john-devel
    5 version     1.6.38
    6 categories  sysutils security
    7 maintainers yeled@macports.org
    8 description Featureful Unix password cracker
    9 long_description    \
    10     John the Ripper is a UNIX password cracker, currently available for \
    11     UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
    12     Alpha), DOS, WinNT/Win95.
    13 homepage    http://www.openwall.com/john/
    14 platforms   darwin
    15 master_sites    \
    16     http://www.openwall.com/john/ \
    17     ftp://ftp.ca.openwall.com/pub/projects/john/ \
    18     ftp://ftp.openwall.com/pub/projects/john/ \
    19     ftp://ftp1.ru.openwall.com/pub/projects/john/ \
    20     ftp://ftp2.ru.openwall.com/pub/projects/john/ \
    21     ftp://ftp.pl.openwall.com/pub/projects/john/ \
    22     ftp://ftp.ua.openwall.com/pub/projects/john/ \
    23     ftp://ftp.cz.openwall.com/pub/projects/john/
    24 checksums   md5 cad2877bc4d0e54c3863f5e7d1143fc6
    25 distname    john-${version}
    26 worksrcdir  ${distname}/src
    27 configure   {}
    28 build.args  macosx-ppc32-cc
    29 build.target
     3PortSystem          1.0
     4name                john-devel
     5version             1.7.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 dc6a6c2a885110ccb5da4c1e2010cb07 \
     33                    sha1 7cc994f9cbd1582b46cbdeb1d5f318891ea8b411 \
     34                    rmd160 3754da88a98f1c120e28de1eb10b214bf7dd3baf
     35distname            john-${version}
     36worksrcdir          ${distname}/src
     37
     38post-patch  {
     39    reinplace "s,CFLAGS =,CFLAGS = -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\",g" ${worksrcpath}/Makefile
     40    reinplace "s,CFLAGS=\",CFLAGS=\"-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" ,g" ${worksrcpath}/Makefile
     41}
     42use_configure       no
     43
     44platform powerpc {
     45    build.target    "clean macosx-ppc32"
     46}
     47platform i386 {
     48    build.target    "clean macosx-x86-mmx"
     49}
     50variant altivec conflicts i386 {
     51    build.target    "clean macosx-ppc32-altivec"
     52}
     53
    3054destroot {
    31     file mkdir ${destroot}${prefix}/bin
     55    xinstall -d ${destroot}${prefix}/bin
    3256    file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
    33     system "chmod -R ugo+rx ${destroot}${prefix}/share/john"
     57    system "chmod -R a+rx ${destroot}${prefix}/share/john"
    3458    system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
    35     file mkdir ${destroot}${prefix}/share/doc
     59    xinstall -d ${destroot}${prefix}/share/doc
    3660    file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
    37     system "chmod -R ugo+rx ${destroot}${prefix}/share/doc/john"
     61    system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
    3862}
    3963
    40 variant altivec conflicts sixty-four-bit {
    41 build.args-delete   macosx-ppc32-cc
    42 build.args-append   macosx-ppc32-altivec-cc
    43 depends_build   port:perl5.8
    44     configure {
    45             reinplace "s|\/usr|${prefix}|g" ${workpath}/${worksrcdir}/ppc-alti.pl
    46     }
    47 }
    48 
    49 #variant sixty-four-bit {
    50 #build.args-delete  macosx-ppc32-cc
    51 #build.args-append  macosx-ppc64-cc
    52 #}
    53 
    5464post-install {
    55         ui_msg  ""
    56         ui_msg  "You'll find the john files under ${prefix}/share/john/"
    57         ui_msg  ""
     65    ui_msg  ""
     66    ui_msg  "You'll find the john files under ${prefix}/share/john/"
     67    ui_msg  ""
    5868}