Gentoo Archives: gentoo-commits

From: Agostino Sarubbo <ago@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ettercap/
Date: Tue, 02 Jul 2019 07:13:18
Message-Id: 1562051581.8a281defd78a92ba2ca1378e55cee277296c338c.ago@gentoo
1 commit: 8a281defd78a92ba2ca1378e55cee277296c338c
2 Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 2 07:13:01 2019 +0000
4 Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 2 07:13:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a281def
7
8 net-analyzer/ettercap: version bump to 0.8.3
9
10 Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 net-analyzer/ettercap/Manifest | 1 +
14 net-analyzer/ettercap/ettercap-0.8.3.ebuild | 71 +++++++++++++++++++++++++++++
15 2 files changed, 72 insertions(+)
16
17 diff --git a/net-analyzer/ettercap/Manifest b/net-analyzer/ettercap/Manifest
18 index 2eda4ae804a..dccca758f86 100644
19 --- a/net-analyzer/ettercap/Manifest
20 +++ b/net-analyzer/ettercap/Manifest
21 @@ -1 +1,2 @@
22 DIST ettercap-0.8.2.tar.gz 8082561 BLAKE2B 851df0a8700de45ce0e3427f7fdbdcd13feb2f75c0d1136563449db634b1f02276bade0d82a1a51bf8de726d6faddf05ff537e397c2e56cfc3e3181d25566fe9 SHA512 18137b1cc518c9db3c9650157a5cbf09dbb665b79876a24875d6c5125e8923ebde543464adb61cf1d1244101242f4d66b80d94ef3b36aa265cefca7646aa6415
23 +DIST ettercap-0.8.3.tar.gz 8381943 BLAKE2B f49098d61f60877d3f979d7861f36dad6ec3fbfca7ed89d8f9826867145ea36daec65a1076c893f81391218688448515ef020a9cdf9a16ffddc830bacec8eb1c SHA512 1929c986d3a17ebc693ffe8531e01c66379c0ee6ea71305ea49b6a9eece84b6da1923135311db458bdb6035feb593e525786e6cf4c465ced5a7683384d4a4ae7
24
25 diff --git a/net-analyzer/ettercap/ettercap-0.8.3.ebuild b/net-analyzer/ettercap/ettercap-0.8.3.ebuild
26 new file mode 100644
27 index 00000000000..12a0ca3162d
28 --- /dev/null
29 +++ b/net-analyzer/ettercap/ettercap-0.8.3.ebuild
30 @@ -0,0 +1,71 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake-utils
37 +
38 +DESCRIPTION="A suite for man in the middle attacks"
39 +HOMEPAGE="https://github.com/Ettercap/ettercap"
40 +
41 +LICENSE="GPL-2+"
42 +SLOT="0"
43 +
44 +if [[ ${PV} == "9999" ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/Ettercap/${PN}.git"
47 +else
48 + SRC_URI="https://github.com/Ettercap/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
50 +fi
51 +
52 +IUSE="doc geoip gtk ipv6 libressl ncurses +plugins test"
53 +
54 +RDEPEND="dev-libs/libbsd
55 + dev-libs/libpcre
56 + !libressl? ( dev-libs/openssl:0= )
57 + libressl? ( dev-libs/libressl:0= )
58 + net-libs/libnet:1.1
59 + >=net-libs/libpcap-0.8.1
60 + sys-libs/zlib
61 + geoip? ( dev-libs/geoip )
62 + gtk? (
63 + >=dev-libs/atk-1.2.4
64 + >=dev-libs/glib-2.2.2:2
65 + media-libs/freetype
66 + x11-libs/cairo
67 + x11-libs/gdk-pixbuf:2
68 + >=x11-libs/gtk+-2.2.2:2
69 + >=x11-libs/pango-1.2.3
70 + )
71 + ncurses? ( >=sys-libs/ncurses-5.3:= )
72 + plugins? ( >=net-misc/curl-7.26.0 )"
73 +DEPEND="${RDEPEND}
74 + doc? ( app-text/ghostscript-gpl
75 + sys-apps/groff )
76 + test? ( dev-libs/check )
77 + sys-devel/flex
78 + virtual/yacc"
79 +
80 +src_prepare() {
81 + sed -i "s:Release:Release Gentoo:" CMakeLists.txt || die
82 + cmake-utils_src_prepare
83 +}
84 +
85 +src_configure() {
86 + local mycmakeargs=(
87 + -DENABLE_CURSES="$(usex ncurses)"
88 + -DENABLE_GTK="$(usex gtk)"
89 + -DENABLE_PLUGINS="$(usex plugins)"
90 + -DENABLE_IPV6="$(usex ipv6)"
91 + -DENABLE_TESTS="$(usex test)"
92 + -DENABLE_PDF_DOCS="$(usex doc)"
93 + -DENABLE_GEOIP="$(usex geoip)"
94 + -DBUNDLED_LIBS=OFF
95 + -DSYSTEM_LIBS=ON
96 + -DINSTALL_SYSCONFDIR="${EROOT}"etc
97 + )
98 + #right now we only support gtk2, but ettercap also supports gtk3
99 + #do we care? do we want to support both?
100 + cmake-utils_src_configure
101 +}