[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (f8efbf30cd40a0e52c98d491753e7e6c8270f6ff)

Vlad Glagolev scm at sourcemage.org
Fri Jul 17 17:10:50 EDT 2009


GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:

 ChangeLog              |    3 +++
 net/flowd/BUILD        |   13 +++++++++++++
 net/flowd/DEPENDS      |    4 ++++
 net/flowd/DETAILS      |   27 +++++++++++++++++++++++++++
 net/flowd/HISTORY      |    2 ++
 net/flowd/INSTALL      |   15 +++++++++++++++
 net/flowd/PRE_BUILD    |    5 +++++
 net/flowd/init.d/flowd |    9 +++++++++
 8 files changed, 78 insertions(+)

New commits:
commit f8efbf30cd40a0e52c98d491753e7e6c8270f6ff
Author: Vlad Glagolev <stealth at sourcemage.org>
Commit: Vlad Glagolev <stealth at sourcemage.org>

    flowd: new spell, small, fast and secure NetFlow collector

diff --git a/ChangeLog b/ChangeLog
index 795bc20..de3835f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-07-18 Vlad Glagolev <stealth at sourcemage.org>
+	* net/flowd: new spell, small, fast and secure NetFlow collector
+
 2009-07-17 Vlad Glagolev <stealth at sourcemage.org>
 	* devel/byacc: new spell, Berkeley version of Yet Another Compiler-Compiler
 	* net/softflowd: new spell, flow-based network traffic analyser
diff --git a/net/flowd/BUILD b/net/flowd/BUILD
new file mode 100755
index 0000000..ab051c1
--- /dev/null
+++ b/net/flowd/BUILD
@@ -0,0 +1,13 @@
+create_account flowd &&
+
+default_build &&
+
+if is_depends_enabled $SPELL perl; then
+  cd Flowd-perl &&
+  default_build_perl &&
+  cd ..
+fi &&
+
+if is_depends_enabled $SPELL python; then
+  default_build_python
+fi
diff --git a/net/flowd/DEPENDS b/net/flowd/DEPENDS
new file mode 100755
index 0000000..859b456
--- /dev/null
+++ b/net/flowd/DEPENDS
@@ -0,0 +1,4 @@
+depends byacc &&
+
+optional_depends perl "" "" "for Perl interface support"
+optional_depends python "" "" "for Python interface support"
diff --git a/net/flowd/DETAILS b/net/flowd/DETAILS
new file mode 100755
index 0000000..5b6947f
--- /dev/null
+++ b/net/flowd/DETAILS
@@ -0,0 +1,27 @@
+           SPELL=flowd
+         VERSION=0.9.1
+          SOURCE=$SPELL-$VERSION.tar.gz
+         SOURCE2=$SOURCE.asc
+   SOURCE_URL[0]=http://www.mindrot.org/files/$SPELL/$SOURCE
+  SOURCE2_URL[0]=$SOURCE_URL.asc
+      SOURCE_GPG=djm.gpg:$SOURCE2:UPSTREAM_KEY
+  SOURCE2_IGNORE=signature
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+        WEB_SITE=http://www.mindrot.org/projects/flowd/
+      LICENSE[0]=BSD
+         ENTERED=20090718
+           SHORT="small, fast and secure NetFlow collector"
+cat << EOF
+It offers the following features:
+ * Understands NetFlow protocol v.1, v.5, v.7 and v.9 (including IPv6 flows)
+ * Supports both IPv4 and IPv6 transport of flows
+ * Secure: flowd is privilege separated to limit the impact of any compromise
+ * Supports filtering and tagging of flows, using a packet filter-like syntax
+ * Stores recorded flow data in a compact binary format which supports run-time
+   choice over which flow fields are stored
+ * Ships with both Perl and Python interfaces for reading and parsing the
+   on-disk record format
+ * Supports reception of flow export datagrams sent to multicast groups (IPv4
+   and IPv6), thereby allowing the construction of redundant flow collector
+   systems
+EOF
diff --git a/net/flowd/HISTORY b/net/flowd/HISTORY
new file mode 100644
index 0000000..7331265
--- /dev/null
+++ b/net/flowd/HISTORY
@@ -0,0 +1,2 @@
+2009-07-18 Vlad Glagolev <stealth at sourcemage.org>
+	* DEPENDS, DETAILS, {PRE_,}BUILD, INSTALL, init.d/flowd: spell created
diff --git a/net/flowd/INSTALL b/net/flowd/INSTALL
new file mode 100755
index 0000000..fed1cce
--- /dev/null
+++ b/net/flowd/INSTALL
@@ -0,0 +1,15 @@
+default_install &&
+
+install_config_file flowd.conf "$INSTALL_ROOT/etc/flowd.conf" &&
+
+install -d -o flowd -g flowd -vm 755 "$INSTALL_ROOT/var/run/flowd" &&
+
+if is_depends_enabled $SPELL perl; then
+  cd Flowd-perl &&
+  default_install &&
+  cd ..
+fi &&
+
+if is_depends_enabled $SPELL python; then
+  default_install_python
+fi
diff --git a/net/flowd/PRE_BUILD b/net/flowd/PRE_BUILD
new file mode 100755
index 0000000..2a49737
--- /dev/null
+++ b/net/flowd/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+# rename privilege separation user _flowd -> flowd
+sed -i "s:_flowd:flowd:" flowd.h
diff --git a/net/flowd/init.d/flowd b/net/flowd/init.d/flowd
new file mode 100755
index 0000000..7b7fee4
--- /dev/null
+++ b/net/flowd/init.d/flowd
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+PROGRAM=/usr/sbin/flowd
+ARGS="-f /etc/flowd.conf"
+RUNLEVEL=3
+PIDFILE=/var/run/flowd.pid
+NEEDS="+network"
+
+. /etc/init.d/smgl_init



More information about the SM-Commit mailing list