Ticket #34344: Portfile-hydra.diff
File Portfile-hydra.diff, 2.9 KB (added by andreaponza@…, 13 years ago) |
---|
-
/Users/andreaponza/
old new 3 3 PortSystem 1.0 4 4 5 5 name hydra 6 version 5.47 revision36 version 7.2 7 license GPLv3 8 8 distname ${name}-${version}-src 9 9 categories security net 10 10 platforms darwin 11 maintainers nomaintainer11 maintainers gmail.com:openandreaponza 12 12 13 13 description \ 14 14 A very fast network logon cracker which support many services … … 20 20 support. 21 21 22 22 homepage http://www.thc.org/thc-hydra 23 master_sites http://freeworld.thc.org/releases 24 checksums md5 fa08b465d19321e77b1a0ef912eeecc1 23 master_sites http://www.thc.org/releases \ 24 25 26 checksums rmd160 d93a369a496141caed19bf47d5ee11273633849e \ 27 sha256 f15c6b833c6c34891aacefa1c6d1afb67d0d50350d26273a784e29114f69970e 28 29 depends_lib port:openssl port:libssh 25 30 26 depends_lib port:openssl port:libssh0127 31 28 patchfiles patch-configure.diff 32 configure.args --disable-xhydra \ 33 34 29 35 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 } 36 post-configure { 37 reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile 38 reinplace "s|/man/man1|/share/man/man1|" ${worksrcpath}/Makefile 39 } 37 40 38 configure.args --disable-xhydra 41 build.args XIPATHS="-I${prefix}/include/libssh -I${prefix}/include" \ 42 XLIBPATHS="-L${prefix}/lib/libssh -L${prefix}/lib" 39 43 40 post-configure {41 reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile42 }43 44 44 build.args XIPATHS="-I${prefix}/include/libssh01 -I${prefix}/include" \45 XLIBPATHS="-L${prefix}/lib/libssh01 -L${prefix}/lib"46 45 47 46 pre-destroot { 47 48 48 reinplace "s|PREFIX=${prefix}|PREFIX=${destroot}${prefix}|" ${worksrcpath}/Makefile 49 49 set docdir ${destroot}${prefix}/share/doc/${name}-${version} 50 50 xinstall -d ${docdir} 51 51 xinstall -m 644 -W ${worksrcpath} \ 52 52 CHANGES \ 53 LICENCE.HYDRA \ 54 LICENSE.GNU \ 53 LICENSE \ 55 54 README \ 56 TODO \57 ${docdir} 55 ${docdir} 56 58 57 } 59 58 59 60 60 61 variant xhydra description {Add xhydra GUI} { 61 62 depends_lib-append port:gtk2 62 63 configure.args-delete --disable-xhydra