summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2006-07-09 22:11:11 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2006-07-09 22:11:11 +0000
commitcd1ba5a5acb1884c75b02cf821dde9213cb8058d (patch)
treecebd235f7a133c66f331ae138ce5150b04445929 /net-analyzer/p0f
parentAdd php checking from bug #137490. (diff)
downloadgentoo-2-cd1ba5a5acb1884c75b02cf821dde9213cb8058d.tar.gz
gentoo-2-cd1ba5a5acb1884c75b02cf821dde9213cb8058d.tar.bz2
gentoo-2-cd1ba5a5acb1884c75b02cf821dde9213cb8058d.zip
2.0.6 version bump. Now compiles and installs p0fq.
(Portage version: 2.1-r1)
Diffstat (limited to 'net-analyzer/p0f')
-rw-r--r--net-analyzer/p0f/ChangeLog7
-rw-r--r--net-analyzer/p0f/files/digest-p0f-2.0.63
-rw-r--r--net-analyzer/p0f/p0f-2.0.6.ebuild52
3 files changed, 61 insertions, 1 deletions
diff --git a/net-analyzer/p0f/ChangeLog b/net-analyzer/p0f/ChangeLog
index 2e871e349790..eb3d611d12c1 100644
--- a/net-analyzer/p0f/ChangeLog
+++ b/net-analyzer/p0f/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/p0f
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.26 2006/02/15 23:43:40 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.27 2006/07/09 22:11:11 vanquirius Exp $
+
+*p0f-2.0.6 (09 Jul 2006)
+
+ 09 Jul 2006; Marcelo Goes <vanquirius@gentoo.org> +p0f-2.0.6.ebuild:
+ 2.0.6 version bump. Now compiles and installs p0fq.
15 Feb 2006; Markus Ullmann <jokey@gentoo.org> p0f-2.0.3.ebuild,
p0f-2.0.5.ebuild, p0f-2.0.5-r1.ebuild:
diff --git a/net-analyzer/p0f/files/digest-p0f-2.0.6 b/net-analyzer/p0f/files/digest-p0f-2.0.6
new file mode 100644
index 000000000000..8bfdb2ca91f0
--- /dev/null
+++ b/net-analyzer/p0f/files/digest-p0f-2.0.6
@@ -0,0 +1,3 @@
+MD5 d6333198027b90e05ccb3412d8f25d05 p0f-2.0.6.tgz 131668
+RMD160 926ae9a8ec382d158df000175612421f7bddc6d1 p0f-2.0.6.tgz 131668
+SHA256 95aaf7861475c76929a08aeb4b7dca3ee912a5405fbbb1e4b80b8cadc3600441 p0f-2.0.6.tgz 131668
diff --git a/net-analyzer/p0f/p0f-2.0.6.ebuild b/net-analyzer/p0f/p0f-2.0.6.ebuild
new file mode 100644
index 000000000000..f8b8d78fcb88
--- /dev/null
+++ b/net-analyzer/p0f/p0f-2.0.6.ebuild
@@ -0,0 +1,52 @@
+# 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.6.ebuild,v 1.1 2006/07/09 22:11:11 vanquirius 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="~amd64 ~ppc ~ppc-macos ~sparc ~x86"
+IUSE="static"
+
+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_compile() {
+ local static
+ use static && static="static"
+ emake ${static} || die "emake ${static} failed"
+ emake ${static} p0fq || die "emake ${static} p0fq failed"
+}
+
+src_install () {
+ use static && mv p0f-static p0f
+ dosbin p0f p0frep test/p0fq || die
+
+ insinto /etc/p0f
+ doins p0f.fp p0fa.fp p0fr.fp
+
+ doman p0f.1 || die
+ cd doc
+ dodoc ChangeLog CREDITS KNOWN_BUGS README TODO
+
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed"
+ newinitd "${FILESDIR}"/${PN}.initd2 ${PN} || die "newinitd failed"
+}
+
+pkg_postinst(){
+ einfo "Adjust /etc/conf.d/p0f to your liking before using the"
+ einfo "init script. For more information on options, read man p0f."
+}