1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

net-mgmt/p0f2: Fix build with -fno-common

PR:		258370
This commit is contained in:
Robert Clausecker 2021-09-10 18:35:22 -07:00 committed by Kevin Bowling
parent 75ec295499
commit 19d698844c
3 changed files with 20 additions and 7 deletions

View File

@ -1,24 +1,23 @@
PORTNAME= p0f2
PORTVERSION= 2.0.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt security
MASTER_SITES= http://lcamtuf.coredump.cx/p0f3/releases/old/2.x/
DISTNAME= p0f-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= fuz@fuz.su
COMMENT= Passive OS fingerprinting tool
BROKEN_FreeBSD_13= ld: error: duplicate symbol: file_cksum
BROKEN_FreeBSD_14= ld: error: duplicate symbol: file_cksum
CONFLICTS= p0f-3.*
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/doc/COPYING
USES= gmake tar:tgz
USE_RC_SUBR= p0f2
ALL_TARGET= all p0fq tools
PORTDOCS= COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
CONFLICTS= p0f-3.*
WRKSRC= ${WRKDIR}/p0f
PORTDOCS= COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
OPTIONS_DEFINE= DOCS
post-patch:

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1631114743
SHA256 (p0f-2.0.8.tgz) = 6c4d8745f04e59f2ba68d56fd1554551592f08a0497c9fc21b84498f47d1aee0
SIZE (p0f-2.0.8.tgz) = 136877

View File

@ -0,0 +1,13 @@
--- p0f-query.c.orig 2021-09-08 15:25:07 UTC
+++ p0f-query.c
@@ -46,8 +46,8 @@ static _u16 flags;
static _s16 score = NO_SCORE;
/* Imports for statistics */
-_u32 packet_count, matched_packets, st_time, file_cksum;
-_u8 operating_mode;
+extern _u32 packet_count, matched_packets, st_time, file_cksum;
+extern _u8 operating_mode;
#define SAD_HASH(a) ((((a) << 16) ^ ((a) << 8) ^ (a)))