diff options
author | Alex Dupre <ale@FreeBSD.org> | 2004-01-29 09:55:49 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2004-01-29 09:55:49 +0000 |
commit | 539e01c6f783fb00c786f0b325b588f4fdd9d686 (patch) | |
tree | 25543e85bed5cdd70a29fc1e5b6afb5f490d247f /security/snortreport | |
parent | f6419b9041c7e1110f4abc1b731ced6787211c89 (diff) |
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)
Notes
Notes:
svn path=/head/; revision=99376
Diffstat (limited to 'security/snortreport')
-rw-r--r-- | security/snortreport/Makefile | 60 | ||||
-rw-r--r-- | security/snortreport/distinfo | 2 | ||||
-rw-r--r-- | security/snortreport/pkg-descr | 9 | ||||
-rw-r--r-- | security/snortreport/pkg-message | 7 | ||||
-rw-r--r-- | security/snortreport/pkg-plist | 31 |
5 files changed, 109 insertions, 0 deletions
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%% |