summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-03-30 04:39:06 +0000
committerTim Harder <radhermit@gentoo.org>2012-03-30 04:39:06 +0000
commitcad36d612a52d6ccffe3ee38269a9a6e7c2ed2c2 (patch)
tree0696430c775e60c7adeba63fba313c62ebf98fa2 /net-analyzer
parentVersion bump. (diff)
downloadgentoo-2-cad36d612a52d6ccffe3ee38269a9a6e7c2ed2c2.tar.gz
gentoo-2-cad36d612a52d6ccffe3ee38269a9a6e7c2ed2c2.tar.bz2
gentoo-2-cad36d612a52d6ccffe3ee38269a9a6e7c2ed2c2.zip
Version bump.
(Portage version: 2.2.0_alpha92/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/p0f/ChangeLog7
-rw-r--r--net-analyzer/p0f/p0f-3.04_beta.ebuild53
2 files changed, 59 insertions, 1 deletions
diff --git a/net-analyzer/p0f/ChangeLog b/net-analyzer/p0f/ChangeLog
index cf28f8fbd398..56b177c40f5e 100644
--- a/net-analyzer/p0f/ChangeLog
+++ b/net-analyzer/p0f/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/p0f
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.47 2012/01/23 02:43:04 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.48 2012/03/30 04:39:06 radhermit Exp $
+
+*p0f-3.04_beta (30 Mar 2012)
+
+ 30 Mar 2012; Tim Harder <radhermit@gentoo.org> +p0f-3.04_beta.ebuild:
+ Version bump.
*p0f-3.03_beta (23 Jan 2012)
diff --git a/net-analyzer/p0f/p0f-3.04_beta.ebuild b/net-analyzer/p0f/p0f-3.04_beta.ebuild
new file mode 100644
index 000000000000..f5009fa538f9
--- /dev/null
+++ b/net-analyzer/p0f/p0f-3.04_beta.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-3.04_beta.ebuild,v 1.1 2012/03/30 04:39:06 radhermit Exp $
+
+EAPI=4
+inherit toolchain-funcs
+
+MY_P=${P/_beta/b}
+
+DESCRIPTION="A tool to perform passive OS detection based on SYN packets"
+HOMEPAGE="http://lcamtuf.coredump.cx/p0f3/"
+SRC_URI="http://lcamtuf.coredump.cx/p0f3/releases/${MY_P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="debug ipv6"
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e 's:-g -ggdb::' \
+ -e 's:-O3::' \
+ -e '/^CC/s:=:?=:' \
+ -e '/^CFLAGS/s:=:+=:' \
+ -e '/^LDFLAGS/s:=:+=:' \
+ build.sh tools/Makefile || die
+
+ sed -i -e "/FP_FILE/s:p0f.fp:${EPREFIX}/etc/&:" config.h || die
+}
+
+src_compile() {
+ tc-export CC
+ ./build.sh $(use debug && echo debug) || die
+ emake -C tools p0f-client p0f-sendsyn $(use ipv6 && echo p0f-sendsyn6)
+}
+
+src_install() {
+ dosbin p0f tools/p0f-{client,sendsyn}
+ use ipv6 && dosbin tools/p0f-sendsyn6
+
+ insinto /etc
+ doins p0f.fp
+
+ #newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ #newinitd "${FILESDIR}"/${PN}.initd3 ${PN}
+
+ dodoc docs/{ChangeLog,README,TODO,*.txt} tools/README-TOOLS
+}