diff options
author | Daniel Engberg <diizzy@FreeBSD.org> | 2025-05-17 04:05:20 +0200 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2025-05-17 11:53:15 +0200 |
commit | 64a8eec897e82378dae4803c9dfebeea43dde171 (patch) | |
tree | bc9a416c4bba8c2d0f137634a5685faf0f0d1f83 | |
parent | math/lcalc: Improve port (diff) |
net/zmap: Improve port
* Remove gmake dependency
* Switch non insource build for CMake
* Sort LIB_DEPENDS
* Remove CFLAGS definition
* Remove MANPAGE definiton
* Simplify post-install section
PR: 286541
Approved by: maintainer timeout, 2+ weeks
-rw-r--r-- | net/zmap/Makefile | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/net/zmap/Makefile b/net/zmap/Makefile index d829817f1b74..d0e67aa7346a 100644 --- a/net/zmap/Makefile +++ b/net/zmap/Makefile @@ -11,23 +11,19 @@ WWW= https://zmap.io/ \ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= gengetopt>0:devel/gengetopt \ - gmake:devel/gmake -LIB_DEPENDS= libjson-c.so:devel/json-c \ +BUILD_DEPENDS= gengetopt>0:devel/gengetopt +LIB_DEPENDS= libgmp.so:math/gmp \ + libjson-c.so:devel/json-c \ libJudy.so:devel/judy \ - libgmp.so:math/gmp \ libpcap.so:net/libpcap \ libunistring.so:devel/libunistring -USES= cmake:insource pkgconfig -USE_GITHUB= yes +USES= cmake pkgconfig -CFLAGS+= -D_SYSTYPE_BSD +USE_GITHUB= yes CMAKE_ON= FORCE_CONF_INSTALL -MANPAGE= zblacklist.1 zmap.1 ztee.1 - post-patch: @${REINPLACE_CMD} -i '' -e 's|/etc/zmap|${LOCALBASE}/etc/zmap|g' -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/CMakeLists.txt @@ -39,8 +35,7 @@ post-patch: ${WRKSRC}/src/zmap.c post-install: -.for cnf in blocklist.conf zmap.conf - @${MV} ${STAGEDIR}${ETCDIR}/${cnf} ${STAGEDIR}${ETCDIR}/${cnf}.sample -.endfor + @${MV} ${STAGEDIR}${ETCDIR}/blocklist.conf ${STAGEDIR}${ETCDIR}/blocklist.conf.sample + @${MV} ${STAGEDIR}${ETCDIR}/zmap.conf ${STAGEDIR}${ETCDIR}/zmap.conf.sample .include <bsd.port.mk> |