Ticket #36370: hydra-raimue.diff

File hydra-raimue.diff, 2.7 KB (added by raimue (Rainer Müller), 11 years ago)
  • Portfile

     
    33PortSystem              1.0
    44
    55name                    hydra
    6 version                 5.4
    7 revision                3
    8 distname                ${name}-${version}-src
     6version                 7.3
     7license                 {GPL-3 OpenSSLException}
    98categories              security net
    109platforms               darwin
    11 maintainers             nomaintainer
     10maintainers             gmail.com:openandreaponza
    1211
    1312description \
    1413    A very fast network logon cracker which support many services
     
    2019    support.
    2120
    2221homepage                http://www.thc.org/thc-hydra
    23 master_sites            http://freeworld.thc.org/releases
    24 checksums               md5 fa08b465d19321e77b1a0ef912eeecc1
     22master_sites            http://www.thc.org/releases
    2523
    26 depends_lib             port:openssl port:libssh01
     24checksums               rmd160 c2d3dc47b2573fddd0aecc103ed609cebfea2879 \
     25                        sha256 14805ba70f3f22beb00344db161a1a84d61059655f2be37dd02a5c5cceae306d
    2726
    28 patchfiles              patch-configure.diff
     27depends_lib             port:openssl port:libssh
    2928
    30 post-patch {
    31     reinplace "s|SSL_PATH=\"\"|SSL_PATH=\"${prefix}/lib\"|" ${worksrcpath}/configure
    32     reinplace "s|SSL_IPATH=\"\"|SSL_IPATH=\"${prefix}/include\"|" ${worksrcpath}/configure
    33     reinplace "s|CRYPTO_PATH=\"\"|CRYPTO_PATH=\"${prefix}/lib\"|" ${worksrcpath}/configure
    34     reinplace "s|SSH_PATH=\"\"|SSH_PATH=\"${prefix}/lib/libssh01\"|" ${worksrcpath}/configure
    35     reinplace "s|SSH_IPATH=\"\"|SSH_IPATH=\"${prefix}/include/libssh01\"|" ${worksrcpath}/configure
    36 }
    37 
    3829configure.args          --disable-xhydra
    3930
    4031post-configure {
    4132    reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile
     33    reinplace "s|/man/man1|/share/man/man1|"  ${worksrcpath}/Makefile
    4234}
    4335
    44 build.args              XIPATHS="-I${prefix}/include/libssh01 -I${prefix}/include" \
    45                         XLIBPATHS="-L${prefix}/lib/libssh01 -L${prefix}/lib"
    46 
     36build.args              XIPATHS="-I${prefix}/include/libssh -I${prefix}/include" \
     37                        XLIBPATHS="-L${prefix}/lib/libssh -L${prefix}/lib"
    4738pre-destroot {
    4839    reinplace "s|PREFIX=${prefix}|PREFIX=${destroot}${prefix}|" ${worksrcpath}/Makefile
    4940    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    5041    xinstall -d ${docdir}
    5142    xinstall -m 644 -W ${worksrcpath} \
    5243        CHANGES \
    53         LICENCE.HYDRA \
    54         LICENSE.GNU \
     44        LICENSE \
    5545        README \
    56         TODO \
    5746        ${docdir}
    5847}
    5948