summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-06-10 12:43:00 +0200
committerJeroen Roovers <jer@gentoo.org>2020-06-10 12:44:24 +0200
commit7b5b5bd16b586c269969862ada5a5908f03d2dbd (patch)
tree9c7e33c3f87a4d8620513139fe944425291f19ad
parentnet-ftp/ncftp: Set AR (diff)
downloadgentoo-7b5b5bd16b586c269969862ada5a5908f03d2dbd.tar.gz
gentoo-7b5b5bd16b586c269969862ada5a5908f03d2dbd.tar.bz2
gentoo-7b5b5bd16b586c269969862ada5a5908f03d2dbd.zip
net-analyzer/sngrep: Version 1.4.7
- Add USE=logo - EAPI=7 - RESTRICT=test - Fix setting LDFLAGS Package-Manager: Portage-2.3.100, Repoman-2.3.22 Closes: https://bugs.gentoo.org/727790 Closes: https://bugs.gentoo.org/709852 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--net-analyzer/sngrep/Manifest1
-rw-r--r--net-analyzer/sngrep/files/sngrep-1.4.7-LDFLAGS.patch11
-rw-r--r--net-analyzer/sngrep/metadata.xml1
-rw-r--r--net-analyzer/sngrep/sngrep-1.4.7.ebuild46
4 files changed, 59 insertions, 0 deletions
diff --git a/net-analyzer/sngrep/Manifest b/net-analyzer/sngrep/Manifest
index d5c0aba6419b..9f3afb299a48 100644
--- a/net-analyzer/sngrep/Manifest
+++ b/net-analyzer/sngrep/Manifest
@@ -1 +1,2 @@
DIST sngrep-1.4.6.tar.gz 235721 BLAKE2B e01f2a1d83b9147b99196f7ff2e5562552b16badc2ca634e63b2e2f5955a5d0328c9fcdb841f42a950899511a81fffd8eb64169758dc319875e3052d4359de93 SHA512 25c67e26158b140bded775b217f313ad5a6268684f03d0b9875ddd423d7548b50fa9c358346330d3873984f456aefa9401c2b0fdd136dd95061e34da6530bcc3
+DIST sngrep-1.4.7.tar.gz 237978 BLAKE2B 30172748aeab2910e7fa13f35b447d7bd1688bb206576af6233c8c47405eb3fe93316cc72255169f19f3752e7fe3ada63c5c0bba0d9ab75706c1b0d3ac296474 SHA512 f414f9cc49b0c34cbbf5a77d285f12eb4091af3395953ed93dbe2f57d4ba3731d16c4b56c37e90744cf3784572975f485aed48cdd100898ffaee18e9a18943b1
diff --git a/net-analyzer/sngrep/files/sngrep-1.4.7-LDFLAGS.patch b/net-analyzer/sngrep/files/sngrep-1.4.7-LDFLAGS.patch
new file mode 100644
index 000000000000..3e63dc245dab
--- /dev/null
+++ b/net-analyzer/sngrep/files/sngrep-1.4.7-LDFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/m4/sngrep.m4
++++ b/m4/sngrep.m4
+@@ -44,7 +44,7 @@
+ LIBS="$sngrep_config_script $LIBS "
+ sngrep_script_success=yes
+ ], [])
+- LDFLAGS="$save_LDFLAGS"
++ LDFLAGS="$sngrep_save_LDFLAGS"
+ fi
+ if test "x$sngrep_script_success" = xno; then
+ [$5]
diff --git a/net-analyzer/sngrep/metadata.xml b/net-analyzer/sngrep/metadata.xml
index eeb043ad62b3..b6a99fc054d5 100644
--- a/net-analyzer/sngrep/metadata.xml
+++ b/net-analyzer/sngrep/metadata.xml
@@ -7,6 +7,7 @@
<use>
<flag name='eep'>Enable EEP packet send/receive support</flag>
<flag name='gnutls'>Use <pkg>net-libs/gnutls</pkg> to parse captured TLS packets</flag>
+<flag name='logo'>Enable Irontec Logo from Summary menu</flag>
<flag name='openssl'>Use <pkg>dev-libs/openssl</pkg> to parse captured TLS packets</flag>
</use>
</pkgmetadata>
diff --git a/net-analyzer/sngrep/sngrep-1.4.7.ebuild b/net-analyzer/sngrep/sngrep-1.4.7.ebuild
new file mode 100644
index 000000000000..12eaf83d7002
--- /dev/null
+++ b/net-analyzer/sngrep/sngrep-1.4.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Ncurses SIP Messages flow viewer"
+HOMEPAGE="https://github.com/irontec/sngrep"
+SRC_URI="https://github.com/irontec/sngrep/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="eep gnutls ipv6 logo openssl pcre unicode"
+REQUIRED_USE="
+ gnutls? ( !openssl )
+"
+
+DEPEND="
+ net-libs/libpcap
+ sys-libs/ncurses:0=[unicode?]
+ openssl? ( dev-libs/openssl:0= )
+ gnutls? ( net-libs/gnutls )
+"
+RDEPEND="${DEPEND}"
+RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.4.5-tinfo.patch
+ "${FILESDIR}"/${PN}-1.4.7-LDFLAGS.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable eep) \
+ $(use_enable ipv6) \
+ $(use_enable logo) \
+ $(use_enable unicode) \
+ $(use_with gnutls) \
+ $(use_with openssl) \
+ $(use_with pcre)
+}