summaryrefslogtreecommitdiff
path: root/security/snortsnarf/Makefile
blob: 1dffa50d4f35f29e41d84b63fc81b6c2ed48395f (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
# New ports collection makefile for:	snortsnarf
# Date created:		29 July 2001
# Whom:			Kris Kennaway <kris@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	snortsnarf
PORTVERSION=	021111
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://www.silicondefense.com/software/snortsnarf/
DISTNAME=	SnortSnarf-${PORTVERSION}.1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generate HTML report summaries from snort incident alerts

RUN_DEPENDS=	${SITE_PERL}/Time/JulianDay.pm:${PORTSDIR}/devel/p5-Time-modules

NO_BUILD=	yes

do-install:
	${SED} s,%LOCALBASE%,${LOCALBASE}, < ${WRKSRC}/snortsnarf.pl > ${WRKSRC}/snortsnarf
	${INSTALL_SCRIPT} ${WRKSRC}/snortsnarf ${LOCALBASE}/bin/snortsnarf
	${MKDIR} ${LOCALBASE}/libdata/snortsnarf
	${MKDIR} ${LOCALBASE}/libdata/snortsnarf/SnortSnarf
.for i in IPAddrContact.pm ann_xml.pl web_utils.pl xml_help.pl
	${INSTALL_DATA} ${WRKSRC}/include/${i} ${LOCALBASE}/libdata/snortsnarf/
.endfor
.for i in AlertBase.pm HTMLOutput.pm MemTimeBase.pm MultiStore.pm \
	MemPacket.pm HTMLMemStorage.pm Filtering.pm PacketBase.pm \
	AllMods.pm BasicFilters.pm KnownEquiv.pm SnortFileInput.pm \
	HTMLAnomMemStorage.pm Input.pm SorterBase.pm Sort.pm \
	StorageBase.pm MemAlert.pm BasicSorters.pm Filter.pm \
	SnortRules.pm MemStorage.pm SnortDBInput.pm TimeFilters.pm \
	IPObfuscater.pm
	${INSTALL_DATA} ${WRKSRC}/include/SnortSnarf/${i} ${LOCALBASE}/libdata/snortsnarf/SnortSnarf/
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${LOCALBASE}/share/doc/snortsnarf
.for i in README Usage
	${INSTALL_DATA} ${WRKSRC}/${i} ${LOCALBASE}/share/doc/snortsnarf
.endfor
.endif

.include <bsd.port.mk>