Bug 166224 - [patch update] net-mgmt/p0f 2.0.8 -> 3.03b
Summary: [patch update] net-mgmt/p0f 2.0.8 -> 3.03b
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-18 16:00 UTC by Kurt Jaeger
Modified: 2012-03-23 18:40 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (4.39 KB, patch)
2012-03-18 16:00 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger 2012-03-18 16:00:25 UTC
	New version of p0f, update the port

How-To-Repeat: 	-
Comment 1 Kurt Jaeger 2012-03-18 16:59:24 UTC
Hi!

There are two little issues:

One:

pkg_delete returns those errors and I do not understand, why. Any ideas,
what's wrong with pkg-plist ?

------------
pkg_delete: file '/usr/local/share/doc/p0f/COPYING' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/ChangeLog' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/README' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/TODO' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/existential-notes.txt' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f/extra-sigs.txt' doesn't exist
pkg_delete: file '/usr/local/share/doc/p0f' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/doc/p0f'
pkg_delete: couldn't entirely delete package `p0f-3.03b_1'
(perhaps the packing list is incorrectly specified?)

------------

Two:
This is the fixed patch-process.c:

------------
--- process.c.orig	2012-01-17 04:43:57.000000000 +0100
+++ process.c	2012-03-18 17:56:45.300811017 +0100
@@ -22,6 +22,9 @@
 #include <arpa/inet.h>
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <net/if.h>
+#include <net/pfvar.h>
+#include <net/if_pflog.h>
 
 #include "types.h"
 #include "config.h"
@@ -106,7 +109,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 = sizeof(struct pfloghdr); return;
 
     case DLT_IEEE802_11: link_off = 32; return;
   }
------------

-- 
pi@opsec.eu            +49 171 3101372                         8 years to go !
Comment 2 Wesley Shields freebsd_committer freebsd_triage 2012-03-18 19:43:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 3 Kurt Jaeger 2012-03-18 20:16:16 UTC
Hi!

Below is the fixed pkg-plist.

----------
bin/p0f
bin/p0f-client
bin/p0f-sendsyn
bin/p0f-sendsyn6
etc/p0f.fp
----------

-- 
pi@opsec.eu            +49 171 3101372                         8 years to go !
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-03-19 01:20:07 UTC
wxs         2012-03-19 01:19:52 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/p0f         Makefile distinfo 
  Added files:
    net-mgmt/p0f/files   patch-build.sh patch-process.c 
  Removed files:
    net-mgmt/p0f         pkg-plist 
    net-mgmt/p0f/files   patch-mk_FreeBSD patch-p0f.c 
  Log:
  Update to 3.03b.
  Switch to using PLIST_FILES and PORTDOCS.
  No longer require gmake.
  Don't require bash (build.sh).
  
  PR:             ports/166224 (based upon)
  Submitted by:   Kurt Jaeger <fbsd-ports@opsec.eu>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.27      +11 -20    ports/net-mgmt/p0f/Makefile
  1.16      +2 -2      ports/net-mgmt/p0f/distinfo
  1.1       +91 -0     ports/net-mgmt/p0f/files/patch-build.sh (new)
  1.2       +0 -19     ports/net-mgmt/p0f/files/patch-mk_FreeBSD (dead)
  1.6       +0 -42     ports/net-mgmt/p0f/files/patch-p0f.c (dead)
  1.1       +21 -0     ports/net-mgmt/p0f/files/patch-process.c (new)
  1.6       +0 -11     ports/net-mgmt/p0f/pkg-plist (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Wesley Shields freebsd_committer freebsd_triage 2012-03-19 01:20:10 UTC
State Changed
From-To: open->closed

Committed with changes. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-03-23 18:36:30 UTC
wxs         2012-03-23 18:36:21 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/p0f         Makefile 
  Log:
  Pass maintainer to submitter of previous PR. The email address in the PR
  was incorrect, so I took it over until I could get confirmation on what
  address to use.
  
  PR:             ports/166224
  Submitted by:   Kurt Jaeger <fbsd-ports@opsec.eu>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.28      +1 -1      ports/net-mgmt/p0f/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"