diff options
author | pav <pav@FreeBSD.org> | 2004-06-11 21:51:06 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-06-11 21:51:06 +0800 |
commit | 34f824d5eb9dc3f030edb87ba8a0cbefc028d1b8 (patch) | |
tree | d063f623d0051594b656a623ea3fcafa49d7558e | |
parent | 27b1392a16e4603748974dbab75002eb4ce1186e (diff) | |
download | freebsd-ports-gnome-34f824d5eb9dc3f030edb87ba8a0cbefc028d1b8.tar.gz freebsd-ports-gnome-34f824d5eb9dc3f030edb87ba8a0cbefc028d1b8.tar.zst freebsd-ports-gnome-34f824d5eb9dc3f030edb87ba8a0cbefc028d1b8.zip |
Add ipfw2dshield, a script for parsing ipfw log messages and submitting reports
to dshield.org (visit http://www.dshield.org for more info).
PR: ports/67754
Submitted by: Frank W. Josellis <frank@dynamical-systems.org>
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/ipfw2dshield/Makefile | 31 | ||||
-rw-r--r-- | security/ipfw2dshield/distinfo | 2 | ||||
-rw-r--r-- | security/ipfw2dshield/files/patch-Makefile | 27 | ||||
-rw-r--r-- | security/ipfw2dshield/files/patch-README.html | 25 | ||||
-rw-r--r-- | security/ipfw2dshield/files/patch-README.txt | 20 | ||||
-rw-r--r-- | security/ipfw2dshield/files/patch-ipfw2dshield | 12 | ||||
-rw-r--r-- | security/ipfw2dshield/pkg-descr | 4 | ||||
-rw-r--r-- | security/ipfw2dshield/pkg-plist | 4 |
9 files changed, 126 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index c27c14c6abe4..2a6f4ee92bc7 100644 --- a/security/Makefile +++ b/security/Makefile @@ -133,6 +133,7 @@ SUBDIR += ike-scan SUBDIR += integrit SUBDIR += ipfmeta + SUBDIR += ipfw2dshield SUBDIR += isakmpd SUBDIR += its4 SUBDIR += john diff --git a/security/ipfw2dshield/Makefile b/security/ipfw2dshield/Makefile new file mode 100644 index 000000000000..50937dcadecb --- /dev/null +++ b/security/ipfw2dshield/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: ipfw2dshield +# Date created: 8 June 2004 +# Whom: Frank W. Josellis <frank@dynamical-systems.org> +# +# $FreeBSD$ +# + +PORTNAME= ipfw2dshield +PORTVERSION= 0.4 +CATEGORIES= security +MASTER_SITES= http://www.dynamical-systems.org/ipfw/ + +MAINTAINER= frank@dynamical-systems.org +COMMENT= A DShield client for ipfw logs + +USE_REINPLACE= yes + +PORTDOCS= CHANGES README.html README.txt + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ipfw2dshield + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/security/ipfw2dshield/distinfo b/security/ipfw2dshield/distinfo new file mode 100644 index 000000000000..92ddd59b5d53 --- /dev/null +++ b/security/ipfw2dshield/distinfo @@ -0,0 +1,2 @@ +MD5 (ipfw2dshield-0.4.tar.gz) = c1a6d93170e4d8d390ab09a196e7b095 +SIZE (ipfw2dshield-0.4.tar.gz) = 16871 diff --git a/security/ipfw2dshield/files/patch-Makefile b/security/ipfw2dshield/files/patch-Makefile new file mode 100644 index 000000000000..0cfcba8f9a38 --- /dev/null +++ b/security/ipfw2dshield/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig Sat May 29 16:27:21 2004 ++++ Makefile Fri Jun 11 15:41:20 2004 +@@ -4,7 +4,8 @@ + RMCMD = rm -f + INSTALL = install + +-prefix = /usr/local ++prefix = ${PREFIX} ++etcdir = $(prefix)/etc + sbindir = $(prefix)/sbin + + SUBDIRS = ipaddr strpdate +@@ -29,12 +30,12 @@ + @for subdir in $(SUBDIRS); do (cd $$subdir && make install) ; done + @[ -d $(sbindir) ] || mkdir -vp $(sbindir) + $(INSTALL) -c -m 700 -o root $(PROGRAM) $(sbindir) +- $(INSTALL) -c -m 600 -o root $(RC) $(HOME)/.$(RC).sample ++ $(INSTALL) -c -m 600 -o root $(RC) $(etcdir)/$(RC).sample + + uninstall: + @for subdir in $(SUBDIRS); do (cd $$subdir && make uninstall) ; done + -$(RMCMD) $(sbindir)/$(PROGRAM) +- -$(RMCMD) $(HOME)/.$(RC).sample ++ -$(RMCMD) $(etcdir)/$(RC).sample + + clean: + -$(RMCMD) *~ *.bak diff --git a/security/ipfw2dshield/files/patch-README.html b/security/ipfw2dshield/files/patch-README.html new file mode 100644 index 000000000000..43c6b5c0e6e6 --- /dev/null +++ b/security/ipfw2dshield/files/patch-README.html @@ -0,0 +1,25 @@ +--- README.html.orig Tue Jun 1 23:51:53 2004 ++++ README.html Wed Jun 9 12:46:58 2004 +@@ -38,9 +38,22 @@ + /usr/local/bin/ipaddr<br> + ~/.ipfw2dshield.rc.sample + </dd></dl> ++<b>Note:</b> For the FreeBSD ports version the sample configuration file is ++instead ++<dl><dt><dt> ++<dd> ++/usr/local/etc/ipfw2dshield.rc.sample ++</dd></dl> + Copy or rename the sample configuration file to <em>~/.ipfw2dshield.rc</em> + and edit this latter file to fit your local demands. Please read section 2 + below for an explanation of the configuration entries. ++<p> ++ ++<b>Note:</b> The FreeBSD ports version does also accept ++<nobr><em>/usr/local/etc/ipfw2dshield.rc</em></nobr> ++as its configuration file. However, the preference is for ++<nobr><em>~/.ipfw2dshield.rc</em></nobr> ++in case that both these files exist. + <p> + + The script creates a stampfile in <em>/var/tmp</em> where it stores date diff --git a/security/ipfw2dshield/files/patch-README.txt b/security/ipfw2dshield/files/patch-README.txt new file mode 100644 index 000000000000..a54b342053c8 --- /dev/null +++ b/security/ipfw2dshield/files/patch-README.txt @@ -0,0 +1,20 @@ +--- README.txt.orig Tue Jun 1 23:51:53 2004 ++++ README.txt Wed Jun 9 12:46:58 2004 +@@ -21,9 +21,17 @@ + /usr/local/bin/ipaddr + ~/.ipfw2dshield.rc.sample + ++NNoottee:: For the FreeBSD ports version the sample configuration file is instead ++ ++ /usr/local/etc/ipfw2dshield.rc.sample ++ + Copy or rename the sample configuration file to ~~//..iippffww22ddsshhiieelldd..rrcc and edit + this latter file to fit your local demands. Please read section 2 below for an + explanation of the configuration entries. ++ ++NNoottee:: The FreeBSD ports version does also accept //uussrr//llooccaall//eettcc//iippffww22ddsshhiieelldd..rrcc ++as its configuration file. However, the preference is for ~~//..iippffww22ddsshhiieelldd..rrcc in ++case that both these files exist. + + The script creates a stampfile in //vvaarr//ttmmpp where it stores date and time + information which will be accessed on a subsequent run to prevent multiple diff --git a/security/ipfw2dshield/files/patch-ipfw2dshield b/security/ipfw2dshield/files/patch-ipfw2dshield new file mode 100644 index 000000000000..b57625f0667c --- /dev/null +++ b/security/ipfw2dshield/files/patch-ipfw2dshield @@ -0,0 +1,12 @@ +--- ipfw2dshield.orig Sat May 29 16:26:59 2004 ++++ ipfw2dshield Tue Jun 8 23:11:07 2004 +@@ -247,7 +247,8 @@ + fi + + # Suck in the config file. +-rc=~/.$prog.rc ++rc=%%PREFIX%%/etc/$prog.rc ++[ -e ~/.$prog.rc ] && rc=~/.$prog.rc + [ -r $rc ] || bye "Permission denied: $rc" + . $rc + _logdir=$logdir diff --git a/security/ipfw2dshield/pkg-descr b/security/ipfw2dshield/pkg-descr new file mode 100644 index 000000000000..ee8398945c34 --- /dev/null +++ b/security/ipfw2dshield/pkg-descr @@ -0,0 +1,4 @@ +ipfw2shield is a DShield client for ipfw logs, i.e., it inspects +the firewall logs and can mail security reports to dshield.org + +WWW: http://www.dynamical-systems.org/ipfw/ diff --git a/security/ipfw2dshield/pkg-plist b/security/ipfw2dshield/pkg-plist new file mode 100644 index 000000000000..448b46f5435b --- /dev/null +++ b/security/ipfw2dshield/pkg-plist @@ -0,0 +1,4 @@ +bin/ipaddr +bin/strpdate +etc/ipfw2dshield.rc.sample +sbin/ipfw2dshield |