summaryrefslogtreecommitdiff
path: root/security/snortsnarf/Makefile
blob: 0ac386678f8a95f71402a3147a015a4df8ddb358 (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
# $NetBSD: Makefile,v 1.6 2003/06/02 01:17:03 jschauma Exp $
#

DISTNAME=	SnortSnarf-021111.1
PKGNAME=	${DISTNAME:S/SnortSnarf-/snortsnarf-20/}
CATEGORIES=	security net
MASTER_SITES=	http://www.silicondefense.com/software/snortsnarf/

MAINTAINER=	tech-pkg@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_BUILDLINK2=	YES
NO_BUILD=	YES
USE_PERL5=	run

REPLACE_PERL=	snortsnarf.pl include/ann_xml.pl include/web_utils.pl	\
		include/xml_help.pl

post-configure:
	@cd ${WRKSRC} && \
		${SED} -e "s|@PREFIX@|${PREFIX}|g" snortsnarf.pl >	\
			${WRKDIR}/snortsnarf.pl

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/snortsnarf.pl ${PREFIX}/bin/snortsnarf.pl
	${INSTALL_DATA_DIR} ${PREFIX}/share/snortsnarf
	cd ${WRKSRC}/include && ${PAX} -rw -pm * ${PREFIX}/share/snortsnarf
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snortsnarf
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/snortsnarf
	${INSTALL_DATA} ${WRKSRC}/Usage ${PREFIX}/share/doc/snortsnarf

.include "../../lang/perl5/buildlink2.mk"

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