# Copyright 1999-2006 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.13 2006/02/15 23:43:40 jokey Exp $ inherit eutils DESCRIPTION="p0f performs passive OS detection based on SYN packets." HOMEPAGE="http://lcamtuf.coredump.cx/p0f.shtml" SRC_URI="http://lcamtuf.coredump.cx/p0f/${P}.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="x86 ~amd64 sparc ppc-macos" IUSE="" DEPEND="net-libs/libpcap" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} && cd ${S} sed -i 's;#include <net/bpf.h>;;' p0f.c || die "sed p0f.c failed" sed -i -e 's|^\(all: $(FILE)\).*$|\1|' \ -e "s|^\(CFLAGS.*=\).*$|\1${CFLAGS}|" mk/* || die "sed makefiles failed" } src_install () { dosbin p0f p0frep || die insinto /etc/p0f doins p0f.fp p0fa.fp p0fr.fp doman p0f.1 || die cd doc dodoc ChangeLog CREDITS KNOWN_BUGS README TODO }