From f0c8400658ac5b039bb48dbb74b02f75d52b9723 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 27 Aug 2004 00:42:33 +0000 Subject: 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 --- .../sources/openwrt/ipkg/fprobe/CONTROL/conffiles | 1 + .../sources/openwrt/ipkg/fprobe/CONTROL/control | 9 +++++++++ .../openwrt/ipkg/fprobe/root/etc/fprobe.conf | 8 ++++++++ .../openwrt/ipkg/fprobe/root/etc/init.d/fprobe | 23 ++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/conffiles create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/fprobe/CONTROL/control create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/fprobe.conf create mode 100644 obsolete-buildroot/sources/openwrt/ipkg/fprobe/root/etc/init.d/fprobe (limited to 'obsolete-buildroot/sources/openwrt/ipkg/fprobe') 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 000000000..d498dc49c --- /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 000000000..d17142d3a --- /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 +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 000000000..3abfba6f9 --- /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 000000000..2a61fceb9 --- /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 $? -- cgit v1.2.3