Message info
 
To:FreeBSD-gnats-submit@FreeBSD.org From:Kurt Jaeger Subject:ports/166224: [patch update] net-mgmt/p0f 2.0.8 -> 3.03b Date:Sun, 18 Mar 2012 16:51:15 +0100
 


>Number: 166224
>Category: ports
>Synopsis: [patch update] net-mgmt/p0f 2.0.8 -> 3.03b
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 18 16:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kurt Jaeger
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
-
>Environment:
System: FreeBSD zfs.opsec.eu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
New version of p0f, update the port
>How-To-Repeat:
-
>Fix:

diff --unidirectional-new-file -r -u net-mgmt/p0f/Makefile /usr/home/pi/myp/net-mgmt/p0f/Makefile
--- net-mgmt/p0f/Makefile 2012-01-15 21:55:25.000000000 +0100
+++ /usr/home/pi/myp/net-mgmt/p0f/Makefile 2012-03-17 19:49:48.750707094 +0100
@@ -6,42 +6,32 @@
#

PORTNAME= p0f
-PORTVERSION= 2.0.8
+PORTVERSION= 3.03b
PORTREVISION= 1
CATEGORIES= net-mgmt security
-MASTER_SITES= http://lcamtuf.coredump.cx/p0f/ \
- http://farrokhi.net/distfiles/
+MASTER_SITES= http://lcamtuf.coredump.cx/p0f3/releases/
EXTRACT_SUFX= .tgz

-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= fbsd-ports@FreeBSD.org
COMMENT= Passive OS fingerprinting tool

USE_GMAKE= yes
-ALL_TARGET= all p0fq tools
-PORTDOCS= COPYING CREDITS ChangeLog KNOWN_BUGS README TODO win-memleak.txt
-MAN1= p0f.1
-WRKSRC= ${WRKDIR}/${PORTNAME}
+PORTDOCS= COPYING ChangeLog README TODO existential-notes.txt extra-sigs.txt

post-patch:
-.for f in config.h doc/README
- @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/${f}
-.endfor
+ @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/README
+ @${REINPLACE_CMD} -e 's|p0f.fp|${PREFIX}/etc/p0f.fp|g' ${WRKSRC}/config.h

do-install:
-.for ii in p0f test/p0fq test/sendack test/sendack2 test/sendsyn
+.for ii in p0f tools/p0f-client tools/p0f-sendsyn tools/p0f-sendsyn6
${INSTALL_PROGRAM} ${WRKSRC}/${ii} ${PREFIX}/bin
.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/p0frep ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/etc/p0f
-.for ii in . a. o. r.
- ${INSTALL_DATA} ${WRKSRC}/p0f${ii}fp ${PREFIX}/etc/p0f
-.endfor
- ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
+ ${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc/

.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for ii in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${ii} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${ii} ${DOCSDIR}
.endfor
.endif

diff --unidirectional-new-file -r -u net-mgmt/p0f/distinfo /usr/home/pi/myp/net-mgmt/p0f/distinfo
--- net-mgmt/p0f/distinfo 2011-03-20 13:54:01.000000000 +0100
+++ /usr/home/pi/myp/net-mgmt/p0f/distinfo 2012-03-15 15:42:48.257071581 +0100
@@ -1,2 +1,2 @@
-SHA256 (p0f-2.0.8.tgz) = 6c4d8745f04e59f2ba68d56fd1554551592f08a0497c9fc21b84498f47d1aee0
-SIZE (p0f-2.0.8.tgz) = 136877
+SHA256 (p0f-3.03b.tgz) = b0d4f8a043d49c5f219be268c6cb10fe1a4eebc42a60843124e1e11bae16d8eb
+SIZE (p0f-3.03b.tgz) = 91707
diff --unidirectional-new-file -r -u net-mgmt/p0f/files/patch-build.sh /usr/home/pi/myp/net-mgmt/p0f/files/patch-build.sh
--- net-mgmt/p0f/files/patch-build.sh 1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/pi/myp/net-mgmt/p0f/files/patch-build.sh 2012-03-17 19:35:52.498273734 +0100
@@ -0,0 +1,18 @@
+--- build.sh.orig 2012-01-19 00:50:23.000000000 +0100
++++ build.sh 2012-03-17 19:35:45.783273814 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/local/bin/bash
+ #
+ # p0f - build script
+ # ------------------
+@@ -349,6 +349,9 @@
+
+ fi
+
++echo "[*] Compiling tools: "
++cd tools && make
++
+ echo
+ echo "Well, that's it. Be sure to review README. If you run into any problems, you"
+ echo "can reach the author at <lcamtuf@coredump.cx>."
Only in net-mgmt/p0f/files: patch-mk_FreeBSD
Only in net-mgmt/p0f/files: patch-p0f.c
diff --unidirectional-new-file -r -u net-mgmt/p0f/files/patch-process.c /usr/home/pi/myp/net-mgmt/p0f/files/patch-process.c
--- net-mgmt/p0f/files/patch-process.c 1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/pi/myp/net-mgmt/p0f/files/patch-process.c 2012-03-18 16:42:19.606385019 +0100
@@ -0,0 +1,11 @@
+--- process.c-orig 2012-03-18 16:40:22.290383019 +0100
++++ process.c 2012-03-18 16:40:36.013384739 +0100
+@@ -106,7 +106,7 @@
+ case DLT_LINUX_SLL: link_off = 16; return;
+ #endif /* DLT_LINUX_SLL */
+
+- case DLT_PFLOG: link_off = 28; return;
++ case DLT_PFLOG: link_off = PFLOG_HDRLEN; return;
+
+ case DLT_IEEE802_11: link_off = 32; return;
+ }
diff --unidirectional-new-file -r -u net-mgmt/p0f/pkg-plist /usr/home/pi/myp/net-mgmt/p0f/pkg-plist
--- net-mgmt/p0f/pkg-plist 2006-03-23 12:14:13.000000000 +0100
+++ /usr/home/pi/myp/net-mgmt/p0f/pkg-plist 2012-03-18 16:46:28.511153859 +0100
@@ -1,11 +1,12 @@
bin/p0f
-bin/p0frep
-bin/p0fq
-bin/sendack
-bin/sendack2
-bin/sendsyn
-etc/p0f/p0f.fp
-etc/p0f/p0fa.fp
-etc/p0f/p0fo.fp
-etc/p0f/p0fr.fp
-@dirrm etc/p0f
+bin/p0f-client
+bin/p0f-sendsyn
+bin/p0f-sendsyn6
+etc/p0f.fp
+share/doc/p0f/COPYING
+share/doc/p0f/ChangeLog
+share/doc/p0f/README
+share/doc/p0f/TODO
+share/doc/p0f/existential-notes.txt
+share/doc/p0f/extra-sigs.txt
+@dirrm share/doc/p0f
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"