Ticket #34344: Portfile

File Portfile, 1.8 KB (added by andreaponza@…, 12 years ago)

hydra 7.2

Line 
1# $Id$
2
3PortSystem              1.0
4
5name                    hydra
6version                 7.2
7license                 GPLv3
8distname                ${name}-${version}-src
9categories              security net
10platforms               darwin
11maintainers             gmail.com:openandreaponza
12
13description \
14    A very fast network logon cracker which support many services
15
16long_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
22homepage                http://www.thc.org/thc-hydra
23master_sites            http://www.thc.org/releases \
24                                       
25                       
26checksums               rmd160  d93a369a496141caed19bf47d5ee11273633849e \
27                        sha256 f15c6b833c6c34891aacefa1c6d1afb67d0d50350d26273a784e29114f69970e
28
29depends_lib             port:openssl port:libssh
30
31
32configure.args         --disable-xhydra \
33               
34         
35
36post-configure {
37        reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/Makefile
38        reinplace "s|/man/man1|/share/man/man1|"  ${worksrcpath}/Makefile
39                }
40
41build.args              XIPATHS="-I${prefix}/include/libssh -I${prefix}/include" \
42                        XLIBPATHS="-L${prefix}/lib/libssh -L${prefix}/lib"
43
44
45
46pre-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
61variant xhydra description {Add xhydra GUI} {
62    depends_lib-append      port:gtk2
63    configure.args-delete   --disable-xhydra
64}
65
66livecheck.type          regex
67livecheck.url           ${homepage}
68livecheck.regex         "${name}-(.*?)-src"