Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/sngrep/, net-analyzer/sngrep/files/
Date: Tue, 20 Feb 2018 07:27:49
Message-Id: 1519111643.cab50b4f6fe2a058a89a8a0141dbceb74a68b2b0.jer@gentoo
1 commit: cab50b4f6fe2a058a89a8a0141dbceb74a68b2b0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 20 07:27:09 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 20 07:27:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cab50b4f
7
8 net-analyzer/sngrep: Initial commit (bug #534780).
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-analyzer/sngrep/Manifest | 1 +
13 net-analyzer/sngrep/files/sngrep-1.4.5-tinfo.patch | 13 +++++++
14 net-analyzer/sngrep/metadata.xml | 12 ++++++
15 net-analyzer/sngrep/sngrep-1.4.5.ebuild | 43 ++++++++++++++++++++++
16 4 files changed, 69 insertions(+)
17
18 diff --git a/net-analyzer/sngrep/Manifest b/net-analyzer/sngrep/Manifest
19 new file mode 100644
20 index 00000000000..f6075c3f385
21 --- /dev/null
22 +++ b/net-analyzer/sngrep/Manifest
23 @@ -0,0 +1 @@
24 +DIST sngrep-1.4.5.tar.gz 233379 BLAKE2B b2b080850ad9bc0ab961558781a3c8dd2b0d021d6d5763f6a0fbf56ad20581aeaed3b03804eecc4aa11ef2c8f796f742d990b33fb6d6929a735db7932785bc37 SHA512 428db158146fdf17e8276700a3c32e90d0d4b26b795f0c00eca047b048cf7b66fe20e3f9923823a5240018d1a941d1d32199bfe1bbb8622dc0d813fb0e7d6e73
25
26 diff --git a/net-analyzer/sngrep/files/sngrep-1.4.5-tinfo.patch b/net-analyzer/sngrep/files/sngrep-1.4.5-tinfo.patch
27 new file mode 100644
28 index 00000000000..f3829560264
29 --- /dev/null
30 +++ b/net-analyzer/sngrep/files/sngrep-1.4.5-tinfo.patch
31 @@ -0,0 +1,13 @@
32 +--- a/configure.ac
33 ++++ b/configure.ac
34 +@@ -98,6 +98,10 @@
35 + ])
36 + ])
37 +
38 ++AC_SEARCH_LIBS([keyname], [tinfo], [], [
39 ++ AC_MSG_ERROR([ You need to have ncurses panelw library installed to compile sngrep.])
40 ++])
41 ++
42 + ####
43 + #### GnuTLS Support
44 + ####
45
46 diff --git a/net-analyzer/sngrep/metadata.xml b/net-analyzer/sngrep/metadata.xml
47 new file mode 100644
48 index 00000000000..eeb043ad62b
49 --- /dev/null
50 +++ b/net-analyzer/sngrep/metadata.xml
51 @@ -0,0 +1,12 @@
52 +<?xml version="1.0" encoding="UTF-8"?>
53 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
54 +<pkgmetadata>
55 +<maintainer type="project">
56 +<email>netmon@g.o</email>
57 +</maintainer>
58 +<use>
59 +<flag name='eep'>Enable EEP packet send/receive support</flag>
60 +<flag name='gnutls'>Use <pkg>net-libs/gnutls</pkg> to parse captured TLS packets</flag>
61 +<flag name='openssl'>Use <pkg>dev-libs/openssl</pkg> to parse captured TLS packets</flag>
62 +</use>
63 +</pkgmetadata>
64
65 diff --git a/net-analyzer/sngrep/sngrep-1.4.5.ebuild b/net-analyzer/sngrep/sngrep-1.4.5.ebuild
66 new file mode 100644
67 index 00000000000..f9c686aba4d
68 --- /dev/null
69 +++ b/net-analyzer/sngrep/sngrep-1.4.5.ebuild
70 @@ -0,0 +1,43 @@
71 +# Copyright 1999-2018 Gentoo Foundation
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI=6
75 +inherit autotools
76 +
77 +DESCRIPTION="Ncurses SIP Messages flow viewer"
78 +HOMEPAGE="https://github.com/irontec/sngrep"
79 +SRC_URI="${HOMEPAGE}/releases/download/v${PV}/${P}.tar.gz"
80 +
81 +LICENSE="GPL-3"
82 +SLOT="0"
83 +KEYWORDS="~amd64"
84 +IUSE="eep gnutls ipv6 openssl pcre unicode"
85 +REQUIRED_USE="
86 + gnutls? ( !openssl )
87 +"
88 +
89 +DEPEND="
90 + net-libs/libpcap
91 + sys-libs/ncurses:*[unicode?]
92 + openssl? ( dev-libs/openssl:* )
93 + gnutls? ( net-libs/gnutls )
94 +"
95 +RDEPEND="${DEPEND}"
96 +PATCHES=(
97 + "${FILESDIR}"/${PN}-1.4.5-tinfo.patch
98 +)
99 +
100 +src_prepare() {
101 + default
102 + eautoreconf
103 +}
104 +
105 +src_configure() {
106 + econf \
107 + $(use_enable eep) \
108 + $(use_enable ipv6) \
109 + $(use_enable unicode) \
110 + $(use_with gnutls) \
111 + $(use_with openssl) \
112 + $(use_with pcre)
113 +}