View | Details | Raw Unified | Return to bug 93206
Collapse All | Expand All

(-)p0f/Makefile (-20 / +3 lines)
Lines 6-24 Link Here
6
#
6
#
7
7
8
PORTNAME=	p0f
8
PORTNAME=	p0f
9
PORTVERSION=	2.0.3
9
PORTVERSION=	2.0.4
10
PORTREVISION=	1
11
CATEGORIES=	net-mgmt
10
CATEGORIES=	net-mgmt
12
MASTER_SITES=	http://lcamtuf.coredump.cx/p0f/
11
MASTER_SITES=	http://lcamtuf.coredump.cx/p0f/
13
EXTRACT_SUFX=	.tgz
12
EXTRACT_SUFX=	.tgz
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	babak@farrokhi.net
16
COMMENT=	Passive OS fingerprinting tool
15
COMMENT=	Passive OS fingerprinting tool
17
16
18
ALL_TARGET=	all p0fq tools
17
ALL_TARGET=	all p0fq tools
19
DOCFILES=	COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
18
DOCFILES=	COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
20
MAN1=		p0f.1
19
MAN1=		p0f.1
21
PLIST=		${WRKDIR}/pkg-plist
20
#PLIST=		${WRKDIR}/pkg-plist
22
WRKSRC=		${WRKDIR}/p0f
21
WRKSRC=		${WRKDIR}/p0f
23
22
24
post-patch:
23
post-patch:
Lines 43-64 Link Here
43
.for ii in ${DOCFILES}
42
.for ii in ${DOCFILES}
44
	${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
43
	${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
45
.endfor
44
.endfor
46
.endif
47
48
pre-install:
49
	@>${PLIST}
50
.for ii in p0f p0frep p0fq sendack sendack2 sendsyn
51
	${ECHO_CMD} bin/${ii} >> ${PLIST}
52
.endfor
53
.for ii in . a. r.
54
	${ECHO_CMD} etc/p0f/p0f${ii}fp	>> ${PLIST}
55
.endfor
56
	${ECHO_CMD} "@dirrm etc/p0f" >> ${PLIST}
57
.if !defined(NOPORTDOCS)
58
.for i in ${DOCFILES}
59
	${ECHO_CMD} share/doc/p0f/$i >> ${PLIST}
60
.endfor
61
	${ECHO_CMD} "@dirrm share/doc/p0f" >> ${PLIST}
62
.endif
45
.endif
63
46
64
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)p0f/distinfo (-4 / +3 lines)
Lines 1-4 Link Here
1
$FreeBSD: ports/net-mgmt/p0f/distinfo,v 1.9 2006/01/07 20:00:03 trevor Exp $
1
MD5 (p0f-2.0.4.tgz) = 7dc7a20c7678233381ed1dbc96d1f423
2
MD5 (p0f-2.0.3.tgz) = 583688a4c5718eec0bb34102b3ac457b
2
SHA256 (p0f-2.0.4.tgz) = fc6827f3792a325e79c300d9d45e526eb2da3a8c759cfe3695710b5016f3cfd3
3
SIZE (p0f-2.0.3.tgz) = 119407
3
SIZE (p0f-2.0.4.tgz) = 126886
4
SHA256 (p0f-2.0.3.tgz) = e2d58c71a5e014e8391789f48f787c493b1c81901001c55d5ce888aba5b84a41
(-)p0f/files/patch-FreeBSD (-11 / +5 lines)
Lines 1-16 Link Here
1
$FreeBSD: ports/net-mgmt/p0f/files/patch-FreeBSD,v 1.1 2003/09/08 16:33:33 trevor Exp $
1
--- mk/FreeBSD.orig	Sun Feb 12 01:48:12 2006
2
2
+++ mk/FreeBSD	Sun Feb 12 01:48:24 2006
3
--- mk/FreeBSD.orig	Sat Aug 30 15:41:17 2003
3
@@ -10,7 +10,6 @@
4
+++ mk/FreeBSD	Mon Sep  8 03:58:17 2003
4
 CC      = gcc
5
@@ -7,10 +7,9 @@
6
 # (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf@coredump.cx>
7
 #
8
 
9
-CC      = gcc
10
+CC?      = gcc
11
 LIBS	= -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
5
 LIBS	= -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
12
 STRIP   = strip
6
 STRIP   = strip
13
-CFLAGS  = -O3 -Wall -fomit-frame-pointer -funroll-loops
7
-CFLAGS  = -O3 -Wall -fomit-frame-pointer -funroll-loops
14
 FILE	= p0f
8
 FILE	= p0f
9
 TOOLS   = test/sendack test/sendack2 test/sendsyn
15
 
10
 
16
 all: $(FILE) strip	
(-)p0f/files/patch-mtu.h (-14 lines)
Lines 1-14 Link Here
1
$FreeBSD: ports/net-mgmt/p0f/files/patch-mtu.h,v 1.1 2004/04/03 16:07:44 pav Exp $
2
Add loopback support for FreeBSD.
3
author:  Radim Kolar
4
5
--- mtu.h.orig	Fri Oct 10 20:56:39 2003
6
+++ mtu.h	Tue Feb 17 21:10:49 2004
7
@@ -58,6 +58,7 @@
8
   {  4352, "FDDI" },
9
   {  4500, "token ring (2)" },
10
   {  9180, "FORE ATM" },
11
+  { 16384, "loopback" },
12
   { 16436, "sometimes loopback" },
13
   { 18000, "token ring x4" },
14
 };
