freebsd-ports/security/masscan/Makefile
Pawel Pekala 501e906ff7 - Update to version 1.0.3
- Fix CFLAGS and MAKE_ARGS
- Suppress error message of gcc and git

PR:		ports/186651
Submitted by:	maintainer
2014-03-03 17:43:16 +00:00

31 lines
799 B
Makefile

# Created by: Chie Taguchi <taguchi.ch@gmail.com>
# $FreeBSD$
PORTNAME= masscan
PORTVERSION= 1.0.3
CATEGORIES= security
MASTER_SITES= http://github.com/robertdavidgraham/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/
MAINTAINER= taguchi.ch@gmail.com
COMMENT= Very fast port scanner
LICENSE= GPLv3
USES= gmake
CFLAGS+= -Wno-format
MAKE_ARGS= SYS=freebsd CC=${CC} CFLAGS="${CFLAGS}"
PLIST_FILES= bin/masscan man/man8/masscan.8.gz
pre-build:
@${REINPLACE_CMD} -e "s|SYS :=|SYS ?=|"\
-e "s|describe --tags|describe --tags 2> /dev/null|" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/masscan ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/masscan.8 ${STAGEDIR}${MANPREFIX}/man/man8
regression-test: build
${WRKSRC}/bin/masscan --selftest
.include <bsd.port.mk>