summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-02-12 21:00:08 +0100
committerJeroen Roovers <jer@gentoo.org>2018-02-12 21:00:08 +0100
commitabf7aee2653fec182ad215fd2738f49c6df5d695 (patch)
tree330df018dd51a62097f9841d37d60e63575b6c3f /net-analyzer
parentnet-analyzer/tcpreplay: Version 4.3.0_beta1. (diff)
downloadgentoo-abf7aee2653fec182ad215fd2738f49c6df5d695.tar.gz
gentoo-abf7aee2653fec182ad215fd2738f49c6df5d695.tar.bz2
gentoo-abf7aee2653fec182ad215fd2738f49c6df5d695.zip
net-analyzer/tcpreen: Fix some compiler warnings.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch13
-rw-r--r--net-analyzer/tcpreen/tcpreen-1.4.4.ebuild13
2 files changed, 21 insertions, 5 deletions
diff --git a/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch b/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch
new file mode 100644
index 000000000000..1808a54f8875
--- /dev/null
+++ b/net-analyzer/tcpreen/files/tcpreen-1.4.4-literal-suffix.patch
@@ -0,0 +1,13 @@
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -108,8 +108,8 @@
+ # define VERSION "unknown version"
+ #endif
+ puts (
+-"TCP re-engineering tool "VERSION" ("PACKAGE_HOST")\n"
+-" built "__DATE__" on "PACKAGE_BUILD_HOSTNAME" ("PACKAGE_BUILD")\n"
++"TCP re-engineering tool " VERSION " (" PACKAGE_HOST ")\n"
++" built " __DATE__ " on " PACKAGE_BUILD_HOSTNAME " (" PACKAGE_BUILD ")\n"
+ "Copyright (C) 2002-2004 Remi Denis-Courmont");
+ puts (_(
+ "This is free software; see the source for copying conditions.\n"
diff --git a/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild b/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
index a2cc20e37a9d..4a5d1fc11656 100644
--- a/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
+++ b/net-analyzer/tcpreen/tcpreen-1.4.4.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
inherit toolchain-funcs
DESCRIPTION="TCP network re-engineering tool"
@@ -12,10 +12,13 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-
+DEPEND="
+ nls? ( sys-devel/gettext )
+"
DOCS=( AUTHORS NEWS README THANKS TODO )
+PATCHES=(
+ "${FILESDIR}"/${P}-literal-suffix.patch
+)
src_configure() {
econf $(use_enable nls)