Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zmap/
Date: Fri, 02 Oct 2020 13:57:22
Message-Id: 1601647029.c221be37641e3c664c5eef28e774537ad8f0974d.juippis@gentoo
1 commit: c221be37641e3c664c5eef28e774537ad8f0974d
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Fri Sep 18 05:22:04 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 2 13:57:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c221be37
7
8 net-analyzer/zmap: tidy up ebuild
9
10 - Port to EAPI 7
11 - Port to cmake eclass
12 - Drop unused json USE flag
13
14 Package-Manager: Portage-3.0.4, Repoman-3.0.1
15 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 net-analyzer/zmap/metadata.xml | 1 -
19 net-analyzer/zmap/zmap-2.1.1-r2.ebuild | 44 ++++++++++++++++++++++++++++++++++
20 2 files changed, 44 insertions(+), 1 deletion(-)
21
22 diff --git a/net-analyzer/zmap/metadata.xml b/net-analyzer/zmap/metadata.xml
23 index fc168991253..2204ae3c97c 100644
24 --- a/net-analyzer/zmap/metadata.xml
25 +++ b/net-analyzer/zmap/metadata.xml
26 @@ -21,7 +21,6 @@ availability, and help us better understand large systems distributed
27 across the Internet.
28 </longdescription>
29 <use>
30 - <flag name="json">Add support to store results JSON based</flag>
31 <flag name="mongo">
32 Add support for storing in a mongo DB via <pkg>dev-db/mongodb</pkg>
33 </flag>
34
35 diff --git a/net-analyzer/zmap/zmap-2.1.1-r2.ebuild b/net-analyzer/zmap/zmap-2.1.1-r2.ebuild
36 new file mode 100644
37 index 00000000000..92a3c6e4eec
38 --- /dev/null
39 +++ b/net-analyzer/zmap/zmap-2.1.1-r2.ebuild
40 @@ -0,0 +1,44 @@
41 +# Copyright 1999-2020 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +inherit cmake fcaps
47 +
48 +DESCRIPTION="Fast network scanner designed for Internet-wide network surveys"
49 +HOMEPAGE="https://zmap.io/"
50 +SRC_URI="https://github.com/zmap/zmap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~x86"
55 +IUSE="mongo redis"
56 +
57 +RDEPEND="dev-libs/gmp:0
58 + net-libs/libpcap
59 + dev-libs/json-c:=
60 + mongo? ( dev-db/mongodb )
61 + redis? ( dev-libs/hiredis )"
62 +DEPEND="${RDEPEND}
63 + dev-util/gengetopt
64 + sys-devel/flex
65 + dev-util/byacc"
66 +
67 +src_prepare() {
68 + sed \
69 + -e '/ggo/s:CMAKE_CURRENT_SOURCE_DIR}:CMAKE_BINARY_DIR}/src:g' \
70 + -i src/CMakeLists.txt || die
71 + cmake_src_prepare
72 +}
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DENABLE_DEVELOPMENT=OFF
77 + -DWITH_WERROR=OFF
78 + -DWITH_MONGO="$(usex mongo)"
79 + -DWITH_REDIS="$(usex redis)"
80 + )
81 + cmake_src_configure
82 +}
83 +
84 +FILECAPS=( cap_net_raw=ep usr/sbin/zmap )