summaryrefslogtreecommitdiff
path: root/p0f
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2009-08-28 20:27:58 +0200
committerThomas Penteker <tek@serverop.de>2009-08-28 20:27:58 +0200
commite73570f7075fb3d33a2962ec262947f55ba0d113 (patch)
tree3170c01e638f35e5ce1129ae317ad792d6d612a3 /p0f
parent68d0d887ed6cc7c3f87723bc03761d1f450431e1 (diff)
downloadcontrib-e73570f7075fb3d33a2962ec262947f55ba0d113.tar.gz
contrib-e73570f7075fb3d33a2962ec262947f55ba0d113.tar.xz
p0f: port taken from rehabdoll
Diffstat (limited to 'p0f')
-rw-r--r--p0f/.footprint3
-rw-r--r--p0f/.md5sum2
-rw-r--r--p0f/Pkgfile26
-rw-r--r--p0f/p0f.include.patch11
4 files changed, 26 insertions, 16 deletions
diff --git a/p0f/.footprint b/p0f/.footprint
index d9a549455..015f08d07 100644
--- a/p0f/.footprint
+++ b/p0f/.footprint
@@ -2,7 +2,6 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/p0f/
-rw-r--r-- root/root etc/p0f/p0f.fp
-rw-r--r-- root/root etc/p0f/p0fa.fp
--rw-r--r-- root/root etc/p0f/p0fo.fp
-rw-r--r-- root/root etc/p0f/p0fr.fp
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
@@ -12,9 +11,7 @@ drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/p0f
-rwxr-xr-x root/root usr/sbin/p0fping
-rwxr-xr-x root/root usr/sbin/p0fq
--rwxr-xr-x root/root usr/sbin/p0fq.pl
-rwxr-xr-x root/root usr/sbin/p0frep
-rwxr-xr-x root/root usr/sbin/sendack
-rwxr-xr-x root/root usr/sbin/sendack2
-rwxr-xr-x root/root usr/sbin/sendsyn
--rwxr-xr-x root/root usr/sbin/tryid
diff --git a/p0f/.md5sum b/p0f/.md5sum
index 9c847a120..3d7e2090d 100644
--- a/p0f/.md5sum
+++ b/p0f/.md5sum
@@ -1 +1 @@
-1ccbcd8d4c95ef6dae841120d23c56a5 p0f.tgz
+1ccbcd8d4c95ef6dae841120d23c56a5 p0f-2.0.8.tgz
diff --git a/p0f/Pkgfile b/p0f/Pkgfile
index d967f33aa..8cd5f0efe 100644
--- a/p0f/Pkgfile
+++ b/p0f/Pkgfile
@@ -1,20 +1,22 @@
-# Description: passive OS fingerprinting tool
-# URL: http://lcamtuf.coredump.cx/p0f.shtml
+# Description: Passive OS fingerprinting tool
+# URL: http://lcamtuf.coredump.cx/p0f.shtml
# Maintainer: Thomas Penteker, tek at serverop dot de
-# Depends on: libpcap
+# Packager: Mattias Hedenskog mattias at hedenskog dot se
+# Depends on: libpcap
name=p0f
version=2.0.8
release=1
-source=(http://lcamtuf.coredump.cx/p0f.tgz)
+source=(http://lcamtuf.coredump.cx/$name/$name-$version.tgz)
+
build() {
- cd $name
- sed -i -e "s|/etc|$PKG/etc|g" -e "s|/usr|$PKG/usr|g" mk/Linux
- install -d $PKG/etc
- install -d $PKG/usr/sbin
- install -d $PKG/usr/man/man1
- make install
+ cd $name
+ make
+ install -d $PKG/usr/sbin $PKG/usr/man/man1
+ install -d $PKG/etc/p0f
+ install -m 755 {p0f,p0frep} $PKG/usr/sbin
+ install -m 644 p0f.1 $PKG/usr/man/man1
+ install -m 644 {p0f.fp,p0fa.fp,p0fr.fp} $PKG/etc/p0f
cd test
- for i in *.c;do gcc "$i" -o $(basename "$i" .c);done
- find . -type f ! -name \*.c -exec install '{}' $PKG/usr/sbin \;
+ for i in *.c;do gcc "$i" -o $(basename "$i" .c);install $(basename "$i" .c) $PKG/usr/sbin;done
}
diff --git a/p0f/p0f.include.patch b/p0f/p0f.include.patch
new file mode 100644
index 000000000..3322acb96
--- /dev/null
+++ b/p0f/p0f.include.patch
@@ -0,0 +1,11 @@
+--- p0f.c 2003-10-13 20:57:21.000000000 +0200
++++ p0f.fixed.c 2004-06-11 22:54:09.656935272 +0200
+@@ -35,7 +35,7 @@
+ #include <pcap.h>
+ #include <signal.h>
+
+-#include <net/bpf.h>
++#include <pcap-bpf.h>
+ #include <time.h>
+ #include <ctype.h>
+

Generated by cgit