/[gentoo-x86]/net-analyzer/p0f/p0f-3.05_beta.ebuild
Gentoo

Contents of /net-analyzer/p0f/p0f-3.05_beta.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 14 11:38:17 2012 UTC (2 years, 3 months ago) by scarabeus
Branch: MAIN
Version bump to latest 3.0 series, cleanup older.

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-3.04_beta.ebuild,v 1.1 2012/03/30 04:39:06 radhermit Exp $
4
5 EAPI=4
6 inherit toolchain-funcs
7
8 MY_P=${P/_beta/b}
9
10 DESCRIPTION="A tool to perform passive OS detection based on SYN packets"
11 HOMEPAGE="http://lcamtuf.coredump.cx/p0f3/"
12 SRC_URI="http://lcamtuf.coredump.cx/p0f3/releases/${MY_P}.tgz"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
17 IUSE="debug ipv6"
18
19 RDEPEND="net-libs/libpcap"
20 DEPEND="${RDEPEND}"
21
22 S=${WORKDIR}/${MY_P}
23
24 src_prepare() {
25 sed -i \
26 -e 's:-g -ggdb::' \
27 -e 's:-O3::' \
28 -e '/^CC/s:=:?=:' \
29 -e '/^CFLAGS/s:=:+=:' \
30 -e '/^LDFLAGS/s:=:+=:' \
31 build.sh tools/Makefile || die
32
33 sed -i -e "/FP_FILE/s:p0f.fp:${EPREFIX}/etc/&:" config.h || die
34 }
35
36 src_compile() {
37 tc-export CC
38 ./build.sh $(use debug && echo debug) || die
39 emake -C tools p0f-client p0f-sendsyn $(use ipv6 && echo p0f-sendsyn6)
40 }
41
42 src_install() {
43 dosbin p0f tools/p0f-{client,sendsyn}
44 use ipv6 && dosbin tools/p0f-sendsyn6
45
46 insinto /etc
47 doins p0f.fp
48
49 #newconfd "${FILESDIR}"/${PN}.confd ${PN}
50 #newinitd "${FILESDIR}"/${PN}.initd3 ${PN}
51
52 dodoc docs/{ChangeLog,README,TODO,*.txt} tools/README-TOOLS
53 }

  ViewVC Help
Powered by ViewVC 1.1.20