commit:     8345db6c4b37cf5673bae67b4a8e58f31e0e9e4a
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  6 10:36:15 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Sep  6 10:36:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8345db6c

net-analyzer/xprobe: Fix compiling with sys-devel/clang

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Closes: https://bugs.gentoo.org/740654
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch | 11 ++++++++
 net-analyzer/xprobe/xprobe-0.3-r1.ebuild         | 36 ++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch 
b/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch
new file mode 100644
index 00000000000..7ec38a9c275
--- /dev/null
+++ b/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch
@@ -0,0 +1,11 @@
+--- a/src/defines.h.in
++++ b/src/defines.h.in
+@@ -24,7 +24,7 @@
+ 
+ #define VERSION "@VERSION@"
+ #define BANNER \
+-"\nXprobe2 v."VERSION\
++"\nXprobe2 v." VERSION \
+ " Copyright (c) 2002-2005 [email protected], [email protected], [email protected]"\
+ "\n"
+ 

diff --git a/net-analyzer/xprobe/xprobe-0.3-r1.ebuild 
b/net-analyzer/xprobe/xprobe-0.3-r1.ebuild
new file mode 100644
index 00000000000..209b65fecc7
--- /dev/null
+++ b/net-analyzer/xprobe/xprobe-0.3-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+MY_P=${PN}2-${PV}
+
+DESCRIPTION="Active OS fingerprinting tool - this is Xprobe2"
+HOMEPAGE="http://sys-security.com/blog/xprobe2";
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc43.patch
+       "${FILESDIR}"/${P}-cxx11.patch
+)
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+       default
+       sed -i -e 's:strip:true:' src/Makefile.in || die
+       sed -i -e 's:ar cr:$(AR) cr:g' $(find -name '*Makefile*') || die
+
+       tc-export AR
+}
+
+src_install() {
+       default
+       dodoc AUTHORS CHANGELOG CREDITS README TODO docs/*.{txt,pdf}
+}

Reply via email to