summaryrefslogtreecommitdiffstats
path: root/security/snortreport/Makefile
blob: 7827b6335f585864915c007ece722dac09232c28 (plain)
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
# Created by: Andrea Venturoli <freebsd@netfence.it>
# $FreeBSD$

PORTNAME=	snortreport
PORTVERSION=	1.3.4
CATEGORIES=	security www
MASTER_SITES=	http://symmetrixtech.com/download/

MAINTAINER=	vvelox@vvelox.net
COMMENT=	Add-on module for snort to generate real-time web reports

LICENSE=	GPLv2

OPTIONS_DEFINE=		BARNYARD JPGRAPH MYSQL PGSQL DOCS

BARNYARD_DESC=		Depend on Barnyard2
JPGRAPH_DESC=		Graphical charting

BARNYARD_RUN_DEPENDS=	barnyard2:security/barnyard2
JPGRAPH_RUN_DEPENDS=	${LOCALBASE}/share/jpgraph/jpgraph.php:graphics/jpgraph2

NO_BUILD=	yes
SUB_FILES=	pkg-message
PORTDOCS=	INSTALL Performance.txt create_indexes.sql
FTYPES=		css html js php phps png sample

USES=		php:web

MYSQL_USE=	php=mysql
PGSQL_USE=	php=pgsql

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} ""

post-patch:
	${MV} ${WRKSRC}/srconf.php ${WRKSRC}/srconf.php.sample

do-install:
# srconf.conf contains snort database login credentials
	${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 750 -d ${STAGEDIR}${WWWDIR}
	${INSTALL_DATA} ${FTYPES:S|^|${WRKSRC}/*|} ${STAGEDIR}${WWWDIR}

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud