1 |
commit: 8345db6c4b37cf5673bae67b4a8e58f31e0e9e4a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 10:36:15 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 10:36:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8345db6c |
7 |
|
8 |
net-analyzer/xprobe: Fix compiling with sys-devel/clang |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Closes: https://bugs.gentoo.org/740654 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch | 11 ++++++++ |
15 |
net-analyzer/xprobe/xprobe-0.3-r1.ebuild | 36 ++++++++++++++++++++++++ |
16 |
2 files changed, 47 insertions(+) |
17 |
|
18 |
diff --git a/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch b/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..7ec38a9c275 |
21 |
--- /dev/null |
22 |
+++ b/net-analyzer/xprobe/files/xprobe-0.3-cxx11.patch |
23 |
@@ -0,0 +1,11 @@ |
24 |
+--- a/src/defines.h.in |
25 |
++++ b/src/defines.h.in |
26 |
+@@ -24,7 +24,7 @@ |
27 |
+ |
28 |
+ #define VERSION "@VERSION@" |
29 |
+ #define BANNER \ |
30 |
+-"\nXprobe2 v."VERSION\ |
31 |
++"\nXprobe2 v." VERSION \ |
32 |
+ " Copyright (c) 2002-2005 fyodor@×××.nu, ofir@××××××××××××.com, meder@×××.nu"\ |
33 |
+ "\n" |
34 |
+ |
35 |
|
36 |
diff --git a/net-analyzer/xprobe/xprobe-0.3-r1.ebuild b/net-analyzer/xprobe/xprobe-0.3-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..209b65fecc7 |
39 |
--- /dev/null |
40 |
+++ b/net-analyzer/xprobe/xprobe-0.3-r1.ebuild |
41 |
@@ -0,0 +1,36 @@ |
42 |
+# Copyright 1999-2020 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+inherit toolchain-funcs |
47 |
+ |
48 |
+MY_P=${PN}2-${PV} |
49 |
+ |
50 |
+DESCRIPTION="Active OS fingerprinting tool - this is Xprobe2" |
51 |
+HOMEPAGE="http://sys-security.com/blog/xprobe2" |
52 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
57 |
+ |
58 |
+DEPEND="net-libs/libpcap" |
59 |
+RDEPEND="${DEPEND}" |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${P}-gcc43.patch |
62 |
+ "${FILESDIR}"/${P}-cxx11.patch |
63 |
+) |
64 |
+S=${WORKDIR}/${MY_P} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ sed -i -e 's:strip:true:' src/Makefile.in || die |
69 |
+ sed -i -e 's:ar cr:$(AR) cr:g' $(find -name '*Makefile*') || die |
70 |
+ |
71 |
+ tc-export AR |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ dodoc AUTHORS CHANGELOG CREDITS README TODO docs/*.{txt,pdf} |
77 |
+} |