aboutsummaryrefslogtreecommitdiffstats
path: root/net/daemonlogger
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2007-04-11 14:05:51 +0800
committerlwhsu <lwhsu@FreeBSD.org>2007-04-11 14:05:51 +0800
commit6228641b0a74f7e503afacd5c9956316dbef870e (patch)
treebc89c4be66c032c147d9117def37f4117f842647 /net/daemonlogger
parentea4c252240e8dc7f014ee5a031f3e4020d4fe527 (diff)
downloadfreebsd-ports-gnome-6228641b0a74f7e503afacd5c9956316dbef870e.tar.gz
freebsd-ports-gnome-6228641b0a74f7e503afacd5c9956316dbef870e.tar.zst
freebsd-ports-gnome-6228641b0a74f7e503afacd5c9956316dbef870e.zip
Add daemonlogger 0.9, a packet sniffer capable of running as a daemon
and as a software tap. PR: ports/111465 Submitted by: Wesley Shields <wxs at atarininja.org> Approved by: clsung (mentor)
Diffstat (limited to 'net/daemonlogger')
-rw-r--r--net/daemonlogger/Makefile23
-rw-r--r--net/daemonlogger/distinfo3
-rw-r--r--net/daemonlogger/files/daemonlogger.sh.in26
-rw-r--r--net/daemonlogger/pkg-descr9
4 files changed, 61 insertions, 0 deletions
diff --git a/net/daemonlogger/Makefile b/net/daemonlogger/Makefile
new file mode 100644
index 000000000000..b5edde5b5765
--- /dev/null
+++ b/net/daemonlogger/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: daemonlogger
+# Date created: 10 April 2007
+# Whom: Wesley Shields <wxs@atarininja.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= daemonlogger
+PORTVERSION= 0.9
+CATEGORIES= net
+MASTER_SITES= http://www.snort.org/dl/daemonlogger/
+
+MAINTAINER= wxs@atarininja.org
+COMMENT= A packet sniffer capable of running as a daemon and as a software tap
+
+LIB_DEPENDS= dnet.1:${PORTSDIR}/net/libdnet
+
+GNU_CONFIGURE= yes
+USE_RC_SUBR= daemonlogger.sh
+
+PLIST_FILES= bin/daemonlogger
+
+.include <bsd.port.mk>
diff --git a/net/daemonlogger/distinfo b/net/daemonlogger/distinfo
new file mode 100644
index 000000000000..cbdd865bf19f
--- /dev/null
+++ b/net/daemonlogger/distinfo
@@ -0,0 +1,3 @@
+MD5 (daemonlogger-0.9.tar.gz) = 1cd38b25bf597a0fbf797f0a48ff0122
+SHA256 (daemonlogger-0.9.tar.gz) = 4f58284026f1df19457b365d9088976a00ccf188bb193bfd3567325dc6b41b46
+SIZE (daemonlogger-0.9.tar.gz) = 107994
diff --git a/net/daemonlogger/files/daemonlogger.sh.in b/net/daemonlogger/files/daemonlogger.sh.in
new file mode 100644
index 000000000000..62cbe985a17f
--- /dev/null
+++ b/net/daemonlogger/files/daemonlogger.sh.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# PROVIDE: daemonlogger
+# REQUIRE: NETWORKING
+
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable daemonlogger:
+# daemonlogger_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable daemonlogger
+# daemonlogger_flags (string): Set to "-d -l" by default.
+
+. %%RC_SUBR%%
+
+name="daemonlogger"
+rcvar=`set_rcvar`
+
+command_args=" > /dev/null 2>&1"
+
+load_rc_config $name
+
+: ${daemonlogger_enable:="NO"}
+: ${daemonlogger_flags:="-d -l /var/log"}
+
+command=%%PREFIX%%/bin/daemonlogger
+
+run_rc_command "$1"
diff --git a/net/daemonlogger/pkg-descr b/net/daemonlogger/pkg-descr
new file mode 100644
index 000000000000..2af968af384c
--- /dev/null
+++ b/net/daemonlogger/pkg-descr
@@ -0,0 +1,9 @@
+A packet sniffer designed to run as a daemon with automatic log rotation.
+It will also act as a software tap injecting packets onto a second
+interface if configured as such.
+
+WWW: http://www.snort.org/dl/daemonlogger/
+
+-- WXS
+Wesley Shields
+wxs@csh.rit.edu