summaryrefslogtreecommitdiff
path: root/security/snortsnarf
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-07-12 16:38:53 +0000
committeragc <agc@pkgsrc.org>2002-07-12 16:38:53 +0000
commitedc2e84d4b3af9a374686793333417679ce8e67e (patch)
treef6febdca51434cefc954fd6f1fea6089026d12cf /security/snortsnarf
parent95ee0888b9ccbe107034e2fc296727fd96aecf53 (diff)
downloadpkgsrc-edc2e84d4b3af9a374686793333417679ce8e67e.tar.gz
Initial import of snortsnarf-20020621.1 into the NetBSD Packages
Collection. Provided in PR 17580 by Hiramatsu Yoshifumi (hiramatu@boreas.dti.ne.jp), with minor changes by me. SnortSnarf is a Perl program to take files of alerts from the free Snort Intrusion Detection System , and produce HTML output intended for diagnostic inspection and tracking down problems.
Diffstat (limited to 'security/snortsnarf')
-rw-r--r--security/snortsnarf/DESCR3
-rw-r--r--security/snortsnarf/Makefile44
-rw-r--r--security/snortsnarf/PLIST35
-rw-r--r--security/snortsnarf/distinfo5
-rw-r--r--security/snortsnarf/patches/patch-aa14
5 files changed, 101 insertions, 0 deletions
diff --git a/security/snortsnarf/DESCR b/security/snortsnarf/DESCR
new file mode 100644
index 00000000000..d430309ef9b
--- /dev/null
+++ b/security/snortsnarf/DESCR
@@ -0,0 +1,3 @@
+SnortSnarf is a Perl program to take files of alerts from the free
+Snort Intrusion Detection System , and produce HTML output intended
+for diagnostic inspection and tracking down problems.
diff --git a/security/snortsnarf/Makefile b/security/snortsnarf/Makefile
new file mode 100644
index 00000000000..4b9341c918e
--- /dev/null
+++ b/security/snortsnarf/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/07/12 16:38:53 agc Exp $
+#
+
+DISTNAME= SnortSnarf-020516.1
+PKGNAME= snortsnarf-20020516.1
+CATEGORIES= security net
+MASTER_SITES= http://www.silicondefense.com/software/snortsnarf/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.silicondefense.com/software/snortsnarf/
+COMMENT= Generate HTML report summaries from snort incident alerts
+
+DEPENDS+= p5-Time:../../time/p5-Time
+
+USE_PERL5= YES
+REPLACE_PERL= ${WRKSRC}/snortsnarf.pl
+NO_BUILD= # defined
+
+post-configure:
+ @cd ${WRKSRC} ; \
+ ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" snortsnarf.pl > snortsnarf.tmp ; \
+ ${MV} snortsnarf.tmp snortsnarf.pl
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/snortsnarf.pl ${PREFIX}/bin/snortsnarf.pl
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/snortsnarf/SnortSnarf
+.for f in IPAddrContact.pm ann_xml.pl web_utils.pl xml_help.pl
+ ${INSTALL_DATA} ${WRKSRC}/include/${f} \
+ ${PREFIX}/share/snortsnarf
+.endfor
+.for f in AlertBase.pm HTMLOutput.pm MemTimeBase.pm MultiStore.pm \
+ MemPacket.pm HTMLMemStorage.pm Filtering.pm PacketBase.pm \
+ AllMods.pm BasicFilters.pm KnownEquiv.pm SnortFileInput.pm \
+ HTMLAnomMemStorage.pm Input.pm SorterBase.pm Sort.pm \
+ StorageBase.pm MemAlert.pm BasicSorters.pm Filter.pm \
+ SnortRules.pm MemStorage.pm SnortDBInput.pm TimeFilters.pm
+ ${INSTALL_DATA} ${WRKSRC}/include/SnortSnarf/${f} \
+ ${PREFIX}/share/snortsnarf/SnortSnarf
+.endfor
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snortsnarf
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/snortsnarf
+ ${INSTALL_DATA} ${WRKSRC}/Usage ${PREFIX}/share/doc/snortsnarf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/snortsnarf/PLIST b/security/snortsnarf/PLIST
new file mode 100644
index 00000000000..811af7306ae
--- /dev/null
+++ b/security/snortsnarf/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/12 16:38:53 agc Exp $
+bin/snortsnarf.pl
+share/doc/snortsnarf/README
+share/doc/snortsnarf/Usage
+share/snortsnarf/IPAddrContact.pm
+share/snortsnarf/SnortSnarf/AlertBase.pm
+share/snortsnarf/SnortSnarf/AllMods.pm
+share/snortsnarf/SnortSnarf/BasicFilters.pm
+share/snortsnarf/SnortSnarf/BasicSorters.pm
+share/snortsnarf/SnortSnarf/Filter.pm
+share/snortsnarf/SnortSnarf/Filtering.pm
+share/snortsnarf/SnortSnarf/HTMLAnomMemStorage.pm
+share/snortsnarf/SnortSnarf/HTMLMemStorage.pm
+share/snortsnarf/SnortSnarf/HTMLOutput.pm
+share/snortsnarf/SnortSnarf/Input.pm
+share/snortsnarf/SnortSnarf/KnownEquiv.pm
+share/snortsnarf/SnortSnarf/MemAlert.pm
+share/snortsnarf/SnortSnarf/MemPacket.pm
+share/snortsnarf/SnortSnarf/MemStorage.pm
+share/snortsnarf/SnortSnarf/MemTimeBase.pm
+share/snortsnarf/SnortSnarf/MultiStore.pm
+share/snortsnarf/SnortSnarf/PacketBase.pm
+share/snortsnarf/SnortSnarf/SnortDBInput.pm
+share/snortsnarf/SnortSnarf/SnortFileInput.pm
+share/snortsnarf/SnortSnarf/SnortRules.pm
+share/snortsnarf/SnortSnarf/Sort.pm
+share/snortsnarf/SnortSnarf/SorterBase.pm
+share/snortsnarf/SnortSnarf/StorageBase.pm
+share/snortsnarf/SnortSnarf/TimeFilters.pm
+share/snortsnarf/ann_xml.pl
+share/snortsnarf/web_utils.pl
+share/snortsnarf/xml_help.pl
+@dirrm share/snortsnarf/SnortSnarf
+@dirrm share/snortsnarf
+@dirrm share/doc/snortsnarf
diff --git a/security/snortsnarf/distinfo b/security/snortsnarf/distinfo
new file mode 100644
index 00000000000..89c18466a4d
--- /dev/null
+++ b/security/snortsnarf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/07/12 16:38:53 agc Exp $
+
+SHA1 (SnortSnarf-020516.1.tar.gz) = 01b4aebabea68dee5973e0d3fa20bfb73afa4b3f
+Size (SnortSnarf-020516.1.tar.gz) = 146806 bytes
+SHA1 (patch-aa) = ab4d243c83c05e6ce66337b287bab5db6d6a7a78
diff --git a/security/snortsnarf/patches/patch-aa b/security/snortsnarf/patches/patch-aa
new file mode 100644
index 00000000000..7502f680a93
--- /dev/null
+++ b/security/snortsnarf/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/07/12 16:38:53 agc Exp $
+
+--- snortsnarf.pl.orig Sun Jul 7 02:09:26 2002
++++ snortsnarf.pl
+@@ -77,3 +77,3 @@
+
+-use lib qw(./include);
++use lib qw(@@PREFIX@@/share/snortsnarf/);
+ use Cwd;
+@@ -455,2 +455,2 @@ OPTION is one of the following:
+ >>
+-}
+\ No newline at end of file
++}