diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-26 20:41:25 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-26 20:41:25 +0000 |
commit | 2a641059b2eaa05c8183d6a6029489b57b018516 (patch) | |
tree | af991fafc973c572502295922bab9863c41bcfb0 /net-analyzer/fprobe | |
parent | stable amd64, bug 229557 (diff) | |
download | gentoo-2-2a641059b2eaa05c8183d6a6029489b57b018516.tar.gz gentoo-2-2a641059b2eaa05c8183d6a6029489b57b018516.tar.bz2 gentoo-2-2a641059b2eaa05c8183d6a6029489b57b018516.zip |
The init script was always running in promisc mode UNLESS you tried to not run promisc.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64)
Diffstat (limited to 'net-analyzer/fprobe')
-rw-r--r-- | net-analyzer/fprobe/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/fprobe/files/init.d-fprobe | 2 | ||||
-rw-r--r-- | net-analyzer/fprobe/fprobe-1.1-r2.ebuild | 46 |
3 files changed, 55 insertions, 2 deletions
diff --git a/net-analyzer/fprobe/ChangeLog b/net-analyzer/fprobe/ChangeLog index 17345d9262ed..b86c46acc9ac 100644 --- a/net-analyzer/fprobe/ChangeLog +++ b/net-analyzer/fprobe/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-analyzer/fprobe # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fprobe/ChangeLog,v 1.13 2008/03/17 08:41:11 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fprobe/ChangeLog,v 1.14 2008/06/26 20:41:24 robbat2 Exp $ + +*fprobe-1.1-r2 (26 Jun 2008) + + 26 Jun 2008; Robin H. Johnson <robbat2@gentoo.org> files/init.d-fprobe, + +fprobe-1.1-r2.ebuild: + The init script was always running in promisc mode UNLESS you tried to not + run promisc. *fprobe-1.1-r1 (17 Mar 2008) diff --git a/net-analyzer/fprobe/files/init.d-fprobe b/net-analyzer/fprobe/files/init.d-fprobe index 72ff8901399d..3239b0f33dfd 100644 --- a/net-analyzer/fprobe/files/init.d-fprobe +++ b/net-analyzer/fprobe/files/init.d-fprobe @@ -14,7 +14,7 @@ PIDFILE="/var/run/fprobe$PIDFILE_EXTRA.pid" start() { ebegin "Starting fprobe" local OPTS="" - [ "${PROMISC}" == "yes" ] && OPTS="${OPTS} -p" + [ "${PROMISC}" == "yes" ] || OPTS="${OPTS} -p" [ -n "${FILTER}" ] && OPTS="${OPTS} -f '${FILTER}'" for optname in i:IFACE s:TIMER_EXPIRED g:TIME_FRAGMENTED d:TIMER_IDLE \ e:TIMER_ACTIVE n:FLOW_VER a:LOCALIP x:SNMP_IFACE b:MEMBULK \ diff --git a/net-analyzer/fprobe/fprobe-1.1-r2.ebuild b/net-analyzer/fprobe/fprobe-1.1-r2.ebuild new file mode 100644 index 000000000000..a56046d86acc --- /dev/null +++ b/net-analyzer/fprobe/fprobe-1.1-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fprobe/fprobe-1.1-r2.ebuild,v 1.1 2008/06/26 20:41:24 robbat2 Exp $ + +inherit eutils + +DESCRIPTION="A libpcap-based tool to collect network traffic data and emit it as NetFlow flows" +HOMEPAGE="http://fprobe.sourceforge.net" +LICENSE="GPL-2" + +SRC_URI="mirror://sourceforge/fprobe/${P}.tar.bz2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="debug messages" + +DEPEND="net-libs/libpcap" + +src_unpack() { + unpack ${A} + # The pidfile should be created by the parent process, before the + # setuid/chroot # is executed. + epatch "${FILESDIR}"/fprobe-1.1-pidfile-sanity.patch + # This seems to fail, uncertain why. + epatch "${FILESDIR}"/fprobe-1.1-setgroups.patch +} + +src_compile() { + econf \ + $(use_enable debug) \ + $(use_enable messages) \ + || die "configure failed" + + emake || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" + + dodoc AUTHORS NEWS README TODO + docinto contrib + dodoc contrib/tg.sh + + newinitd "${FILESDIR}"/init.d-fprobe fprobe + newconfd "${FILESDIR}"/conf.d-fprobe fprobe +} |