summaryrefslogtreecommitdiff
blob: f6b68b4819049bb39aadc5b6c8f4b37ecd6ba253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-2.0.3.ebuild,v 1.9 2004/10/15 10:01:30 eldad Exp $

inherit eutils

DESCRIPTION="p0f performs passive OS detection based on SYN packets."
# the p0f.tgz always resembles the latest version, trashing the digest md5sum then, discovered and fixed by gustavoz
SRC_URI="http://lcamtuf.coredump.cx/p0f/${P}.tgz"
HOMEPAGE="http://lcamtuf.coredump.cx/p0f.shtml"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86 ~amd64 sparc macos ppc-macos"
IUSE=""
S=${WORKDIR}/${PN}


DEPEND="net-libs/libpcap"

src_compile() {
	sed -e 's;#include <net/bpf.h>;;' -i p0f.c

	make || die
}

src_install () {
	dosbin p0f p0frep

	insinto /etc/p0f
	doins p0f.fp p0fa.fp p0fr.fp

	doman p0f.1

	dodoc README
}