summaryrefslogtreecommitdiff
path: root/security/snortsnarf/Makefile
blob: 4a41be6d9df270d8c71dca9cac9b19a58b6f0e06 (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
# $NetBSD: Makefile,v 1.3 2002/12/14 03:43:20 schmonz Exp $
#

DISTNAME=	SnortSnarf-020516.1
PKGNAME=	snortsnarf-20020516.1
CATEGORIES=	security net
MASTER_SITES=	http://www.silicondefense.com/software/snortsnarf/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.silicondefense.com/software/snortsnarf/
COMMENT=	Generate HTML report summaries from snort incident alerts

DEPENDS+=	p5-Time>=101.062101:../../time/p5-Time

USE_PERL5=	YES
REPLACE_PERL=	snortsnarf.pl
NO_BUILD=	# defined

post-configure:
	@cd ${WRKSRC} ; \
	${SED} -e "s|@@PREFIX@@|${PREFIX}|g" snortsnarf.pl > snortsnarf.tmp ; \
	${MV} snortsnarf.tmp snortsnarf.pl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/snortsnarf.pl ${PREFIX}/bin/snortsnarf.pl
	${INSTALL_DATA_DIR} ${PREFIX}/share/snortsnarf/SnortSnarf
.for f in IPAddrContact.pm ann_xml.pl web_utils.pl xml_help.pl
		${INSTALL_DATA} ${WRKSRC}/include/${f} \
			${PREFIX}/share/snortsnarf
.endfor
.for f 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
	${INSTALL_DATA} ${WRKSRC}/include/SnortSnarf/${f} \
		${PREFIX}/share/snortsnarf/SnortSnarf
.endfor
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snortsnarf
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/snortsnarf
	${INSTALL_DATA} ${WRKSRC}/Usage ${PREFIX}/share/doc/snortsnarf

.include "../../mk/bsd.pkg.mk"