forked from ports/contrib
p0f: port taken from rehabdoll
This commit is contained in:
parent
68d0d887ed
commit
e73570f707
@ -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
|
||||
|
@ -1 +1 @@
|
||||
1ccbcd8d4c95ef6dae841120d23c56a5 p0f.tgz
|
||||
1ccbcd8d4c95ef6dae841120d23c56a5 p0f-2.0.8.tgz
|
||||
|
26
p0f/Pkgfile
26
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
|
||||
}
|
||||
|
11
p0f/p0f.include.patch
Normal file
11
p0f/p0f.include.patch
Normal file
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user