ports/62046: New port: Add-on module for snort; generates real-time web reports (resending)

Andrea Venturoli a.ventu at flashnet.it
Wed Jan 28 22:10:49 UTC 2004


>Number:         62046
>Category:       ports
>Synopsis:       New port: Add-on module for snort; generates real-time web reports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 28 14:10:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrea Venturoli
>Release:        FreeBSD 4.7-RELEASE-p24 i386
>Organization:
NetFence
>Environment:
System: FreeBSD soth 4.7-RELEASE-p24 FreeBSD 4.7-RELEASE-p24 #2: Sat Nov 29 18:39:51 CET 2003 root at soth:/usr/obj/usr/src/sys/SOTH i386


	
>Description:
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.

>How-To-Repeat:
	
>Fix:

	

--- snortreport.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	snortreport
#	snortreport/pkg-message
#	snortreport/distinfo
#	snortreport/Makefile
#	snortreport/pkg-descr
#	snortreport/pkg-plist
#
echo c - snortreport
mkdir -p snortreport > /dev/null 2>&1
echo x - snortreport/pkg-message
sed 's/^X//' >snortreport/pkg-message << 'END-of-snortreport/pkg-message'
X****************************************************************
XSnortreport has been installed in %%PREFIX%%/www/snortreport.
XChange into this directory and make changes to the config
Xfile (srconf.php).
XAlso modifyt your web server configuration to let access to this
Xdirectory.
X****************************************************************
END-of-snortreport/pkg-message
echo x - snortreport/distinfo
sed 's/^X//' >snortreport/distinfo << 'END-of-snortreport/distinfo'
XMD5 (snortreport-1.2.tar.gz) = 856eb311abbc012e705fc8f6694cd814
END-of-snortreport/distinfo
echo x - snortreport/Makefile
sed 's/^X//' >snortreport/Makefile << 'END-of-snortreport/Makefile'
X# New ports collection makefile for:   snortreport
X# Date created:        18 Jan 2004
X# Whom:                Andrea Venturoli <a.ventu at FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	snortreport
XPORTVERSION=	1.2
XCATEGORIES=	security www
XMASTER_SITES=	http://www.circuitsmaximus.com/snortreport/
X
XMAINTAINER=	a.ventu at flashnet.it
XCOMMENT=	Add-on module for snort; generates real-time web reports
X
XRUN_DEPENDS=	${LOCALBASE}/bin/php-config:${PORTSDIR}/www/mod_php4
X
XPKGMESSAGE=	${WRKDIR}/pkg-message
XNO_BUILD=	yes
X
Xpre-everything::
X	@${ECHO} ""
X	@${ECHO} "You have to configure PHP either with MySQL or"
X	@${ECHO} "PostgreSQL support in order to let snortreport"
X	@${ECHO} "collect its data."
X	@${ECHO} "Is is also suggested to compile support for GD"
X	@${ECHO} "in and have Jpgraph installed."
X	@${ECHO} ""
X
Xpre-patch:
X	@${SED} 's|%%PREFIX%%|${PREFIX}|g' \
X		${.CURDIR}/pkg-message > ${PKGMESSAGE}
X
Xdo-install:
X	${MKDIR} ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.css ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.png ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.html ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.phps ${PREFIX}/www/snortreport
X	${CP} -p ${WRKSRC}/*.js ${PREFIX}/www/snortreport
X	${CHOWN} -R www:www ${PREFIX}/www/snortreport
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/Performance.txt ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/create_indexes.sql ${DOCSDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-snortreport/Makefile
echo x - snortreport/pkg-descr
sed 's/^X//' >snortreport/pkg-descr << 'END-of-snortreport/pkg-descr'
XSnort Report is an add-on module for the Snort Intrusion Detection System.
X
XIt generates real-time intrusion detection reports in an easy to read format
Xbased on data collected from a MySQL or PostgreSQL database.
X
XRead the FAQ for full details, changelog, and system requirements.
X
XWWW: http://www.circuitsmaximus.com/download.html
X
X- Andrea Venturoli
Xa.ventu at flashnet.it
END-of-snortreport/pkg-descr
echo x - snortreport/pkg-plist
sed 's/^X//' >snortreport/pkg-plist << 'END-of-snortreport/pkg-plist'
Xwww/snortreport/DB.php
Xwww/snortreport/DB_mysql.php
Xwww/snortreport/DB_pgsql.php
Xwww/snortreport/alertchart.php
Xwww/snortreport/alerts.php
Xwww/snortreport/functions.php
Xwww/snortreport/index.php
Xwww/snortreport/info-retrieval.php
Xwww/snortreport/ipdetail.php
Xwww/snortreport/page_bottom.php
Xwww/snortreport/page_top.php
Xwww/snortreport/portscan.php
Xwww/snortreport/profiling.phps
Xwww/snortreport/psdetail.php
Xwww/snortreport/sig-by-time-chart.php
Xwww/snortreport/sigdetail.php
Xwww/snortreport/srconf.php
Xwww/snortreport/timespan.php
Xwww/snortreport/default.css
Xwww/snortreport/go.png
Xwww/snortreport/nodata.png
Xwww/snortreport/srlogo.png
Xwww/snortreport/menu.html
Xwww/snortreport/ssm.js
Xwww/snortreport/ssmItems.js
X%%DOCSDIR%%/INSTALL
X%%DOCSDIR%%/LICENSE
X%%DOCSDIR%%/Performance.txt
X%%DOCSDIR%%/create_indexes.sql
X at dirrm www/snortreport
X at dirrm %%DOCSDIR%%
END-of-snortreport/pkg-plist
exit
--- snortreport.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list