pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/p0f - Update to 2.0.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1eefb735be8d
branches:  trunk
changeset: 479420:1eefb735be8d
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sat Aug 14 10:09:15 2004 +0000

description:
- Update to 2.0.4
- Replace SED with SUBST.*
- Improve DESCR
- ok'ed snj@/wiz@

>From the Changelog:

Verison 2.0.4:
--------------
More signatures.
Improved documentation, mentions of p0f_db, etc.
[BUG] Fixed a minor problem with installation on systems w/o /usr/man/.
[BUG] Fixed a DLT_NULL problem, added a new loopback signature.
Multiple timestamp options, timestamps now read from pcap dumps.
Sync with new Windows port code.
[BUG] Fixed one-line reporting for masquerade detection.

diffstat:

 security/p0f/DESCR            |  18 ++++++++++++++----
 security/p0f/Makefile         |  24 ++++++++++--------------
 security/p0f/distinfo         |  12 +++++-------
 security/p0f/patches/patch-aa |   4 ++--
 security/p0f/patches/patch-ab |  13 -------------
 security/p0f/patches/patch-ac |  26 --------------------------
 security/p0f/patches/patch-ad |   4 ++--
 7 files changed, 33 insertions(+), 68 deletions(-)

diffs (161 lines):

diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/DESCR
--- a/security/p0f/DESCR        Sat Aug 14 09:47:06 2004 +0000
+++ b/security/p0f/DESCR        Sat Aug 14 10:09:15 2004 +0000
@@ -1,4 +1,14 @@
-Passive OS fingerprinting technique based on information coming
-from remote host when it establishes connection to our system. Captured
-packets contains enough information to determine OS - and, unlike
-active scanners (nmap, queSO) - without sending anything to this host.
+P0f v2 is a versatile passive OS fingerprinting tool. P0f can identify the 
+operating system on: 
+
+- machines that connect to your box (SYN mode),
+- machines you connect to (SYN+ACK mode),
+- machine you cannot connect to (RST+ mode),
+- machines whose communications you can observe. 
+
+P0f can also do many other tricks, and can detect or measure the following: 
+
+- firewall presence or masquerading (useful for policy enforcement),
+- presence of a load balancer setup,
+- the distance to the remote system and its uptime,
+- other guy's network hookup (DSL, OC3, avian carriers) and his ISP. 
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/Makefile
--- a/security/p0f/Makefile     Sat Aug 14 09:47:06 2004 +0000
+++ b/security/p0f/Makefile     Sat Aug 14 10:09:15 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2004/04/25 03:36:51 snj Exp $
+# $NetBSD: Makefile,v 1.13 2004/08/14 10:09:15 adrianp Exp $
 #
 
-DISTNAME=      p0f-2.0.3
+DISTNAME=      p0f-2.0.4
 CATEGORIES=    security net
 MASTER_SITES=  http://lcamtuf.coredump.cx/p0f/
 EXTRACT_SUFX=  .tgz
@@ -14,23 +14,19 @@
 USE_BUILDLINK3=        yes
 USE_PKGINSTALL=        yes
 
-CONF_FILES=    ${PREFIX}/share/examples/p0f/p0f.fp ${PKG_SYSCONFDIR}/p0f.fp
-
 DIST_SUBDIR=   ${PKGNAME}
 
 PKG_SYSCONFSUBDIR=     p0f
 
-CONF_FILES=    ${PREFIX}/share/examples/p0f/p0f.fp ${PKG_SYSCONFDIR}/p0f.fp
-CONF_FILES+=   ${PREFIX}/share/examples/p0f/p0fa.fp ${PKG_SYSCONFDIR}/p0fa.fp
-CONF_FILES+=   ${PREFIX}/share/examples/p0f/p0fr.fp ${PKG_SYSCONFDIR}/p0fr.fp
+CONF_FILES=    ${PREFIX}/share/examples/p0f/p0f.fp ${PKG_SYSCONFDIR}/p0f.fp
+CONF_FILES+=   ${PREFIX}/share/examples/p0f/p0fa.fp ${PKG_SYSCONFDIR}/p0fa.fp
+CONF_FILES+=   ${PREFIX}/share/examples/p0f/p0fr.fp ${PKG_SYSCONFDIR}/p0fr.fp
 
-pre-build:
-       @${SED} -e 's#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g' \
-               < ${WRKSRC}/config.h > ${WRKSRC}/config.h.new
-       @${SED} -e 's#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g' \
-               < ${WRKSRC}/p0f.1 > ${WRKSRC}/p0f.1.new
-       ${CP} ${WRKSRC}/config.h.new ${WRKSRC}/config.h
-       ${CP} ${WRKSRC}/p0f.1.new ${WRKSRC}/p0f.1
+SUBST_CLASSES=         paths
+SUBST_STAGE.paths=     pre-build
+SUBST_FILES.paths=     config.h p0f.1
+SUBST_SED.paths=       -e "s|/etc/p0f|${PKG_SYSCONFDIR}|g"
+SUBST_MESSAGE.paths=   "Fixing paths."
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/distinfo
--- a/security/p0f/distinfo     Sat Aug 14 09:47:06 2004 +0000
+++ b/security/p0f/distinfo     Sat Aug 14 10:09:15 2004 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.11 2004/08/06 16:51:39 sketch Exp $
+$NetBSD: distinfo,v 1.12 2004/08/14 10:09:15 adrianp Exp $
 
