summaryrefslogtreecommitdiff
blob: a6a53bb1c5745410e27b16dbd5bd14d23b7c0b37 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-2.0.2.ebuild,v 1.3 2003/12/10 18:41:54 pappy Exp $

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"
IUSE=""

DEPEND="net-libs/libpcap"

src_compile () {
	cd ${WORKDIR}/p0f
	sed -i "s: /usr/sbin/: ../../image/usr/sbin/:g" ${WORKDIR}/p0f/mk/Linux
	sed -i "s: /etc/p0f: ../../image/etc/p0f:g" ${WORKDIR}/p0f/mk/Linux
	sed -i "s: /usr/man/man1/: ../../image/usr/man/man1/:g" ${WORKDIR}/p0f/mk/Linux
	make || die
}

src_install () {
	cd ${WORKDIR}/p0f
	dodir /usr/sbin; dodir /etc/p0f; dodir /usr/man/man1
	mkdir -p ../../image/usr/sbin ../../image/etc/p0f ../../image/usr/man/man1
	make install || die
}