Date: Tue, 10 May 2016 01:30:03 +0000 (UTC) From: Wen Heping <wen@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414901 - in head/net: . zmap zmap/files Message-ID: <201605100130.u4A1U3uw006173@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wen Date: Tue May 10 01:30:03 2016 New Revision: 414901 URL: https://svnweb.freebsd.org/changeset/ports/414901 Log: ZMap is a fast single packet network scanner designed for Internet-wide network surveys. On a typical desktop computer with a gigabit Ethernet connection, ZMap is capable scanning the entire public IPv4 address space in under 45 minutes. With a 10gigE connection and PF_RING, ZMap can scan the IPv4 address space in under 5 minutes. WWW: https://zmap.io/ PR: 208925 Submitted by: yuri@rawbw.com Added: head/net/zmap/ head/net/zmap/Makefile (contents, props changed) head/net/zmap/distinfo (contents, props changed) head/net/zmap/files/ head/net/zmap/files/patch-CMakeLists.txt (contents, props changed) head/net/zmap/pkg-descr (contents, props changed) head/net/zmap/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Tue May 10 01:28:54 2016 (r414900) +++ head/net/Makefile Tue May 10 01:30:03 2016 (r414901) @@ -1403,6 +1403,7 @@ SUBDIR += zeroconf-ioslave SUBDIR += zerotier SUBDIR += zillion + SUBDIR += zmap SUBDIR += zsync .include <bsd.port.subdir.mk> Added: head/net/zmap/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/zmap/Makefile Tue May 10 01:30:03 2016 (r414901) @@ -0,0 +1,69 @@ +# Created by: Yuri Victorovich <yuri@rawbw.com> +# $FreeBSD$ + +PORTNAME= zmap +PORTVERSION= 2.1.1 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= yuri@rawbw.com +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 +GH_ACCOUNT= zmap + +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_ON+= -DWITH_REDIS=ON +REDIS_CMAKE_OFF+= -DWITH_REDIS=OFF + +MONGO_LIB_DEPENDS+= libmongoc-1.0.so:/devel/mongo-c-driver +MONGO_CMAKE_ON+= -DWITH_MONGO=ON +MONGO_CMAKE_OFF+= -DWITH_MONGO=OFF + +JSON_LIB_DEPENDS= libjson-c.so:devel/json-c +JSON_CMAKE_ON+= -DWITH_JSON=ON +JSON_CMAKE_OFF+= -DWITH_JSON=OFF + +.include <bsd.port.options.mk> + +.if ${OSVERSION} < 1000033 +BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex +.endif + +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 +.if ${OSVERSION} < 1000033 + @${REINPLACE_CMD} -i '' -e 's|COMMAND flex |COMMAND ${LOCALBASE}/bin/flex |g' \ + ${WRKSRC}/src/CMakeLists.txt +.endif + +post-install: +.for m in ${MANPAGE} + ${GZIP_CMD} ${STAGEDIR}${MANPREFIX}/man/man1/$m +.endfor + +.include <bsd.port.mk> Added: head/net/zmap/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/zmap/distinfo Tue May 10 01:30:03 2016 (r414901) @@ -0,0 +1,2 @@ +SHA256 (zmap-zmap-v2.1.1_GH0.tar.gz) = 29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399 +SIZE (zmap-zmap-v2.1.1_GH0.tar.gz) = 131689 Added: head/net/zmap/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/zmap/files/patch-CMakeLists.txt Tue May 10 01:30:03 2016 (r414901) @@ -0,0 +1,15 @@ +--- CMakeLists.txt.orig 2016-04-20 05:20:38 UTC ++++ CMakeLists.txt +@@ -135,11 +135,7 @@ message(STATUS "Default ZMap configurati + foreach(EACH_CONF ${CONF_FILES}) + get_filename_component(CONF_BASENAME ${EACH_CONF} NAME) + message(STATUS "Checking if ${CONF_BASENAME} exists there...") +- if(NOT EXISTS "/etc/zmap/${CONF_BASENAME}") +- install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION}) +- else() +- message(WARNING "Existing configuration file detected at /etc/zmap/${CONF_BASENAME}, ${CONF_BASENAME} from sources will NOT be installed. Please check and install manually!") +- endif() ++ install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION}) + endforeach() + + # Allow Debian Packaging Added: head/net/zmap/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/zmap/pkg-descr Tue May 10 01:30:03 2016 (r414901) @@ -0,0 +1,7 @@ +ZMap is a fast single packet network scanner designed for Internet-wide network +surveys. On a typical desktop computer with a gigabit Ethernet connection, ZMap +is capable scanning the entire public IPv4 address space in under 45 minutes. +With a 10gigE connection and PF_RING, ZMap can scan the IPv4 address space in +under 5 minutes. + +WWW: https://zmap.io/ Added: head/net/zmap/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/zmap/pkg-plist Tue May 10 01:30:03 2016 (r414901) @@ -0,0 +1,8 @@ +%%ETCDIR%%/blacklist.conf +%%ETCDIR%%/zmap.conf +man/man1/zblacklist.1.gz +man/man1/zmap.1.gz +man/man1/ztee.1.gz +sbin/zblacklist +sbin/zmap +sbin/ztee
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605100130.u4A1U3uw006173>