# Description: Passive OS fingerprinting tool
# URL: http://lcamtuf.coredump.cx/p0f.shtml
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager: Mattias Hedenskog mattias at hedenskog dot se
# Depends on: libpcap

name=p0f
version=2.0.8
release=1
source=(http://lcamtuf.coredump.cx/$name/$name-$version.tgz)

build() {
    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);install $(basename "$i" .c) $PKG/usr/sbin;done
}
