summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2008-01-20 15:21:25 +0000
committerRaúl Porcel <armin76@gentoo.org>2008-01-20 15:21:25 +0000
commit1419cf3aabd39f9f8de3a155ad545ecc5c5e22c8 (patch)
treec47be9df5763fafb276a03d10921c3c33a261718 /net-analyzer/p0f
parentMarking kile-2.0 ppc for bug 206311 (diff)
downloadgentoo-2-1419cf3aabd39f9f8de3a155ad545ecc5c5e22c8.tar.gz
gentoo-2-1419cf3aabd39f9f8de3a155ad545ecc5c5e22c8.tar.bz2
gentoo-2-1419cf3aabd39f9f8de3a155ad545ecc5c5e22c8.zip
old
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-analyzer/p0f')
-rw-r--r--net-analyzer/p0f/ChangeLog8
-rw-r--r--net-analyzer/p0f/files/digest-p0f-2.0.83
-rwxr-xr-xnet-analyzer/p0f/files/p0f.initd242
-rw-r--r--net-analyzer/p0f/p0f-2.0.8.ebuild52
4 files changed, 6 insertions, 99 deletions
diff --git a/net-analyzer/p0f/ChangeLog b/net-analyzer/p0f/ChangeLog
index 11cc717c76e4..7c6c7317fcce 100644
--- a/net-analyzer/p0f/ChangeLog
+++ b/net-analyzer/p0f/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/p0f
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.40 2007/12/01 11:50:58 nixnut Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.41 2008/01/20 15:21:25 armin76 Exp $
+
+ 20 Jan 2008; Raúl Porcel <armin76@gentoo.org> -files/p0f.initd2,
+ -p0f-2.0.8.ebuild:
+ old
01 Dec 2007; nixnut <nixnut@gentoo.org> p0f-2.0.8-r1.ebuild:
Stable on ppc wrt bug 200415
diff --git a/net-analyzer/p0f/files/digest-p0f-2.0.8 b/net-analyzer/p0f/files/digest-p0f-2.0.8
deleted file mode 100644
index 19fcdf29de68..000000000000
--- a/net-analyzer/p0f/files/digest-p0f-2.0.8
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 1ccbcd8d4c95ef6dae841120d23c56a5 p0f-2.0.8.tgz 136877
-RMD160 87d5b30d2d5e156b9fdcb026160155f413ce13d3 p0f-2.0.8.tgz 136877
-SHA256 6c4d8745f04e59f2ba68d56fd1554551592f08a0497c9fc21b84498f47d1aee0 p0f-2.0.8.tgz 136877
diff --git a/net-analyzer/p0f/files/p0f.initd2 b/net-analyzer/p0f/files/p0f.initd2
deleted file mode 100755
index 0b59fd80a711..000000000000
--- a/net-analyzer/p0f/files/p0f.initd2
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/files/p0f.initd2,v 1.3 2007/01/06 19:18:00 cedk Exp $
-
-start() {
- ebegin "Starting p0f"
- # The 'tcp and tcp[13] & 2 = 2' requires at least syn set.
- # An alternative would be 'tcp and tcp[13] & 0x3f = 2', which
- # is syn and no other major flags (but ECN enabled packets are OK)
- if [ -z "$BpfFilter" ]; then
- BpfFilter='tcp and tcp[13] & 2 = 2'
- else
- BpfFilter="$BpfFilter and tcp and tcp[13] & 2 = 2"
- fi
-
- # The command in backticks returns all the local IP addresses on this machine.
- for OneIP in `/sbin/ifconfig 2>/dev/null | grep 'inet addr' | sed -e 's/.*addr://' -e 's/ .*//'` ; do
- BpfFilter="$BpfFilter and not src host $OneIP"
- done
-
-
- # Create a lock file.
- mkdir -p /var/lock/subsys
- touch /var/lock/subsys/p0f
-
- # Start up p0f and filter out all packets originating from any of this machines IP's.
- if [ -z "${P0FLOGFILE}" ]; then
- P0FLOGFILE="/var/log/p0f"
- fi
- einfo "Logfile: ${P0FLOGFILE}"
- start-stop-daemon --start --quiet --exec /usr/sbin/p0f -- -i "${P0FDEVICE}" \
- ${P0FOPTIONS} -o "${P0FLOGFILE}" -d "${BpfFilter}" 2>/dev/null
- eend ${?}
-}
-
-stop() {
- ebegin "Stopping p0f"
- start-stop-daemon --stop --quiet --exec /usr/sbin/p0f
- rm -f /var/lock/subsys/p0f
- eend ${?}
-}
diff --git a/net-analyzer/p0f/p0f-2.0.8.ebuild b/net-analyzer/p0f/p0f-2.0.8.ebuild
deleted file mode 100644
index 02b78d776199..000000000000
--- a/net-analyzer/p0f/p0f-2.0.8.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-2.0.8.ebuild,v 1.6 2007/05/13 17:32:00 beandog Exp $
-
-inherit eutils toolchain-funcs
-
-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 CC="$(tc-getCC)" ${static} || die "emake ${static} failed"
- emake CC="$(tc-getCC)" ${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(){
- elog "Adjust /etc/conf.d/p0f to your liking before using the"
- elog "init script. For more information on options, read man p0f."
-}