Ticket #41985: Portfile

File Portfile, 2.1 KB (added by jul_bsd@…, 11 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                masscan
7version             1.0.3
8revision            0
9categories          net security
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12license             GPL-3
13
14description         Mass IP port scanner
15
16long_description    This is the fastest Internet port scanner. It can \
17                    scan the entire Internet in under 6 minutes, \
18                    transmitting 10 million packets per second. \
19                    It produces results similar to nmap, the most \
20                    famous port scanner. Internally, it operates \
21                    more like scanrand, unicornscan, and ZMap, \
22                    using asynchronous transmission. The major \
23                    difference is that it's faster than these \
24                    other scanners. In addition, it's more \
25                    flexible, allowing arbitrary address ranges \
26                    and port ranges.
27
28homepage            https://github.com/robertdavidgraham/masscan
29master_sites        https://github.com/robertdavidgraham/masscan/archive/
30distname            ${version}
31worksrcdir          ${name}-${version}
32
33checksums           rmd160  ad733d1a7caa772c33712be204a23d9eef792e68 \
34                    sha256  331edd529df1904bcbcfb43029ced7e2dafe1744841e74cd9fc9f440b8301085
35
36## https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Mac_OS_X_106x
37#depends_lib         port:pkgconfig port:libnet11 port:libpcap port:pcre \
38
39post-patch {
40    reinplace "s|install -pDm755|install -pm755|" ${worksrcpath}/Makefile
41}
42
43destroot.env        PREFIX=${prefix}
44pre-destroot {
45    xinstall -d ${destroot}${prefix}/bin
46}
47post-destroot {
48    xinstall -m 644 ${worksrcpath}/doc/masscan.8 ${destroot}${prefix}/share/man/man8/
49}
50
51use_configure       no
52test.run            yes
53test.target         regress
54
55livecheck.type      regex
56livecheck.url       ${homepage}/releases
57livecheck.regex     "<a href=\"/robertdavidgraham/masscan/releases/tag/(\\d+\.\\d+\.\\d+)\">"