Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 22:19:50 -0400 (EDT)
From:      Wesley Shields <wxs@atarininja.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/111465: [NEW PORT]: net/daemonlogger
Message-ID:  <20070411021950.793275C2E@syn.atarininja.org>
Resent-Message-ID: <200704110220.l3B2K243013871@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111465
>Category:       ports
>Synopsis:       [NEW PORT]: net/daemonlogger
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 11 02:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Wesley Shields
>Release:        FreeBSD 6.1-RELEASE-p10 amd64
>Organization:
>Environment:
System: FreeBSD syn.csh.rit.edu 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #5: Sat Sep 30 21:50:55 EDT 2006 root@syn.csh.rit.edu:/usr/obj/usr/src/sys/SMP amd64

>Description:
net/daemonlogger is a packet capture program but can also function as a
software tap device.  I've included an rc script which can be used to
control the functionality desired.

>How-To-Repeat:
N/A

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	daemonlogger
#	daemonlogger/pkg-descr
#	daemonlogger/distinfo
#	daemonlogger/Makefile
#	daemonlogger/files
#	daemonlogger/files/daemonlogger.sh.in
#
echo c - daemonlogger
mkdir -p daemonlogger > /dev/null 2>&1
echo x - daemonlogger/pkg-descr
sed 's/^X//' >daemonlogger/pkg-descr << 'END-of-daemonlogger/pkg-descr'
XA packet sniffer designed to run as a daemon with automatic log rotation.
XIt will also act as a software tap injecting packets onto a second
Xinterface if configured as such.
X
XWWW: http://www.snort.org/dl/daemonlogger/
X
X-- WXS
XWesley Shields
Xwxs@csh.rit.edu
END-of-daemonlogger/pkg-descr
echo x - daemonlogger/distinfo
sed 's/^X//' >daemonlogger/distinfo << 'END-of-daemonlogger/distinfo'
XMD5 (daemonlogger-0.9.tar.gz) = 1cd38b25bf597a0fbf797f0a48ff0122
XSHA256 (daemonlogger-0.9.tar.gz) = 4f58284026f1df19457b365d9088976a00ccf188bb193bfd3567325dc6b41b46
XSIZE (daemonlogger-0.9.tar.gz) = 107994
END-of-daemonlogger/distinfo
echo x - daemonlogger/Makefile
sed 's/^X//' >daemonlogger/Makefile << 'END-of-daemonlogger/Makefile'
X# New ports collection makefile for:   daemonlogger
X# Date created:        10 April 2007
X# Whom:                Wesley Shields <wxs@atarininja.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	daemonlogger
XPORTVERSION=	0.9
XCATEGORIES=	net
XMASTER_SITES=	http://www.snort.org/dl/daemonlogger/
X
XMAINTAINER=	wxs@atarininja.org
XCOMMENT=	A packet sniffer capable of running as a daemon and as a software tap
X
XLIB_DEPENDS=	dnet.1:${PORTSDIR}/net/libdnet
X
XGNU_CONFIGURE=	yes
XUSE_RC_SUBR=	daemonlogger.sh
X
XPLIST_FILES=	bin/daemonlogger
X
X.include <bsd.port.mk>
END-of-daemonlogger/Makefile
echo c - daemonlogger/files
mkdir -p daemonlogger/files > /dev/null 2>&1
echo x - daemonlogger/files/daemonlogger.sh.in
sed 's/^X//' >daemonlogger/files/daemonlogger.sh.in << 'END-of-daemonlogger/files/daemonlogger.sh.in'
X#!/bin/sh
X
X# PROVIDE: daemonlogger
X# REQUIRE: NETWORKING
X
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable daemonlogger:
X# daemonlogger_enable (bool):            Set to "NO" by default.
X#                                Set it to "YES" to enable daemonlogger 
X# daemonlogger_flags (string):           Set to "-d -l" by default.
X
X. %%RC_SUBR%%
X
Xname="daemonlogger"
Xrcvar=`set_rcvar`
X
Xcommand_args=" > /dev/null 2>&1"
X
Xload_rc_config $name
X
X: ${daemonlogger_enable:="NO"}
X: ${daemonlogger_flags:="-d -l /var/log"}
X
Xcommand=%%PREFIX%%/bin/daemonlogger
X
Xrun_rc_command "$1"
END-of-daemonlogger/files/daemonlogger.sh.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070411021950.793275C2E>