From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 9 14:20:03 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11C4E16A4CE for ; Wed, 9 Jun 2004 14:20:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04D6943D45 for ; Wed, 9 Jun 2004 14:20:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i59EK2HR014132 for ; Wed, 9 Jun 2004 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i59EK23f014130; Wed, 9 Jun 2004 14:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 9 Jun 2004 14:20:02 GMT Resent-Message-Id: <200406091420.i59EK23f014130@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, frank@dynamical-systems.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 030F416A4CE for ; Wed, 9 Jun 2004 14:14:25 +0000 (GMT) Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31EB343D1D for ; Wed, 9 Jun 2004 14:14:25 +0000 (GMT) (envelope-from frank@dynamical-systems.org) Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout1.freenet.de with asmtp (Exim 4.33) id 1BY3qF-0008Cj-F4 for FreeBSD-gnats-submit@freebsd.org; Wed, 09 Jun 2004 16:14:11 +0200 Received: from a1b3e.a.pppool.de ([213.6.27.62] helo=achilles.tractrix.org) (TLSv1:AES256-SHA:256) (Exim 4.33 #3) id 1BY3qC-0004PK-Ev for FreeBSD-gnats-submit@freebsd.org; Wed, 09 Jun 2004 16:14:11 +0200 Received: from achilles.tractrix.org (localhost.tractrix.org [127.0.0.1]) i59EE19U001278; Wed, 9 Jun 2004 16:14:01 +0200 (CEST) (envelope-from frank@dynamical-systems.org) Received: (from root@localhost) by achilles.tractrix.org (8.12.10/8.12.10/Submit) id i59EDsKr001277; Wed, 9 Jun 2004 16:13:54 +0200 (CEST) (envelope-from frank@dynamical-systems.org) Message-Id: <200406091413.i59EDsKr001277@achilles.tractrix.org> Date: Wed, 9 Jun 2004 16:13:54 +0200 (CEST) From: frank@dynamical-systems.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/67754: New port: security/ipfw2dshield, a dshield client for ipfw logs X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 14:20:03 -0000 >Number: 67754 >Category: ports >Synopsis: New port: security/ipfw2dshield, a dshield client for ipfw logs >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 Jun 09 14:20:02 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Frank W. Josellis >Release: FreeBSD 4.9-RELEASE i386 >Organization: none >Environment: System: FreeBSD achilles.tractrix.org 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Jun 2 17:28:48 CEST 2004 root@achilles.tractrix.org:/usr/src/sys/compile/ACHILLES i386 >Description: A script for parsing ipfw log messages and submitting reports to dshield.org (visit http://www.dshield.org for more info). >How-To-Repeat: >Fix: --- ipfw2dshield.shar begins here --- # 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: # # security/ipfw2dshield # security/ipfw2dshield/distinfo # security/ipfw2dshield/Makefile # security/ipfw2dshield/pkg-plist # security/ipfw2dshield/pkg-descr # security/ipfw2dshield/files # security/ipfw2dshield/files/patch-aa # security/ipfw2dshield/files/patch-ab # security/ipfw2dshield/files/patch-ac # security/ipfw2dshield/files/patch-ad # security/ipfw2dshield/pkg-message # echo c - security/ipfw2dshield mkdir -p security/ipfw2dshield > /dev/null 2>&1 echo x - security/ipfw2dshield/distinfo sed 's/^X//' >security/ipfw2dshield/distinfo << 'END-of-security/ipfw2dshield/distinfo' XMD5 (ipfw2dshield-0.4.tar.gz) = c1a6d93170e4d8d390ab09a196e7b095 END-of-security/ipfw2dshield/distinfo echo x - security/ipfw2dshield/Makefile sed 's/^X//' >security/ipfw2dshield/Makefile << 'END-of-security/ipfw2dshield/Makefile' X# New ports collection makefile for: ipfw2dshield X# Date created: 8 June 2004 X# Whom: Frank W. Josellis X# X# $FreeBSD$ X# X XPORTNAME= ipfw2dshield XPORTVERSION= 0.4 XCATEGORIES= security XMASTER_SITES= http://www.dynamical-systems.org/ipfw/ X XMAINTAINER= frank@dynamical-systems.org XCOMMENT= A DShield client for ipfw logs X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for i in CHANGES COPYING README.html README.txt X ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} X.endfor X.endif X X.include END-of-security/ipfw2dshield/Makefile echo x - security/ipfw2dshield/pkg-plist sed 's/^X//' >security/ipfw2dshield/pkg-plist << 'END-of-security/ipfw2dshield/pkg-plist' Xsbin/ipfw2dshield Xbin/ipaddr Xbin/strpdate Xetc/ipfw2dshield.rc.sample X%%PORTDOCS%%%%DOCSDIR%%/CHANGES X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/README.html X%%PORTDOCS%%%%DOCSDIR%%/README.txt X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-security/ipfw2dshield/pkg-plist echo x - security/ipfw2dshield/pkg-descr sed 's/^X//' >security/ipfw2dshield/pkg-descr << 'END-of-security/ipfw2dshield/pkg-descr' Xipfw2shield is a DShield client for ipfw logs, i.e., it inspects Xthe firewall logs and can mail security reports to dshield.org X XWWW: http://www.dynamical-systems.org/ipfw/ END-of-security/ipfw2dshield/pkg-descr echo c - security/ipfw2dshield/files mkdir -p security/ipfw2dshield/files > /dev/null 2>&1 echo x - security/ipfw2dshield/files/patch-aa sed 's/^X//' >security/ipfw2dshield/files/patch-aa << 'END-of-security/ipfw2dshield/files/patch-aa' X--- Makefile.orig Sat May 29 16:26:59 2004 X+++ Makefile Tue Jun 8 23:11:07 2004 X@@ -5,6 +5,7 @@ X INSTALL = install X X prefix = /usr/local X+etcdir = $(prefix)/etc X sbindir = $(prefix)/sbin X X SUBDIRS = ipaddr strpdate X@@ -29,12 +30,12 @@ X @for subdir in $(SUBDIRS); do (cd $$subdir && make install) ; done X @[ -d $(sbindir) ] || mkdir -vp $(sbindir) X $(INSTALL) -c -m 700 -o root $(PROGRAM) $(sbindir) X- $(INSTALL) -c -m 600 -o root $(RC) $(HOME)/.$(RC).sample X+ $(INSTALL) -c -m 600 -o root $(RC) $(etcdir)/$(RC).sample X X uninstall: X @for subdir in $(SUBDIRS); do (cd $$subdir && make uninstall) ; done X -$(RMCMD) $(sbindir)/$(PROGRAM) X- -$(RMCMD) $(HOME)/.$(RC).sample X+ -$(RMCMD) $(etcdir)/$(RC).sample X X clean: X -$(RMCMD) *~ *.bak END-of-security/ipfw2dshield/files/patch-aa echo x - security/ipfw2dshield/files/patch-ab sed 's/^X//' >security/ipfw2dshield/files/patch-ab << 'END-of-security/ipfw2dshield/files/patch-ab' X--- ipfw2dshield.orig Sat May 29 16:26:59 2004 X+++ ipfw2dshield Tue Jun 8 23:11:07 2004 X@@ -247,7 +247,8 @@ X fi X X # Suck in the config file. X-rc=~/.$prog.rc X+rc=/usr/local/etc/$prog.rc X+[ -e ~/.$prog.rc ] && rc=~/.$prog.rc X [ -r $rc ] || bye "Permission denied: $rc" X . $rc X _logdir=$logdir END-of-security/ipfw2dshield/files/patch-ab echo x - security/ipfw2dshield/files/patch-ac sed 's/^X//' >security/ipfw2dshield/files/patch-ac << 'END-of-security/ipfw2dshield/files/patch-ac' X--- README.html.orig Tue Jun 1 23:51:53 2004 X+++ README.html Wed Jun 9 12:46:58 2004 X@@ -38,9 +38,22 @@ X /usr/local/bin/ipaddr
X ~/.ipfw2dshield.rc.sample X X+Note: For the FreeBSD ports version the sample configuration file is X+instead X+
X+
X+/usr/local/etc/ipfw2dshield.rc.sample X+
X Copy or rename the sample configuration file to ~/.ipfw2dshield.rc X and edit this latter file to fit your local demands. Please read section 2 X below for an explanation of the configuration entries. X+

X+ X+Note: The FreeBSD ports version does also accept X+/usr/local/etc/ipfw2dshield.rc X+as its configuration file. However, the preference is for X+~/.ipfw2dshield.rc X+in case that both these files exist. X

X X The script creates a stampfile in /var/tmp where it stores date END-of-security/ipfw2dshield/files/patch-ac echo x - security/ipfw2dshield/files/patch-ad sed 's/^X//' >security/ipfw2dshield/files/patch-ad << 'END-of-security/ipfw2dshield/files/patch-ad' X--- README.txt.orig Tue Jun 1 23:51:53 2004 X+++ README.txt Wed Jun 9 12:46:58 2004 X@@ -21,9 +21,17 @@ X /usr/local/bin/ipaddr X ~/.ipfw2dshield.rc.sample X X+NNoottee:: For the FreeBSD ports version the sample configuration file is instead X+ X+ /usr/local/etc/ipfw2dshield.rc.sample X+ X Copy or rename the sample configuration file to ~~//..iippffww22ddsshhiieelldd..rrcc and edit X this latter file to fit your local demands. Please read section 2 below for an X explanation of the configuration entries. X+ X+NNoottee:: The FreeBSD ports version does also accept //uussrr//llooccaall//eettcc//iippffww22ddsshhiieelldd..rrcc X+as its configuration file. However, the preference is for ~~//..iippffww22ddsshhiieelldd..rrcc in X+case that both these files exist. X X The script creates a stampfile in //vvaarr//ttmmpp where it stores date and time X information which will be accessed on a subsequent run to prevent multiple END-of-security/ipfw2dshield/files/patch-ad echo x - security/ipfw2dshield/pkg-message sed 's/^X//' >security/ipfw2dshield/pkg-message << 'END-of-security/ipfw2dshield/pkg-message' X*************************************************************************** X XPlease see the README documentation supplied with this ipfw2dshield Xpackage for usage instructions! X X*************************************************************************** END-of-security/ipfw2dshield/pkg-message exit --- ipfw2dshield.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: