summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/zmap
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/zmap')
-rw-r--r--net-analyzer/zmap/Manifest4
-rw-r--r--net-analyzer/zmap/files/zmap-1.1.0-out-of-src.patch45
-rw-r--r--net-analyzer/zmap/files/zmap-1.1.1-json-c.patch28
-rw-r--r--net-analyzer/zmap/files/zmap-1.1.1-out-of-src.patch48
-rw-r--r--net-analyzer/zmap/files/zmap-9999-cmake.patch178
-rw-r--r--net-analyzer/zmap/files/zmap-9999-out-of-src.patch29
-rw-r--r--net-analyzer/zmap/metadata.xml24
-rw-r--r--net-analyzer/zmap/zmap-1.1.1.ebuild43
-rw-r--r--net-analyzer/zmap/zmap-1.1.2.ebuild43
-rw-r--r--net-analyzer/zmap/zmap-1.2.0.ebuild38
-rw-r--r--net-analyzer/zmap/zmap-1.2.1.ebuild39
-rw-r--r--net-analyzer/zmap/zmap-9999.ebuild41
12 files changed, 560 insertions, 0 deletions
diff --git a/net-analyzer/zmap/Manifest b/net-analyzer/zmap/Manifest
new file mode 100644
index 000000000000..a625e81331c8
--- /dev/null
+++ b/net-analyzer/zmap/Manifest
@@ -0,0 +1,4 @@
+DIST zmap-1.1.1.tar.gz 84325 SHA256 e3a740a97f217840b6afa81e2c84e11d44f91346cb9f2b21d0f5eda11fca5128 SHA512 daffd541b04d1c1e3e8cccbd3d08d881d2460b177524b5cafced388ebf7ea29343602f2540ba0430249cc0167ad370f1287f21f952c9254d98ce6213ba2288dd WHIRLPOOL a5882df618b1990be8bda2872175e33209cf9cedf003c2e619c4e136b4596e443f7b9a9d31b8abc2e520f8f502d9ba6b728b9fd9a320557b94e62aec09fb1a8a
+DIST zmap-1.1.2.tar.gz 84364 SHA256 3766b1cee8287184e4f475761b78633639e130fd004ae067ce4abf79b3a2da0d SHA512 b0f3834f30b97166576fb64814791f4aec1fa9326dfe965d65c66e7375cdeae48b6a25156c65a5af6a74e739df3964538d4c29b2d6e1c3d71b9ed3c756bb7821 WHIRLPOOL b6d0629f0aee3d6321c2179395fad97a2d5f0bb5e9cdf7a08606baf2d9bfe6f3bfe19e403147fd568a164a8d75c3e1db5f996e5d4ecdf9df366a3f1395681b3f
+DIST zmap-1.2.0.tar.gz 100594 SHA256 7658aef8338c592bebef82336f58598b2fa305d56779f6c81bffeef8c90472b0 SHA512 68fa49647444f18adfc86b4ee85ed3e93945611ca75687eedc259504e0d66edcded267b4fba9a975299984551c88193feacb850f46432d3f3f22f1430ed7c9bd WHIRLPOOL e4a50f86dfcae802d6b432e51c0f78ca37d56a3540326f076fcc002fbb23aeb85dbb57ad4a84b4b10d863f0f41b8d06510fdec1b9264d77c80cf0ffa69e5e01a
+DIST zmap-1.2.1.tar.gz 99840 SHA256 ff01f2b139e98a7e64ed2872ae332929c500dd6120888d57900fac82dccfeea8 SHA512 1b3d7fa41bb75c859463f3ec8bcde31778f5d91a6f561aa9638ba93be97dacdba89493574581ce52aebcf093a86b042dcce41cffe6cb0849bb76a6005b714be2 WHIRLPOOL 842ad32286883b554440dcb5ccfd8655997321612fd9ec49f591a6151819b6b605bc518281100c55ca8a9113819960710f870a745ebcb9994a6224b47d9a49ee
diff --git a/net-analyzer/zmap/files/zmap-1.1.0-out-of-src.patch b/net-analyzer/zmap/files/zmap-1.1.0-out-of-src.patch
new file mode 100644
index 000000000000..38f39efd0a33
--- /dev/null
+++ b/net-analyzer/zmap/files/zmap-1.1.0-out-of-src.patch
@@ -0,0 +1,45 @@
+ CMakeLists.txt | 2 +-
+ src/CMakeLists.txt | 4 ++--
+ zmap_conf_install.cmake.in | 2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bea62ab..0378f44 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -67,4 +67,4 @@ add_subdirectory(src)
+ FILE(GLOB CONF_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/conf" "conf/*")
+ message(STATUS "${CONF_FILES}")
+ configure_file(zmap_conf_install.cmake.in zmap_conf_install.cmake)
+-install(SCRIPT zmap_conf_install.cmake)
++install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/zmap_conf_install.cmake")
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6e51f12..2c1ae5a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -75,11 +75,11 @@ add_custom_command(OUTPUT zopt.h
+ )
+
+ add_custom_command(OUTPUT lexer.c
+- COMMAND flex -o "${CMAKE_CURRENT_BINARY_DIR}/lexer.c" --header-file="${CMAKE_CURRENT_BINARY_DIR}/lexer.h" lexer.l
++ COMMAND flex -o "${CMAKE_CURRENT_BINARY_DIR}/lexer.c" --header-file="${CMAKE_CURRENT_BINARY_DIR}/lexer.h" "${CMAKE_CURRENT_SOURCE_DIR}/lexer.l"
+ )
+
+ add_custom_command(OUTPUT parser.c
+- COMMAND byacc -d -o parser.c parser.y
++ COMMAND byacc -d -o "${CMAKE_CURRENT_BINARY_DIR}/parser.c" "${CMAKE_CURRENT_SOURCE_DIR}/parser.y"
+ )
+
+ add_executable(zmap ${SOURCES})
+diff --git a/zmap_conf_install.cmake.in b/zmap_conf_install.cmake.in
+index 358a97d..aba7a60 100644
+--- a/zmap_conf_install.cmake.in
++++ b/zmap_conf_install.cmake.in
+@@ -1,6 +1,6 @@
+ foreach(conf_file ${CONF_FILES})
+ message(STATUS "${conf_file}")
+ if(NOT EXISTS "/etc/zmap/${conf_file}")
+- file(INSTALL "conf/${conf_file}" DESTINATION "/etc/zmap")
++ file(INSTALL "${CMAKE_CURRENT_SOURCE_DIR}/conf/${conf_file}" DESTINATION "/etc/zmap")
+ endif()
+ endforeach()
diff --git a/net-analyzer/zmap/files/zmap-1.1.1-json-c.patch b/net-analyzer/zmap/files/zmap-1.1.1-json-c.patch
new file mode 100644
index 000000000000..d5f7e3c04ae9
--- /dev/null
+++ b/net-analyzer/zmap/files/zmap-1.1.1-json-c.patch
@@ -0,0 +1,28 @@
+From 08c00b66555612ed69d7f253b277f44cf8da0c62 Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Mon, 30 Dec 2013 10:50:34 +0100
+Subject: [PATCH] Fix name of josn-c pkg-config file
+
+Over 2 years ago json-c renamed its pc file from json.pc -> json-c.pc.
+
+Signed-off-by: Justin Lecher <jlec@gentoo.org>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ebf9316..a9c8e5a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -52,7 +52,7 @@ endif()
+
+ if(WITH_JSON)
+ include(FindPkgConfig)
+- pkg_check_modules(JSON json)
++ pkg_check_modules(JSON json-c)
+ if(JSON_FOUND)
+ include_directories(JSON_INCLUDE_DIRS)
+ else()
+--
+1.8.5.2
+
diff --git a/net-analyzer/zmap/files/zmap-1.1.1-out-of-src.patch b/net-analyzer/zmap/files/zmap-1.1.1-out-of-src.patch
new file mode 100644
index 000000000000..bd99ee31bb43
--- /dev/null
+++ b/net-analyzer/zmap/files/zmap-1.1.1-out-of-src.patch
@@ -0,0 +1,48 @@
+ CMakeLists.txt | 2 +-
+ src/CMakeLists.txt | 4 ++--
+ zmap_conf_install.cmake.in | 7 -------
+ 3 files changed, 3 insertions(+), 10 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index aeb1c7f..0378f44 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -67,4 +67,4 @@ add_subdirectory(src)
+ FILE(GLOB CONF_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/conf" "conf/*")
+ message(STATUS "${CONF_FILES}")
+ configure_file(zmap_conf_install.cmake.in zmap_conf_install.cmake)
+-install(SCRIPT "${PROJECT_SOURCE_DIR}/zmap_conf_install.cmake")
++install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/zmap_conf_install.cmake")
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6e51f12..2c1ae5a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -75,11 +75,11 @@ add_custom_command(OUTPUT zopt.h
+ )
+
+ add_custom_command(OUTPUT lexer.c
+- COMMAND flex -o "${CMAKE_CURRENT_BINARY_DIR}/lexer.c" --header-file="${CMAKE_CURRENT_BINARY_DIR}/lexer.h" lexer.l
++ COMMAND flex -o "${CMAKE_CURRENT_BINARY_DIR}/lexer.c" --header-file="${CMAKE_CURRENT_BINARY_DIR}/lexer.h" "${CMAKE_CURRENT_SOURCE_DIR}/lexer.l"
+ )
+
+ add_custom_command(OUTPUT parser.c
+- COMMAND byacc -d -o parser.c parser.y
++ COMMAND byacc -d -o "${CMAKE_CURRENT_BINARY_DIR}/parser.c" "${CMAKE_CURRENT_SOURCE_DIR}/parser.y"
+ )
+
+ add_executable(zmap ${SOURCES})
+diff --git a/zmap_conf_install.cmake.in b/zmap_conf_install.cmake.in
+index c1b2f61..695e7dd 100644
+--- a/zmap_conf_install.cmake.in
++++ b/zmap_conf_install.cmake.in
+@@ -1,10 +1,3 @@
+-message(STATUS "Creating /etc/zmap")
+-if (NOT EXISTS "/etc/zmap/")
+- file(MAKE_DIRECTORY "/etc/zmap")
+-else()
+- message(STATUS "/etc/zmap exists, skipping...")
+-endif()
+-
+ message(STATUS "Installing blacklist.conf...")
+ if (NOT EXISTS "/etc/zmap/blacklist.conf")
+ file(INSTALL "${PROJECT_SOURCE_DIR}/conf/blacklist.conf" DESTINATION "/etc/zmap")
diff --git a/net-analyzer/zmap/files/zmap-9999-cmake.patch b/net-analyzer/zmap/files/zmap-9999-cmake.patch
new file mode 100644
index 000000000000..fe57de933562
--- /dev/null
+++ b/net-analyzer/zmap/files/zmap-9999-cmake.patch
@@ -0,0 +1,178 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+new file mode 100644
+index 0000000..8e2d2b4
+--- /dev/null
++++ b/CMakeLists.txt
+@@ -0,0 +1,72 @@
++cmake_minimum_required (VERSION 2.6)
++project (ZMAP C)
++
++option(WITH_REDIS "Build with support for Redis DB" OFF)
++option(WITH_JSON "Build with support for JSON" OFF)
++option(ENABLE_DEVELOPMENT "Enable development specific compiler and linker flags" OFF)
++option(ENABLE_HARDENING "Add hardening specific compiler and linker flags" OFF)
++
++if(ENABLE_DEVELOPMENT)
++ # Hardening and warnings for building with gcc
++ # Maybe add -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
++ set(GCCWARNINGS
++ "-Wall -Wformat=2 -Wno-format-nonliteral"
++ "-pedantic -fno-strict-aliasing"
++ "-Wextra"
++ "-Wfloat-equal -Wundef -Wwrite-strings -Wredundant-decls"
++ "-Wnested-externs -Wbad-function-cast -Winit-self"
++ "-Wmissing-noreturn -Wnormalized=id"
++ "-Wstack-protector"
++ "-Werror"
++ )
++
++ # Fix line breaks
++ string(REPLACE ";" " " GCCWARNINGS "${GCCWARNINGS}")
++
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCCWARNINGS} -g")
++ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -g")
++endif()
++
++if(ENABLE_HARDENING)
++ set(GCCHARDENING "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1")
++ set(LDHARDENING "-z relro -z now")
++
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCCHARDENING}")
++ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LDHARDENING}")
++endif()
++
++if(WITH_REDIS)
++ set(REDIS_LIBS hiredis)
++ add_definitions("-DREDIS")
++endif()
++
++if(WITH_JSON)
++ include(FindPkgConfig)
++ pkg_check_modules(JSON json-c)
++ if(NOT JSON_FOUND)
++ set(JSON_CFLAGS "")
++ set(JSON_LIBS "-ljson-c")
++ include_directories("/usr/local/include/json-c/")
++ endif()
++
++ add_definitions("-DJSON")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${JSON_CFLAGS}")
++endif()
++
++# Standard FLAGS
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
++set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
++
++# Extra target FLAGS
++set(CMAKE_C_FLAGS_DEBUG "-O2 -g")
++set(CMAKE_C_FLAGS_RELEASE "-O2")
++
++add_subdirectory(src)
++
++# Install conf files
++FILE(GLOB CONF_FILES "conf/*")
++install(
++ FILES
++ ${CONF_FILES}
++ DESTINATION "/etc/zmap/"
++ )
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+new file mode 100644
+index 0000000..50bf1ee
+--- /dev/null
++++ b/src/CMakeLists.txt
+@@ -0,0 +1,94 @@
++include_directories(
++ "${CMAKE_CURRENT_BINARY_DIR}"
++ ${PROJECT_SOURCE_DIR}/lib
++ ${PROJECT_SOURCE_DIR}/src
++ ${PROJECT_SOURCE_DIR}/src/output_modules
++ )
++
++SET(LIB_SOURCES
++ ${PROJECT_SOURCE_DIR}/lib/blacklist.c
++ ${PROJECT_SOURCE_DIR}/lib/constraint.c
++ ${PROJECT_SOURCE_DIR}/lib/logger.c
++ ${PROJECT_SOURCE_DIR}/lib/random.c
++ ${PROJECT_SOURCE_DIR}/lib/rijndael-alg-fst.c
++)
++
++# ADD YOUR PROBE MODULE HERE
++SET(EXTRA_PROBE_MODULES
++
++ )
++
++# ADD YOUR OUTPUT MODULE HERE
++SET(EXTRA_OUTPUT_MODULES
++
++ )
++
++SET(OUTPUT_MODULE_SOURCES
++# output_modules/module_extended_file.c
++# output_modules/module_simple_file.c
++ output_modules/module_csv.c
++ output_modules/output_modules.c
++ )
++
++SET(PROBE_MODULE_SOURCES
++ probe_modules/module_icmp_echo.c
++ probe_modules/module_tcp_synscan.c
++ probe_modules/module_udp.c
++ probe_modules/packet.c
++ probe_modules/probe_modules.c
++ )
++
++SET(SOURCES
++ aesrand.c
++ cyclic.c
++ fieldset.c
++ get_gateway.c
++ monitor.c
++ recv.c
++ send.c
++ state.c
++ validate.c
++ zmap.c
++ zopt_compat.c
++ "${CMAKE_CURRENT_BINARY_DIR}/zopt.h"
++ ${EXTRA_PROBE_MODULES}
++ ${EXTRA_OUTPUT_MODULES}
++ ${PROBE_MODULE_SOURCES}
++ ${OUTPUT_MODULE_SOURCES}
++ ${LIB_SOURCES}
++ )
++
++if (WITH_JSON)
++ SET(SOURCES ${SOURCES} output_modules/module_json.c)
++endif()
++
++if (WITH_REDIS)
++ SET(SOURCES ${SOURCES} ${PROJECT_SOURCE_DIR}/lib/redis.c output_modules/module_redis.c)
++endif()
++
++add_custom_command(OUTPUT zopt.h
++ COMMAND gengetopt -C --no-help --no-version -i "${CMAKE_CURRENT_SOURCE_DIR}/zopt.ggo" -F "${CMAKE_CURRENT_BINARY_DIR}/zopt"
++ )
++
++add_executable(zmap ${SOURCES})
++
++target_link_libraries(
++ zmap
++ pcap gmp m
++ ${REDIS_LIBS}
++ ${JSON_LIBRARIES}
++ )
++
++# Install binary
++install(
++ TARGETS
++ zmap
++ RUNTIME DESTINATION sbin
++)
++
++# Install Manpages
++install(
++ FILES
++ zmap.1
++ DESTINATION share/man/man1
++ )
diff --git a/net-analyzer/zmap/files/zmap-9999-out-of-src.patch b/net-analyzer/zmap/files/zmap-9999-out-of-src.patch
new file mode 100644
index 000000000000..7d281f8dbe00
--- /dev/null
+++ b/net-analyzer/zmap/files/zmap-9999-out-of-src.patch
@@ -0,0 +1,29 @@
+ CMakeLists.txt | 2 +-
+ zmap_conf_install.cmake.in | 7 -------
+ 2 files changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ebf9316..f18c112 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -77,4 +77,4 @@ add_subdirectory(src)
+ FILE(GLOB CONF_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/conf" "conf/*")
+ message(STATUS "${CONF_FILES}")
+ configure_file(zmap_conf_install.cmake.in zmap_conf_install.cmake)
+-install(SCRIPT "${PROJECT_SOURCE_DIR}/zmap_conf_install.cmake")
++install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/zmap_conf_install.cmake")
+diff --git a/zmap_conf_install.cmake.in b/zmap_conf_install.cmake.in
+index 7f36f12..d5fe9d9 100644
+--- a/zmap_conf_install.cmake.in
++++ b/zmap_conf_install.cmake.in
+@@ -1,10 +1,3 @@
+-message(STATUS "Creating /etc/zmap")
+-if (NOT EXISTS "/etc/zmap/")
+- file(MAKE_DIRECTORY "/etc/zmap")
+-else()
+- message(STATUS "/etc/zmap exists, skipping...")
+-endif()
+-
+ message(STATUS "Installing blacklist.conf...")
+ if (NOT EXISTS "/etc/zmap/blacklist.conf")
+ file(INSTALL "${PROJECT_SOURCE_DIR}/conf/blacklist.conf" DESTINATION "/etc/zmap")
diff --git a/net-analyzer/zmap/metadata.xml b/net-analyzer/zmap/metadata.xml
new file mode 100644
index 000000000000..8fbea4056e31
--- /dev/null
+++ b/net-analyzer/zmap/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ZMap is an open-source network scanner that enables researchers to easily
+perform Internet-wide network studies. With a single machine and a well
+provisioned network uplink, ZMap is capable of performing a complete scan of
+the IPv4 address space in under 45 minutes, approaching the theoretical limit
+of gigabit Ethernet.
+
+ZMap can be used to study protocol adoption over time, monitor service
+availability, and help us better understand large systems distributed
+across the Internet.
+</longdescription>
+ <use>
+ <flag name="redis">
+ Add support for storing in a redis DB via <pkg>dev-libs/hiredis</pkg>
+ </flag>
+ <flag name="json">Add support to store results JSON based</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-analyzer/zmap/zmap-1.1.1.ebuild b/net-analyzer/zmap/zmap-1.1.1.ebuild
new file mode 100644
index 000000000000..55a0bcdd12b5
--- /dev/null
+++ b/net-analyzer/zmap/zmap-1.1.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fcaps
+
+DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
+HOMEPAGE="https://zmap.io/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS=" ~amd64 ~x86"
+IUSE="json redis"
+
+RDEPEND="
+ dev-libs/gmp
+ net-libs/libpcap
+ json? ( dev-libs/json-c )
+ redis? ( dev-libs/hiredis )"
+DEPEND="${RDEPEND}
+ dev-util/gengetopt
+ sys-devel/flex
+ dev-util/byacc"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-out-of-src.patch
+ "${FILESDIR}"/${P}-json-c.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DEVELOPMENT=OFF
+ -DENABLE_HARDENING=OFF
+ $(cmake-utils_use_with json)
+ $(cmake-utils_use_with redis)
+ )
+ cmake-utils_src_configure
+}
+
+FILECAPS=( cap_net_raw=ep usr/sbin/zmap )
diff --git a/net-analyzer/zmap/zmap-1.1.2.ebuild b/net-analyzer/zmap/zmap-1.1.2.ebuild
new file mode 100644
index 000000000000..6641d207d67f
--- /dev/null
+++ b/net-analyzer/zmap/zmap-1.1.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fcaps
+
+DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
+HOMEPAGE="https://zmap.io/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS=" ~amd64 ~x86"
+IUSE="json redis"
+
+RDEPEND="
+ dev-libs/gmp
+ net-libs/libpcap
+ json? ( dev-libs/json-c )
+ redis? ( dev-libs/hiredis )"
+DEPEND="${RDEPEND}
+ dev-util/gengetopt
+ sys-devel/flex
+ dev-util/byacc"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.1-out-of-src.patch
+ "${FILESDIR}"/${PN}-1.1.1-json-c.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DEVELOPMENT=OFF
+ -DENABLE_HARDENING=OFF
+ $(cmake-utils_use_with json)
+ $(cmake-utils_use_with redis)
+ )
+ cmake-utils_src_configure
+}
+
+FILECAPS=( cap_net_raw=ep usr/sbin/zmap )
diff --git a/net-analyzer/zmap/zmap-1.2.0.ebuild b/net-analyzer/zmap/zmap-1.2.0.ebuild
new file mode 100644
index 000000000000..34fe0aa7c083
--- /dev/null
+++ b/net-analyzer/zmap/zmap-1.2.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fcaps
+
+DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
+HOMEPAGE="https://zmap.io/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS=" ~amd64 ~x86"
+IUSE="json redis"
+
+RDEPEND="
+ dev-libs/gmp
+ net-libs/libpcap
+ json? ( dev-libs/json-c )
+ redis? ( dev-libs/hiredis )"
+DEPEND="${RDEPEND}
+ dev-util/gengetopt
+ sys-devel/flex
+ dev-util/byacc"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DEVELOPMENT=OFF
+ -DENABLE_HARDENING=OFF
+ $(cmake-utils_use_with json)
+ $(cmake-utils_use_with redis)
+ )
+ cmake-utils_src_configure
+}
+
+FILECAPS=( cap_net_raw=ep usr/sbin/zmap )
diff --git a/net-analyzer/zmap/zmap-1.2.1.ebuild b/net-analyzer/zmap/zmap-1.2.1.ebuild
new file mode 100644
index 000000000000..ad8d5042776f
--- /dev/null
+++ b/net-analyzer/zmap/zmap-1.2.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fcaps
+
+DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
+HOMEPAGE="https://zmap.io/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS=" ~amd64 ~x86"
+IUSE="json redis"
+
+RDEPEND="
+ dev-libs/gmp
+ net-libs/libpcap
+ json? ( dev-libs/json-c )
+ redis? ( dev-libs/hiredis )"
+DEPEND="${RDEPEND}
+ dev-util/gengetopt
+ sys-devel/flex
+ dev-util/byacc"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DEVELOPMENT=OFF
+ -DENABLE_HARDENING=OFF
+ -DWITH_WERROR=OFF
+ $(cmake-utils_use_with json)
+ $(cmake-utils_use_with redis)
+ )
+ cmake-utils_src_configure
+}
+
+FILECAPS=( cap_net_raw=ep usr/sbin/zmap )
diff --git a/net-analyzer/zmap/zmap-9999.ebuild b/net-analyzer/zmap/zmap-9999.ebuild
new file mode 100644
index 000000000000..d4ba7486a0f1
--- /dev/null
+++ b/net-analyzer/zmap/zmap-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils fcaps git-r3
+
+DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
+HOMEPAGE="https://zmap.io/"
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/zmap/zmap.git"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS=""
+IUSE="json redis"
+
+RDEPEND="
+ dev-libs/gmp
+ net-libs/libpcap
+ json? ( dev-libs/json-c )
+ redis? ( dev-libs/hiredis )"
+DEPEND="${RDEPEND}
+ dev-util/gengetopt
+ sys-devel/flex
+ dev-util/byacc
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DEVELOPMENT=OFF
+ -DENABLE_HARDENING=OFF
+ -DWITH_WERROR=OFF
+ $(cmake-utils_use_with json)
+ $(cmake-utils_use_with redis)
+ )
+ cmake-utils_src_configure
+}
+
+FILECAPS=( cap_net_raw=ep usr/sbin/zmap )