Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2004 16:13:54 +0200 (CEST)
From:      frank@dynamical-systems.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67754: New port: security/ipfw2dshield, a dshield client for ipfw logs
Message-ID:  <200406091413.i59EDsKr001277@achilles.tractrix.org>
Resent-Message-ID: <200406091420.i59EK23f014130@freefall.freebsd.org>

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

>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 <frank@dynamical-systems.org>
>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 <frank@dynamical-systems.org>
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 <bsd.port.mk>
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<br>
X ~/.ipfw2dshield.rc.sample
X </dd></dl>
X+<b>Note:</b> For the FreeBSD ports version the sample configuration file is
X+instead
X+<dl><dt><dt>
X+<dd>
X+/usr/local/etc/ipfw2dshield.rc.sample
X+</dd></dl>
X Copy or rename the sample configuration file to <em>~/.ipfw2dshield.rc</em>
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+<p>
X+
X+<b>Note:</b> The FreeBSD ports version does also accept
X+<nobr><em>/usr/local/etc/ipfw2dshield.rc</em></nobr>
X+as its configuration file. However, the preference is for
X+<nobr><em>~/.ipfw2dshield.rc</em></nobr>
X+in case that both these files exist.
X <p>
X 
X The script creates a stampfile in <em>/var/tmp</em> 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:



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