1 |
commit: 026668dd5d45a6234c97f03ff0fa6e09123516fa |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 10:54:13 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 10:55:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=026668dd |
7 |
|
8 |
net-analyzer/siphon: Fix CFLAGS=-fno-common |
9 |
|
10 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
11 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=708800 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
.../siphon/files/siphon-666-fno-common.patch | 22 ++++++++++++++ |
15 |
net-analyzer/siphon/siphon-666-r2.ebuild | 34 ++++++++++++++++++++++ |
16 |
2 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/net-analyzer/siphon/files/siphon-666-fno-common.patch b/net-analyzer/siphon/files/siphon-666-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..c3b1addf1b0 |
21 |
--- /dev/null |
22 |
+++ b/net-analyzer/siphon/files/siphon-666-fno-common.patch |
23 |
@@ -0,0 +1,22 @@ |
24 |
+--- a/main.c |
25 |
++++ b/main.c |
26 |
+@@ -12,6 +12,9 @@ |
27 |
+ |
28 |
+ #include <siphon.h> |
29 |
+ |
30 |
++char *device, *logfile; |
31 |
++int verbose, back; |
32 |
++ |
33 |
+ void usage (char *); |
34 |
+ void title(void); |
35 |
+ |
36 |
+--- a/siphon.h |
37 |
++++ b/siphon.h |
38 |
+@@ -51,5 +51,5 @@ |
39 |
+ void *parse (void *); |
40 |
+ void *siphon_log(void *); |
41 |
+ |
42 |
+-char *device, *logfile; |
43 |
+-int verbose, back; |
44 |
++extern char *device, *logfile; |
45 |
++extern int verbose, back; |
46 |
|
47 |
diff --git a/net-analyzer/siphon/siphon-666-r2.ebuild b/net-analyzer/siphon/siphon-666-r2.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..7921c66b9a1 |
50 |
--- /dev/null |
51 |
+++ b/net-analyzer/siphon/siphon-666-r2.ebuild |
52 |
@@ -0,0 +1,34 @@ |
53 |
+# Copyright 1999-2020 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=7 |
57 |
+inherit toolchain-funcs |
58 |
+ |
59 |
+MY_P=${PN}-v.${PV} |
60 |
+ |
61 |
+DESCRIPTION="A portable passive network mapping suite" |
62 |
+HOMEPAGE="http://siphon.datanerds.net/" |
63 |
+SRC_URI="http://siphon.datanerds.net/${MY_P}.tar.gz" |
64 |
+LICENSE="BSD" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~ppc ~x86" |
67 |
+ |
68 |
+DEPEND="net-libs/libpcap" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+S=${WORKDIR}/${MY_P} |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${P}-gentoo.patch |
73 |
+ "${FILESDIR}"/${P}-log.patch |
74 |
+ "${FILESDIR}"/${P}-fno-common.patch |
75 |
+) |
76 |
+ |
77 |
+src_compile() { |
78 |
+ emake CC="$(tc-getCC)" |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ dobin ${PN} |
83 |
+ insinto /etc |
84 |
+ doins osprints.conf |
85 |
+ dodoc README |
86 |
+} |