From: Jeroen Roovers Date: Sun, 9 Feb 2020 10:54:13 +0000 (+0100) Subject: net-analyzer/siphon: Fix CFLAGS=-fno-common X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=026668dd5d45a6234c97f03ff0fa6e09123516fa;p=gentoo.git net-analyzer/siphon: Fix CFLAGS=-fno-common Package-Manager: Portage-2.3.87, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=708800 Signed-off-by: Jeroen Roovers --- diff --git a/net-analyzer/siphon/files/siphon-666-fno-common.patch b/net-analyzer/siphon/files/siphon-666-fno-common.patch new file mode 100644 index 000000000000..c3b1addf1b04 --- /dev/null +++ b/net-analyzer/siphon/files/siphon-666-fno-common.patch @@ -0,0 +1,22 @@ +--- a/main.c ++++ b/main.c +@@ -12,6 +12,9 @@ + + #include + ++char *device, *logfile; ++int verbose, back; ++ + void usage (char *); + void title(void); + +--- a/siphon.h ++++ b/siphon.h +@@ -51,5 +51,5 @@ + void *parse (void *); + void *siphon_log(void *); + +-char *device, *logfile; +-int verbose, back; ++extern char *device, *logfile; ++extern int verbose, back; diff --git a/net-analyzer/siphon/siphon-666-r2.ebuild b/net-analyzer/siphon/siphon-666-r2.ebuild new file mode 100644 index 000000000000..7921c66b9a14 --- /dev/null +++ b/net-analyzer/siphon/siphon-666-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +MY_P=${PN}-v.${PV} + +DESCRIPTION="A portable passive network mapping suite" +HOMEPAGE="http://siphon.datanerds.net/" +SRC_URI="http://siphon.datanerds.net/${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${MY_P} +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-log.patch + "${FILESDIR}"/${P}-fno-common.patch +) + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin ${PN} + insinto /etc + doins osprints.conf + dodoc README +}