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: Portfile 151664 2016-08-19 14:29:55Z mf2k@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup robertdavidgraham masscan 1.0.3 |
---|
8 | categories net security |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license GPL-3 |
---|
12 | |
---|
13 | description Mass IP port scanner |
---|
14 | |
---|
15 | long_description This is the fastest Internet port scanner. It can \ |
---|
16 | scan the entire Internet in under 6 minutes, \ |
---|
17 | transmitting 10 million packets per second. \ |
---|
18 | It produces results similar to nmap, the most \ |
---|
19 | famous port scanner. Internally, it operates \ |
---|
20 | more like scanrand, unicornscan, and ZMap, \ |
---|
21 | using asynchronous transmission. The major \ |
---|
22 | difference is that it is faster than these \ |
---|
23 | other scanners. In addition, it is more \ |
---|
24 | flexible, allowing arbitrary address ranges \ |
---|
25 | and port ranges. |
---|
26 | |
---|
27 | # Remove these lines when updating to the next version. |
---|
28 | master_sites https://github.com/robertdavidgraham/masscan/archive/ |
---|
29 | distname ${version} |
---|
30 | worksrcdir ${name}-${version} |
---|
31 | # end of lines to remove |
---|
32 | |
---|
33 | checksums rmd160 ad733d1a7caa772c33712be204a23d9eef792e68 \ |
---|
34 | sha256 331edd529df1904bcbcfb43029ced7e2dafe1744841e74cd9fc9f440b8301085 |
---|
35 | |
---|
36 | depends_lib port:libpcap |
---|
37 | |
---|
38 | patchfiles patch-Makefile.diff |
---|
39 | |
---|
40 | use_configure no |
---|
41 | |
---|
42 | build.args CC=${configure.cc} \ |
---|
43 | CFLAGS="${configure.cflags} [get_canonical_archflags cc]" |
---|
44 | |
---|
45 | destroot.env PREFIX=${prefix} |
---|
46 | post-destroot { |
---|
47 | xinstall -m 644 ${worksrcpath}/doc/masscan.8 ${destroot}${prefix}/share/man/man8/ |
---|
48 | } |
---|
49 | |
---|
50 | variant universal {} |
---|
51 | |
---|
52 | test.run yes |
---|
53 | test.target regress |
---|