aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/flowd
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-11-13 04:52:09 +0800
committerpav <pav@FreeBSD.org>2004-11-13 04:52:09 +0800
commitfa270974fee6e1330a844994ce5677e92dca9e60 (patch)
treec50b061ce35d84be917fe07135af451bfd29a83d /net-mgmt/flowd
parent8bc61952d0ecfdabf79cafb43908260f9ea11124 (diff)
downloadfreebsd-ports-gnome-fa270974fee6e1330a844994ce5677e92dca9e60.tar.gz
freebsd-ports-gnome-fa270974fee6e1330a844994ce5677e92dca9e60.tar.zst
freebsd-ports-gnome-fa270974fee6e1330a844994ce5677e92dca9e60.zip
Add flowd, a small, fast and secure NetFlow collector. 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 * Is licensed under a liberal BSD-like license PR: ports/73722 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>
Diffstat (limited to 'net-mgmt/flowd')
-rw-r--r--net-mgmt/flowd/Makefile71
-rw-r--r--net-mgmt/flowd/distinfo2
-rw-r--r--net-mgmt/flowd/files/patch-Makefile.in14
-rw-r--r--net-mgmt/flowd/pkg-descr14
-rw-r--r--net-mgmt/flowd/pkg-plist17
5 files changed, 118 insertions, 0 deletions
diff --git a/net-mgmt/flowd/Makefile b/net-mgmt/flowd/Makefile
new file mode 100644
index 000000000000..098260893a25
--- /dev/null
+++ b/net-mgmt/flowd/Makefile
@@ -0,0 +1,71 @@
+# New ports collection makefile for: flowd
+# Date created: 9 October 2004
+# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= flowd
+PORTVERSION= 0.7
+CATEGORIES= net-mgmt ipv6
+MASTER_SITES= http://www2.mindrot.org/files/flowd/
+
+MAINTAINER= janos.mohacsi@bsd.hu
+COMMENT= The clowd is a small, fast and secure NetFlow collector
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+MAN8= flowd.8 flowd-reader.8
+MAN5= flowd.conf.5
+PORTDOCS= README INSTALL
+
+.if defined(WITH_PERL)
+USE_PERL5= yes
+PLIST_SUB+= WITH_PERL=""
+#MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+#MAN3= Flowd.3
+.else
+PLIST_SUB+= WITH_PERL="@comment "
+.endif
+
+.if defined(WITH_PYTHON)
+USE_PYTHON= yes
+PLIST_SUB+= WITH_PYTHON=""
+.else
+PLIST_SUB+= WITH_PYTHON="@comment "
+.endif
+
+pre-extract:
+ @${ECHO_MSG} ""
+.if defined(WITH_PERL)
+ @${ECHO_MSG} "Build with perl bindings."
+.else
+ @${ECHO_MSG} "You can enable perl bindings by defining WITH_PERL"
+.endif
+ @${ECHO_MSG} ""
+.if defined(WITH_PYTHON)
+ @${ECHO_MSG} "Build with Python bindings."
+.else
+ @${ECHO_MSG} "You can enable Python bindings by defining WITH_PYTHON."
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.if defined(WITH_PERL)
+ cd ${WRKSRC}/Flowd && \
+ ${PERL} Makefile.PL && \
+ ${GMAKE} && \
+ ${GMAKE} install
+.endif
+
+.if defined(WITH_PYTHON)
+ cd ${WRKSRC} && \
+ ${PYTHON_CMD} setup.py build && \
+ ${PYTHON_CMD} setup.py install
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/flowd/distinfo b/net-mgmt/flowd/distinfo
new file mode 100644
index 000000000000..068aed454fd1
--- /dev/null
+++ b/net-mgmt/flowd/distinfo
@@ -0,0 +1,2 @@
+MD5 (flowd-0.7.tar.gz) = bf8a7a257b571c484e417e0b3b7bf80e
+SIZE (flowd-0.7.tar.gz) = 151898
diff --git a/net-mgmt/flowd/files/patch-Makefile.in b/net-mgmt/flowd/files/patch-Makefile.in
new file mode 100644
index 000000000000..fd3ecd283256
--- /dev/null
+++ b/net-mgmt/flowd/files/patch-Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- Makefile.in.orig
++++ Makefile.in
+@@ -95,7 +95,7 @@
+ install-conf: flowd.conf
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
+ test -f $(DESTDIR)$(sysconfdir)/flowd.conf || \
+- $(INSTALL) -m 0600 flowd.conf $(DESTDIR)$(sysconfdir)
++ $(INSTALL) -m 0600 flowd.conf $(DESTDIR)$(sysconfdir)/flowd.conf.sample
+
+ install-lib: libflowd.a
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
diff --git a/net-mgmt/flowd/pkg-descr b/net-mgmt/flowd/pkg-descr
new file mode 100644
index 000000000000..9ff4158cb7f6
--- /dev/null
+++ b/net-mgmt/flowd/pkg-descr
@@ -0,0 +1,14 @@
+flowd is a small, fast and secure NetFlow collector. 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
+ * Is licensed under a liberal BSD-like license
+
+WWW: http://www.mindrot.org/flowd.html
diff --git a/net-mgmt/flowd/pkg-plist b/net-mgmt/flowd/pkg-plist
new file mode 100644
index 000000000000..587939c03e42
--- /dev/null
+++ b/net-mgmt/flowd/pkg-plist
@@ -0,0 +1,17 @@
+bin/flowd-reader
+etc/flowd.conf.sample
+lib/libflowd.a
+include/flowd/addr.h
+include/flowd/crc32.h
+include/flowd/store.h
+sbin/flowd
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Flowd/Flowd.so
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Flowd/Flowd.bs
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Flowd/.packlist
+%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/Flowd.pm
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Flowd
+%%WITH_PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto
+%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/flowd_serialiser.so
+%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/flowd.pyc
+%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/flowd.py
+@dirrm include/flowd