1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/net/zmap/Makefile
Yuri Victorovich a31a69692d Replaced my old rawbw.com maintainer's address with yuri@FreeBSD.org
98 ports are affected.

Approved by:	tcberner (mentor, implicit)
2018-02-25 00:40:37 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= zmap
PORTVERSION= 2.1.1
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= net
MAINTAINER= yuri@FreeBSD.org
COMMENT= Internet scanner
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= gengetopt>0:devel/gengetopt
LIB_DEPENDS= libdnet.so:net/libdnet \
libgmp.so:math/gmp
USE_GITHUB= yes
USES= cmake pkgconfig
MANPAGE= zblacklist.1 zmap.1 ztee.1
OPTIONS_DEFINE= REDIS MONGO JSON
OPTIONS_DEFAULT=JSON
JSON_DESC= Build with support for JSON
REDIS_LIB_DEPENDS= libhiredis.so:/databases/hiredis
REDIS_CMAKE_BOOL= WITH_REDIS
MONGO_LIB_DEPENDS= libmongoc-1.0.so:/devel/mongo-c-driver
MONGO_CMAKE_BOOL= WITH_MONGO
JSON_LIB_DEPENDS= libjson-c.so:devel/json-c
JSON_CMAKE_BOOL= WITH_JSON
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/etc/zmap|${LOCALBASE}/etc/zmap|g' -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -i '' -e 's|share/man/man1|man/man1|g' \
${WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -i '' -e 's|/etc/zmap/zmap.conf|${LOCALBASE}/etc/zmap/zmap.conf|g' \
${WRKSRC}/src/zopt.ggo.in \
${WRKSRC}/src/zmap.c
@${REINPLACE_CMD} -i '' -e 's|/etc/zmap/blacklist.conf|${LOCALBASE}/etc/zmap/blacklist.conf|g' \
${WRKSRC}/conf/zmap.conf \
${WRKSRC}/src/zmap.c
post-install:
.for m in ${MANPAGE}
${GZIP_CMD} ${STAGEDIR}${MANPREFIX}/man/man1/$m
.endfor
.include <bsd.port.mk>