aboutsummaryrefslogtreecommitdiffstats
path: root/security/masscan/Makefile
blob: 18c3c385cc017bf15ac4db1c8aabd1e29143a1eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Chie Taguchi <taguchi.ch@gmail.com>
# $FreeBSD$

PORTNAME=   masscan
PORTVERSION=    1.0.4
CATEGORIES= security

MAINTAINER= taguchi.ch@gmail.com
COMMENT=    Very fast port scanner

LICENSE=    GPLv3

ONLY_FOR_ARCHS=     i386 amd64
ONLY_FOR_ARCHS_REASON=  invokes x86 assembler

USES=       gmake
USE_GITHUB= yes
GH_ACCOUNT= robertdavidgraham
CFLAGS+=    -Wno-format
MAKE_ARGS=  SYS=freebsd CC="${CC}" CFLAGS="${CFLAGS}"

PLIST_FILES=    bin/masscan man/man8/masscan.8.gz

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
BUILD_DEPENDS+= clang60:devel/llvm60
CC=     clang60
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/masscan ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/masscan.8 ${STAGEDIR}${MANPREFIX}/man/man8

do-test:
    ${WRKSRC}/bin/masscan --selftest

.include <bsd.port.post.mk>