diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-01-06 19:14:42 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-01-06 19:14:42 +0000 |
commit | 76a679cf495eea378621caff98ebb756da063339 (patch) | |
tree | f7a4e3f8e69d74bee7b09a499e69bee33d6b9b60 /net-analyzer/p0f/files | |
parent | Added IUSE=debug, which was dropped when \'inherit debug\' was removed from x... (diff) | |
download | gentoo-2-76a679cf495eea378621caff98ebb756da063339.tar.gz gentoo-2-76a679cf495eea378621caff98ebb756da063339.tar.bz2 gentoo-2-76a679cf495eea378621caff98ebb756da063339.zip |
Improve init script for bug #143415 and cross-compile
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-analyzer/p0f/files')
-rw-r--r-- | net-analyzer/p0f/files/digest-p0f-2.0.5 | 2 | ||||
-rw-r--r-- | net-analyzer/p0f/files/p0f.confd | 2 | ||||
-rwxr-xr-x | net-analyzer/p0f/files/p0f.initd2 | 10 |
3 files changed, 10 insertions, 4 deletions
diff --git a/net-analyzer/p0f/files/digest-p0f-2.0.5 b/net-analyzer/p0f/files/digest-p0f-2.0.5 index 07d6ee7ea1cd..6c3b8b5796fa 100644 --- a/net-analyzer/p0f/files/digest-p0f-2.0.5 +++ b/net-analyzer/p0f/files/digest-p0f-2.0.5 @@ -1 +1,3 @@ MD5 78235749e8ada6ad2b16b40fe15081f6 p0f-2.0.5.tgz 130002 +RMD160 34ee678aa721ee38959419808ed798aa23228a16 p0f-2.0.5.tgz 130002 +SHA256 563c62f63acfbef79e79659c3f483813816c7d032ef73e96e462a3b4f9a2fc7f p0f-2.0.5.tgz 130002 diff --git a/net-analyzer/p0f/files/p0f.confd b/net-analyzer/p0f/files/p0f.confd index ae3a068cebad..01c02896ec01 100644 --- a/net-analyzer/p0f/files/p0f.confd +++ b/net-analyzer/p0f/files/p0f.confd @@ -1,3 +1,3 @@ P0FLOGFILE=/var/log/p0f-audit.log P0FDEVICE=eth0 -P0FOPTIONS="-tdlo" +P0FOPTIONS="-tl" diff --git a/net-analyzer/p0f/files/p0f.initd2 b/net-analyzer/p0f/files/p0f.initd2 index f32f11ca82c0..75e1a5089f1b 100755 --- a/net-analyzer/p0f/files/p0f.initd2 +++ b/net-analyzer/p0f/files/p0f.initd2 @@ -1,7 +1,7 @@ #!/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.1 2005/06/19 01:54:40 vanquirius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/files/p0f.initd2,v 1.2 2007/01/06 19:14:42 cedk Exp $ start() { ebegin "Starting p0f" @@ -18,15 +18,19 @@ start() { 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}" "${P0FLOGFILE}" "${BpfFilter}" >> "/var/log/p0f" 2>&1 & + "${P0FOPTIONS}" -o "${P0FLOGFILE}" -d "${BpfFilter}" 2>/dev/null eend ${?} } |