-SHA1 (p0f-2.0.3/p0f-2.0.3.tgz) = a27fc55d81289ea990af765c27e7d5b7347e6f52
-Size (p0f-2.0.3/p0f-2.0.3.tgz) = 119407 bytes
-SHA1 (patch-aa) = f05549d73409fb392582be47d15a75b00b321b44
-SHA1 (patch-ab) = 6bf3c0997a303ec8de7f25a483c830d368d5c1a2
-SHA1 (patch-ac) = 1b7e8ed5830f1e9fe53004e4347dc184037327b2
-SHA1 (patch-ad) = 353a1b725601f8a0a45582be9ab4b1978736f765
+SHA1 (p0f-2.0.4/p0f-2.0.4.tgz) = 0a9917bdf5fb8e934cc9b3104e61339b6c047a77
+Size (p0f-2.0.4/p0f-2.0.4.tgz) = 126886 bytes
+SHA1 (patch-aa) = 849aa2aaddb33ab522c9c02a6a4965684a58f03e
+SHA1 (patch-ad) = 8263ac810b25c14a41d57cd6227bf78af1604800
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/patches/patch-aa
--- a/security/p0f/patches/patch-aa     Sat Aug 14 09:47:06 2004 +0000
+++ b/security/p0f/patches/patch-aa     Sat Aug 14 10:09:15 2004 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-aa,v 1.6 2003/11/03 11:45:28 recht Exp $
+$NetBSD: patch-aa,v 1.7 2004/08/14 10:09:15 adrianp Exp $
 
 --- mk/NetBSD.orig     2003-09-28 23:40:07.000000000 +0200
 +++ mk/NetBSD  2003-11-03 12:27:53.000000000 +0100
 @@ -7,10 +7,8 @@
- # (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf%coredump.cx@localhost>
+ # (C) Copyright 2000-2004 by Michal Zalewski <lcamtuf%coredump.cx@localhost>
  #
  
 -CC      = gcc
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/patches/patch-ab
--- a/security/p0f/patches/patch-ab     Sat Aug 14 09:47:06 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2003/10/01 23:13:13 recht Exp $
-
---- config.h.orig      2003-10-02 01:02:16.000000000 +0200
-+++ config.h   2003-10-02 01:03:03.000000000 +0200
-@@ -19,7 +19,7 @@
- #ifdef WIN32
- #  define CONFIG_DIR  "."
- #else
--#  define CONFIG_DIR  "/etc/p0f"
-+#  define CONFIG_DIR  "@PKG_SYSCONFDIR@"
- #endif /* WIN32 */
- 
- #define SYN_DB                "p0f.fp"
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/patches/patch-ac
--- a/security/p0f/patches/patch-ac     Sat Aug 14 09:47:06 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2003/11/03 11:45:28 recht Exp $
-
---- p0f.1.orig 2003-10-10 23:39:00.000000000 +0200
-+++ p0f.1      2003-11-03 12:28:01.000000000 +0100
-@@ -32,9 +32,9 @@
- .TP
- \fB\-f\fR file
- Read fingerprints from a specified file. By default, p0f reads signatures
--from ./p0f.fp or /etc/p0f/p0f.fp for SYN (incoming connection) mode,
--./p0fa.fp and /etc/p0f/p0fa.fp for SYN+ACK (outgoing connection) mode,
--and ./p0fr.fp and /etc/p0f/p0fr.fp for RST+ mode.
-+from ./p0f.fp or @PKG_SYSCONFDIR@/p0f.fp for SYN (incoming connection) mode,
-+./p0fa.fp and @PKG_SYSCONFDIR@/p0fa.fp for SYN+ACK (outgoing connection) mode,
-+and ./p0fr.fp and @PKG_SYSCONFDIR@/p0fr.fp for RST+ mode.
- Specifying multiple -f values will NOT combine several signature files
- together.
- .TP
-@@ -199,7 +199,7 @@
- You need to consult the documentation for an up-to-date list of issues.
- .SH FILES
- .TP
--.BI /etc/p0f/p0f.fp\ /etc/p0f/p0fa.fp\ /etc/p0f/p0fr.fp
-+.BI @PKG_SYSCONFDIR@/p0f.fp\ @PKG_SYSCONFDIR@/p0fa.fp\ @PKG_SYSCONFDIR@/p0fr.fp
- default fingerprint database files
- .SH AUTHOR
- .B p0f
diff -r a48d26e5ee2e -r 1eefb735be8d security/p0f/patches/patch-ad
--- a/security/p0f/patches/patch-ad     Sat Aug 14 09:47:06 2004 +0000
+++ b/security/p0f/patches/patch-ad     Sat Aug 14 10:09:15 2004 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-ad,v 1.3 2004/08/06 16:51:39 sketch Exp $
+$NetBSD: patch-ad,v 1.4 2004/08/14 10:09:15 adrianp Exp $
 
 --- mk/SunOS.orig      2003-10-01 23:20:31.000000000 +0200
 +++ mk/SunOS   2003-11-03 12:35:15.000000000 +0100
 @@ -5,11 +5,9 @@
- # (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf%coredump.cx@localhost>
+ # (C) Copyright 2000-2004 by Michal Zalewski <lcamtuf%coredump.cx@localhost>
  #
  
 -CC      = gcc



Home | Main Index | Thread Index | Old Index