From owner-svn-ports-head@freebsd.org Tue May 10 01:30:05 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8958BB33FD7; Tue, 10 May 2016 01:30:05 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0211385; Tue, 10 May 2016 01:30:05 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4A1U4QX006179; Tue, 10 May 2016 01:30:04 GMT (envelope-from wen@FreeBSD.org) Received: (from wen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4A1U3uw006173; Tue, 10 May 2016 01:30:03 GMT (envelope-from wen@FreeBSD.org) Message-Id: <201605100130.u4A1U3uw006173@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wen set sender to wen@FreeBSD.org using -f From: Wen Heping Date: Tue, 10 May 2016 01:30:03 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 01:30:05 -0000 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 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 +# $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 + +.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 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