1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name hydra |
---|
6 | version 7.2 |
---|
7 | license GPLv3 |
---|
8 | distname ${name}-${version}-src |
---|
9 | categories security net |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:openandreaponza |
---|
12 | |
---|
13 | description \ |
---|
14 | A very fast network logon cracker which support many services |
---|
15 | |
---|
16 | long_description \ |
---|
17 | Hydra is a parallelized logon cracker utility. Hydra can \ |
---|
18 | brute force attack on FTP, POP3, IMAP, Telnet, HTTP Auth, \ |
---|
19 | NNTP, VNC, ICQ, Socks5, PCNFS and more services within SSL \ |
---|
20 | support. |
---|
21 | |
---|
22 | homepage http://www.thc.org/thc-hydra |
---|
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 |
---|
30 | |
---|
31 | |
---|
32 | configure.args --disable-xhydra \ |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | post-configure { |
---|
37 | reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile |
---|
38 | reinplace "s|/man/man1|/share/man/man1|" ${worksrcpath}/Makefile |
---|
39 | } |
---|
40 | |
---|
41 | build.args XIPATHS="-I${prefix}/include/libssh -I${prefix}/include" \ |
---|
42 | XLIBPATHS="-L${prefix}/lib/libssh -L${prefix}/lib" |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | pre-destroot { |
---|
47 | |
---|
48 | reinplace "s|PREFIX=${prefix}|PREFIX=${destroot}${prefix}|" ${worksrcpath}/Makefile |
---|
49 | set docdir ${destroot}${prefix}/share/doc/${name}-${version} |
---|
50 | xinstall -d ${docdir} |
---|
51 | xinstall -m 644 -W ${worksrcpath} \ |
---|
52 | CHANGES \ |
---|
53 | LICENSE \ |
---|
54 | README \ |
---|
55 | ${docdir} |
---|
56 | |
---|
57 | } |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | variant xhydra description {Add xhydra GUI} { |
---|
62 | depends_lib-append port:gtk2 |
---|
63 | configure.args-delete --disable-xhydra |
---|
64 | } |
---|
65 | |
---|
66 | livecheck.type regex |
---|
67 | livecheck.url ${homepage} |
---|
68 | livecheck.regex "${name}-(.*?)-src" |
---|