aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-01-29 17:55:49 +0800
committerale <ale@FreeBSD.org>2004-01-29 17:55:49 +0800
commit0389d323705e175d2d9c2b914b9892a4bff7a80f (patch)
tree336d28e5a298e105c9a6f8811294d09553cd20dc /security
parent8a99fe7402ece344213856158d5b8c01664af132 (diff)
downloadfreebsd-ports-gnome-0389d323705e175d2d9c2b914b9892a4bff7a80f.tar.gz
freebsd-ports-gnome-0389d323705e175d2d9c2b914b9892a4bff7a80f.tar.zst
freebsd-ports-gnome-0389d323705e175d2d9c2b914b9892a4bff7a80f.zip
Add snortreport 1.2, add-on module for snort to generate real-time web
reports. PR: ports/62046 Submitted by: Andrea Venturoli <a.ventu@FreeBSD.org> Approved by: nork (mentor/implicitly)
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/snortreport/Makefile60
-rw-r--r--security/snortreport/distinfo2
-rw-r--r--security/snortreport/pkg-descr9
-rw-r--r--security/snortreport/pkg-message7
-rw-r--r--security/snortreport/pkg-plist31
6 files changed, 110 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 16ef13c9aab2..7f29a3fa9d34 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -371,6 +371,7 @@
SUBDIR += sniff
SUBDIR += snort
SUBDIR += snort-rep
+ SUBDIR += snortreport
SUBDIR += snortsnarf
SUBDIR += srm
SUBDIR += srp
diff --git a/security/snortreport/Makefile b/security/snortreport/Makefile
new file mode 100644
index 000000000000..c4aeb1cf848f
--- /dev/null
+++ b/security/snortreport/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: snortreport
+# Date created: 18 Jan 2004
+# Whom: Andrea Venturoli <a.ventu@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= snortreport
+PORTVERSION= 1.2
+CATEGORIES= security www
+MASTER_SITES= http://www.circuitsmaximus.com/snortreport/
+
+MAINTAINER= a.ventu@flashnet.it
+COMMENT= Add-on module for snort to generate real-time web reports
+
+.if !defined(WITHOUT_JPGRAPH)
+RUN_DEPENDS= ${LOCALBASE}/share/jpgraph/jpgraph.php:${PORTSDIR}/graphics/jpgraph
+.endif
+
+WANT_PHP_WEB= yes
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+NO_BUILD= yes
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/lang/php4/bsd.php.mk"
+
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "You have to configure PHP either with MySQL or PostgreSQL"
+ @${ECHO} "support in order to let snortreport collect its data."
+ @${ECHO} "Is is also suggested to compile support for GD in"
+ @${ECHO} "and have Jpgraph installed in order to view the charts."
+ @${ECHO} ""
+
+pre-patch:
+ @${SED} 's|%%PREFIX%%|${PREFIX}|g' \
+ ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+
+do-install:
+ ${MKDIR} ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.css ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.png ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.html ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.phps ${PREFIX}/www/snortreport
+ ${CP} -p ${WRKSRC}/*.js ${PREFIX}/www/snortreport
+ ${CHOWN} -R www:www ${PREFIX}/www/snortreport
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Performance.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/create_indexes.sql ${DOCSDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/security/snortreport/distinfo b/security/snortreport/distinfo
new file mode 100644
index 000000000000..3015dc541d52
--- /dev/null
+++ b/security/snortreport/distinfo
@@ -0,0 +1,2 @@
+MD5 (snortreport-1.2.tar.gz) = 856eb311abbc012e705fc8f6694cd814
+SIZE (snortreport-1.2.tar.gz) = 42693
diff --git a/security/snortreport/pkg-descr b/security/snortreport/pkg-descr
new file mode 100644
index 000000000000..f06f12f340d6
--- /dev/null
+++ b/security/snortreport/pkg-descr
@@ -0,0 +1,9 @@
+Snort Report is an add-on module for the Snort Intrusion Detection System.
+
+It generates real-time intrusion detection reports in an easy to read format
+based on data collected from a MySQL or PostgreSQL database.
+
+WWW: http://www.circuitsmaximus.com/download.html
+
+- Andrea Venturoli
+a.ventu@flashnet.it
diff --git a/security/snortreport/pkg-message b/security/snortreport/pkg-message
new file mode 100644
index 000000000000..0f7557c116d5
--- /dev/null
+++ b/security/snortreport/pkg-message
@@ -0,0 +1,7 @@
+***************************************************************
+Snortreport has been installed in %%PREFIX%%/www/snortreport.
+Change into this directory and make changes to the config
+file (srconf.php).
+Also modify your web server configuration to let access to this
+directory.
+***************************************************************
diff --git a/security/snortreport/pkg-plist b/security/snortreport/pkg-plist
new file mode 100644
index 000000000000..640fe4d3a915
--- /dev/null
+++ b/security/snortreport/pkg-plist
@@ -0,0 +1,31 @@
+www/snortreport/DB.php
+www/snortreport/DB_mysql.php
+www/snortreport/DB_pgsql.php
+www/snortreport/alertchart.php
+www/snortreport/alerts.php
+www/snortreport/functions.php
+www/snortreport/index.php
+www/snortreport/info-retrieval.php
+www/snortreport/ipdetail.php
+www/snortreport/page_bottom.php
+www/snortreport/page_top.php
+www/snortreport/portscan.php
+www/snortreport/profiling.phps
+www/snortreport/psdetail.php
+www/snortreport/sig-by-time-chart.php
+www/snortreport/sigdetail.php
+www/snortreport/srconf.php
+www/snortreport/timespan.php
+www/snortreport/default.css
+www/snortreport/go.png
+www/snortreport/nodata.png
+www/snortreport/srlogo.png
+www/snortreport/menu.html
+www/snortreport/ssm.js
+www/snortreport/ssmItems.js
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/Performance.txt
+%%PORTDOCS%%%%DOCSDIR%%/create_indexes.sql
+@dirrm www/snortreport
+%%PORTDOCS%%@dirrm %%DOCSDIR%%