Subject: security/p0f and linux
To: None <tech-pkg@NetBSD.org>
From: Sebastian Prause <sebastian-p@gmx.net>
List: tech-pkg
Date: 10/07/2003 16:01:01
hi,
the p0f package doesn't compile on my linux box, so i modified it
to do so. here are the patches/modified files:
this is the new patches/patch-aa file. note that this is the whole
file, not a patch for it:
$NetBSD$
--- mk/Linux 2003-09-19 20:04:12.000000000 +0200
+++ mk/Linux.foo 2003-10-07 15:35:08.000000000 +0200
@@ -7,10 +7,9 @@
# (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf@coredump.cx>
#
-CC = gcc
-LIBS = -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
+LIBS = -lpcap
STRIP = strip
-CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
+CFLAGS ?= -O3 -Wall -fomit-frame-pointer -funroll-loops
FILE = p0f
all: $(FILE) strip
this is the new distinfo:
$NetBSD$
SHA1 (p0f-2.0.2/p0f-2.0.2.tgz) = 3d863d7a669a3041af46ac4a9a84ec0ca6a30f1d
Size (p0f-2.0.2/p0f-2.0.2.tgz) = 74524 bytes
SHA1 (patch-aa) = 6c40874a231d62bc78a3ac3b9462a890f5e461ee
SHA1 (patch-ab) = 6bf3c0997a303ec8de7f25a483c830d368d5c1a2
SHA1 (patch-ac) = 4e7e07910c848a8e4505a202e7fee51e46e06078
SHA1 (patch-ad) = 692d3f3f2c8bd9071764c0c973cdd91d87bf5f1f
additionaly i changed the Makefile to fetch a versioned tarball and added
a new mirror to the MASTER_SITES:
--- Makefile Tue Oct 7 15:48:15 2003
+++ Makefile.new Tue Oct 7 15:42:24 2003
@@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.9 2003/10/05 18:13:00 recht Exp $
#
-DISTNAME= p0f
-PKGNAME= p0f-2.0.2
+DISTNAME= p0f-2.0.2
+WRKSRC= ${WRKDIR}/p0f
CATEGORIES= security net
-MASTER_SITES= http://lcamtuf.coredump.cx/
+MASTER_SITES= http://lcamtuf.coredump.cx/p0f/ \
+ http://www.mirrors.wiretapped.net/security/network-mapping/p0f/
EXTRACT_SUFX= .tgz
MAINTAINER= dawszy@arhea.net
i tested these modifications on linux and netbsd 1.6.1
cheers,
sp