contrib/p0f/Pkgfile

23 lines
699 B
Plaintext
Raw Normal View History

2009-08-28 20:27:58 +02:00
# Description: Passive OS fingerprinting tool
# URL: http://lcamtuf.coredump.cx/p0f.shtml
2009-08-26 23:05:53 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
2009-08-28 20:27:58 +02:00
# Packager: Mattias Hedenskog mattias at hedenskog dot se
# Depends on: libpcap
2009-08-26 23:05:53 +02:00
name=p0f
version=2.0.8
release=1
2010-03-21 01:36:02 +01:00
source=(http://ftp.freebsd.org/pub/FreeBSD/distfiles/$name-$version.tgz)
2009-08-28 20:27:58 +02:00
2009-08-26 23:05:53 +02:00
build() {
2009-08-28 20:27:58 +02:00
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
2009-08-26 23:05:53 +02:00
cd test
2009-08-28 20:27:58 +02:00
for i in *.c;do gcc "$i" -o $(basename "$i" .c);install $(basename "$i" .c) $PKG/usr/sbin;done
2009-08-26 23:05:53 +02:00
}