blob: 5ae6b2293350ae9f1456dbe81b0f0c85116c68c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# New ports collection makefile for: snortreport
# Date created: 18 Jan 2004
# Whom: Andrea Venturoli <a.ventu@flashnet.it>
#
# $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
USE_PHP= yes
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
NO_BUILD= yes
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.mk>
|