Ticket #34344: Portfile-hydra.diff

File Portfile-hydra.diff, 2.9 KB (added by andreaponza@…, 12 years ago)

hydra update 7.2

  • /Users/andreaponza/

    old new  
    33PortSystem              1.0
    44
    55name                    hydra
    6 version                 5.4
    7 revision                3
     6version                 7.2
     7license                 GPLv3
    88distname                ${name}-${version}-src
    99categories              security net
    1010platforms               darwin
    11 maintainers             nomaintainer
     11maintainers             gmail.com:openandreaponza
    1212
    1313description \
    1414    A very fast network logon cracker which support many services
     
    2020    support.
    2121
    2222homepage                http://www.thc.org/thc-hydra
    23 master_sites            http://freeworld.thc.org/releases
    24 checksums               md5 fa08b465d19321e77b1a0ef912eeecc1
     23master_sites            http://www.thc.org/releases \
     24                                       
     25                       
     26checksums               rmd160  d93a369a496141caed19bf47d5ee11273633849e \
     27                        sha256 f15c6b833c6c34891aacefa1c6d1afb67d0d50350d26273a784e29114f69970e
     28
     29depends_lib             port:openssl port:libssh
    2530
    26 depends_lib             port:openssl port:libssh01
    2731
    28 patchfiles              patch-configure.diff
     32configure.args         --disable-xhydra \
     33               
     34         
    2935
    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 }
     36post-configure {
     37        reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile
     38        reinplace "s|/man/man1|/share/man/man1|"  ${worksrcpath}/Makefile
     39                }
    3740
    38 configure.args          --disable-xhydra
     41build.args              XIPATHS="-I${prefix}/include/libssh -I${prefix}/include" \
     42                        XLIBPATHS="-L${prefix}/lib/libssh -L${prefix}/lib"
    3943
    40 post-configure {
    41     reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile
    42 }
    4344
    44 build.args              XIPATHS="-I${prefix}/include/libssh01 -I${prefix}/include" \
    45                         XLIBPATHS="-L${prefix}/lib/libssh01 -L${prefix}/lib"
    4645
    4746pre-destroot {
     47               
    4848    reinplace "s|PREFIX=${prefix}|PREFIX=${destroot}${prefix}|" ${worksrcpath}/Makefile
    4949    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    5050    xinstall -d ${docdir}
    5151    xinstall -m 644 -W ${worksrcpath} \
    5252        CHANGES \
    53         LICENCE.HYDRA \
    54         LICENSE.GNU \
     53        LICENSE \
    5554        README \
    56         TODO \
    57         ${docdir}
     55        ${docdir}
     56       
    5857}
    5958
     59
     60
    6061variant xhydra description {Add xhydra GUI} {
    6162    depends_lib-append      port:gtk2
    6263    configure.args-delete   --disable-xhydra