diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 02:43:04 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 02:43:04 +0000 |
commit | 72d29cb7991e9042f836178bfcfed5891b59662d (patch) | |
tree | f733427a727fc4fe4815a80a91e098a1b7826aa3 /net-analyzer/p0f | |
parent | Version bump; tests are now finally enabled, at least partially. (diff) | |
download | gentoo-2-72d29cb7991e9042f836178bfcfed5891b59662d.tar.gz gentoo-2-72d29cb7991e9042f836178bfcfed5891b59662d.tar.bz2 gentoo-2-72d29cb7991e9042f836178bfcfed5891b59662d.zip |
Version bump.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/p0f')
-rw-r--r-- | net-analyzer/p0f/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/p0f/p0f-3.03_beta.ebuild | 53 |
2 files changed, 59 insertions, 1 deletions
diff --git a/net-analyzer/p0f/ChangeLog b/net-analyzer/p0f/ChangeLog index 3850723c5d8f..cf28f8fbd398 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.46 2012/01/16 18:07:37 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.47 2012/01/23 02:43:04 ssuominen Exp $ + +*p0f-3.03_beta (23 Jan 2012) + + 23 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +p0f-3.03_beta.ebuild: + Version bump. *p0f-3.00_rc5 (16 Jan 2012) diff --git a/net-analyzer/p0f/p0f-3.03_beta.ebuild b/net-analyzer/p0f/p0f-3.03_beta.ebuild new file mode 100644 index 000000000000..b890065238f0 --- /dev/null +++ b/net-analyzer/p0f/p0f-3.03_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.03_beta.ebuild,v 1.1 2012/01/23 02:43:04 ssuominen 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 +} |