diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 00:42:33 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 00:42:33 +0000 |
commit | f0c8400658ac5b039bb48dbb74b02f75d52b9723 (patch) | |
tree | 7ef2c062b8733bbd08473f6c2bed78c7ad9708d1 /obsolete-buildroot/sources/openwrt/ipkg/fprobe | |
parent | aa210b58909434abaa63a7a6cd898a43ba61c3f3 (diff) |
various patches
nico:
buildroot-20040825-kmodules.patch.txt
buildroot-20040825-tcpdump.patch.txt
buildroot-20040825-libpcap.patch.txt
buildroot-20040825-libpthread.patch.txt
buildroot-20040825-fprobe.patch.txt
buildroot-20040825-pptp-client.patch.txt
twolife:
iproute2.patch.txt
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@149 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/ipkg/fprobe')
4 files changed, 41 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/conffiles b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/conffiles new file mode 100644 index 0000000000..d498dc49c7 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/conffiles @@ -0,0 +1 @@ +/etc/fprobe.conf diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/control b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/control new file mode 100644 index 0000000000..d17142d3a6 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/control @@ -0,0 +1,9 @@ +Package: fprobe +Priority: optional +Section: net +Version: TBDL +Architecture: TBDL +Maintainer: Nico <nthill@free.fr> +Source: http://openwrt.org/cgi-bin/viewcvs.cgi/buildroot/ +Description: a NetFlow probe +Depends: libpcap, libpthread diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf new file mode 100644 index 0000000000..3abfba6f95 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf @@ -0,0 +1,8 @@ +# Interface to listen on +IFNAME=any + +# NetFlow collector (host:port) +REMOTE=192.168.1.100:2055 + +# Maximum log level (0=EMERG, 1=ALERT, 2=CRIT, 3=ERR, 4=WARNING, 5=NOTICE, 6=INFO, 7=DEBUG) +LOG_LEVEL=3 diff --git a/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe new file mode 100644 index 0000000000..2a61fceb98 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe @@ -0,0 +1,23 @@ +#!/bin/sh + +DEFAULT=/etc/fprobe.conf +OPTIONS="" +[ -f $DEFAULT ] && . $DEFAULT +[ -n "$IFNAME" ] && OPTIONS="$OPTIONS -i $IFNAME" +[ -n "$LOG_LEVEL" ] && OPTIONS="$OPTIONS -v $LOG_LEVEL" +[ -n "$REMOTE" ] && OPTIONS="$OPTIONS $REMOTE" + +case $1 in + start) + [ -d /var/run ] || mkdir -p /var/run + /usr/sbin/fprobe $OPTIONS + ;; + stop) + [ -f /var/run/fprobe.pid ] && kill $(cat /var/run/fprobe.pid) >/dev/null 2>&1 + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |