aboutsummaryrefslogtreecommitdiff
path: root/security/afterglow/Makefile
blob: 4d26fecf8487ae01c4e8b733dc4a6cba2db18c5c (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
# New ports collection makefile for:	afterglow
# Date created:				1 Aug 2007
# Whom:					pauls
#
# $FreeBSD$
#

PORTNAME=	afterglow
PORTVERSION=	1.5
PORTREVISION=	2
CATEGORIES=	security graphics
MASTER_SITES=	SF/${PORTNAME}/AfterGlow%201.x/${PORTVERSION}

MAINTAINER=	pauls@utdallas.edu
COMMENT=	A collection of graph-generating scripts

RUN_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz

NO_BUILD=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}

DB_SCRIPTS=	attackchains.pl deltacalc2.pl deltacalc.pl iptolong.pl \
		snortalert.pl snortdirection.pl snortservice.pl subquery.pl \
		tcpdump2sql.pl
GRAPH_SCRIPTS=	afterglow-lgl.pl afterglow-lgl2.pl afterglow-walrus.pl afterglow.pl
PARSERS=	pf2csv.pl sendmail_parser.pl tcpdump2csv.pl

do-install:
	${MKDIR} ${DATADIR}
	${MKDIR} ${DATADIR}/data
	${MKDIR} ${DATADIR}/database
	${MKDIR} ${DATADIR}/graph
	${MKDIR} ${DATADIR}/parsers
	(cd ${WRKSRC}/data/ && ${COPYTREE_SHARE} \* ${DATADIR}/data "! -name generate.pl")
	(cd ${WRKSRC}/src/perl/database/ && ${COPYTREE_SHARE} \* ${DATADIR}/database "! -name *\.pl")
	(cd ${WRKSRC}/src/perl/graph/ && ${COPYTREE_SHARE} \* ${DATADIR}/graph "! -name *\.pl")
	(cd ${WRKSRC}/src/perl/parsers/ && ${COPYTREE_SHARE} \* ${DATADIR}/parsers "! -name *\.pl")
	${INSTALL_SCRIPT} ${WRKSRC}/data/generate.pl ${DATADIR}/data/
.for f in ${DB_SCRIPTS}
		${INSTALL_SCRIPT} ${WRKSRC}/src/perl/database/${f} ${DATADIR}/database/${f}
.endfor
.for f in ${GRAPH_SCRIPTS}
		${INSTALL_SCRIPT} ${WRKSRC}/src/perl/graph/${f} ${DATADIR}/graph/${f}
.endfor
.for f in ${PARSERS}
		${INSTALL_SCRIPT} ${WRKSRC}/src/perl/parsers/${f} ${DATADIR}/parsers/${f}
.endfor

.include <bsd.port.mk>