public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdiscover/, net-analyzer/netdiscover/files/
@ 2020-01-31 14:33 Jeroen Roovers
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers @ 2020-01-31 14:33 UTC (permalink / raw
  To: gentoo-commits

commit:     74f43f229df6c3a1004c83fda098007506a4a4f3
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 31 14:32:55 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Jan 31 14:33:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f43f22

net-analyzer/netdiscover: Fix CFLAGS=-fno-common

Package-Manager: Portage-2.3.86, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=706894
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 .../files/netdiscover-0.3_beta6-fno-common.patch   | 42 ++++++++++++++++++++++
 .../netdiscover/netdiscover-0.3_beta6-r4.ebuild    | 36 +++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-fno-common.patch b/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-fno-common.patch
new file mode 100644
index 00000000000..8355321085d
--- /dev/null
+++ b/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-fno-common.patch
@@ -0,0 +1,42 @@
+--- ./src/ifaces.c
++++ ./src/ifaces.c
+@@ -72,6 +72,7 @@
+ unsigned char smac[ETH_ALEN];
+ struct p_header *temp_header;
+ 
++char *ourmac, errbuf[PCAP_ERRBUF_SIZE];
+ 
+ /* Start Sniffing on given iface */
+ void *start_sniffer(void *args)
+--- ./src/ifaces.h
++++ ./src/ifaces.h
+@@ -46,7 +46,7 @@
+ 	
+ 	
+ 	// Shitty globals
+-	char *ourmac, errbuf[PCAP_ERRBUF_SIZE];
++	extern char *ourmac, errbuf[PCAP_ERRBUF_SIZE];
+ 	
+ 	// Sniffer Functions
+ 	void *start_sniffer(void *);
+--- a/src/screen.c
++++ b/src/screen.c
+@@ -48,6 +48,7 @@
+ struct arp_rep_c *arprep_count;
+ struct winsize win_sz;
+ pthread_mutex_t *listm;
++char *current_network;
+ 
+ int scroll;
+ int smode, oldmode;
+--- ./src/screen.h
++++ ./src/screen.h
+@@ -24,7 +24,7 @@
+ 
+ 
+ /* Ohh no, more globals */
+-char *current_network;
++extern char *current_network;
+ 
+  
+ /* Structs for counters */

diff --git a/net-analyzer/netdiscover/netdiscover-0.3_beta6-r4.ebuild b/net-analyzer/netdiscover/netdiscover-0.3_beta6-r4.ebuild
new file mode 100644
index 00000000000..264eea20d32
--- /dev/null
+++ b/net-analyzer/netdiscover/netdiscover-0.3_beta6-r4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="An active/passive address reconnaissance tool"
+HOMEPAGE="http://nixgeneration.com/~jaime/netdiscover/"
+LICENSE="GPL-2"
+SRC_URI="
+	http://nixgeneration.com/~jaime/${PN}/releases/${P/_/-}.tar.gz
+	https://dev.gentoo.org/~jer/${P/_/-}-oui-db-update-20091010.patch.bz2
+"
+
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+
+DEPEND="
+	net-libs/libnet:1.1
+	>=net-libs/libpcap-0.8.3-r1
+"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${P/_/-}
+DOCS=( AUTHORS ChangeLog README TODO )
+PATCHES=(
+	"${WORKDIR}"/${P/_/-}-oui-db-update-20091010.patch
+	"${FILESDIR}"/${P}-gentoo.patch
+	"${FILESDIR}"/${P}-misc.patch
+	"${FILESDIR}"/${P}-fno-common.patch
+)
+
+src_prepare() {
+	default
+
+	eautoreconf
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-31 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-31 14:33 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdiscover/, net-analyzer/netdiscover/files/ Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox