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)
This commit is contained in:
Alex Dupre 2004-01-29 09:55:49 +00:00
parent f6419b9041
commit 539e01c6f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99376
6 changed files with 110 additions and 0 deletions

View file

@ -371,6 +371,7 @@
SUBDIR += sniff
SUBDIR += snort
SUBDIR += snort-rep
SUBDIR += snortreport
SUBDIR += snortsnarf
SUBDIR += srm
SUBDIR += srp

View file

@ -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>

View file

@ -0,0 +1,2 @@
MD5 (snortreport-1.2.tar.gz) = 856eb311abbc012e705fc8f6694cd814
SIZE (snortreport-1.2.tar.gz) = 42693

View file

@ -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

View file

@ -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.
***************************************************************

View file

@ -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%%