(-)p0f/files/patch-p0f.c (-18 / +4 lines)
Lines 1-20 Link Here
1
$FreeBSD: ports/net-mgmt/p0f/files/patch-p0f.c,v 1.3 2004/04/03 16:07:44 pav Exp $
1
--- p0f.c.orig	Sun Jul 11 02:17:57 2004
2
Add loopback support for FreeBSD.
2
+++ p0f.c	Sun Feb 12 01:44:36 2006
3
author:  Radim Kolar
3
@@ -1238,11 +1238,15 @@
4
5
--- p0f.c.orig	Tue Feb 17 21:11:51 2004
6
+++ p0f.c	Tue Feb 17 21:10:48 2004
7
@@ -161,7 +161,8 @@
8
 
9
   switch(type) {
10
 
11
-    case DLT_NULL:
12
+    case DLT_NULL: header_len=4; break;
13
+
14
     case DLT_SLIP:
15
     case DLT_RAW:  break;
16
 
17
@@ -1199,11 +1200,15 @@
18
   /* Whoops, IP header ends past end_ptr */
4
   /* Whoops, IP header ends past end_ptr */
19
   if ((_u8*)(iph + 1) > end_ptr) return;
5
   if ((_u8*)(iph + 1) > end_ptr) return;
20
 
6
 
Lines 32-38 Link Here
32
   /* If the declared length is shorter than the snapshot (etherleak
18
   /* If the declared length is shorter than the snapshot (etherleak
33
      or such), truncate this bad boy. */
19
      or such), truncate this bad boy. */
34
 
20
 
35
@@ -1590,7 +1595,7 @@
21
@@ -1632,7 +1636,7 @@
36
     if (!use_iface) use_iface=pcap_lookupdev(errbuf);
22
     if (!use_iface) use_iface=pcap_lookupdev(errbuf);
37
 #endif /* ^WIN32 */
23
 #endif /* ^WIN32 */
38
 
24
 
(-)p0f/files/patch-test_p0fq.c (-12 lines)
Lines 1-12 Link Here
1
$FreeBSD: ports/net-mgmt/p0f/files/patch-test_p0fq.c,v 1.1 2003/12/18 04:13:29 trevor Exp $
2
3
--- test/p0fq.c.orig	Fri Oct 10 14:51:08 2003
4
+++ test/p0fq.c	Wed Dec 17 20:10:31 2003
5
@@ -14,6 +14,7 @@
6
 
7
   */
8
 
9
+#include <sys/types.h>
10
 #include <sys/socket.h>
11
 #include <stdio.h>
12
 #include <stdlib.h>
(-)p0f/pkg-plist (+18 lines)
Line 0 Link Here
1
bin/p0f
2
bin/p0frep
3
bin/p0fq
4
bin/sendack
5
bin/sendack2
6
bin/sendsyn
7
etc/p0f/p0f.fp
8
etc/p0f/p0fa.fp
9
etc/p0f/p0fr.fp
10
%%DOCSDIR%%/COPYING
11
%%DOCSDIR%%/CREDITS
12
%%DOCSDIR%%/ChangeLog
13
%%DOCSDIR%%/KNOWN_BUGS
14
%%DOCSDIR%%/README
15
%%DOCSDIR%%/TODO
16
%%DOCSDIR%%/win-memleak.txt
17
@dirrm etc/p0f
18
@dirrm %%DOCSDIR%%

Return to bug 93206